Design Url Shortening Service | Spring Boot | System Design

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 31

  • @agarwalshubham23
    @agarwalshubham23 3 роки тому +10

    For those who are getting error while running the application. At 7:38
    Add these 2 lines in application.properties
    spring.h2.console.enabled=true
    spring.h2.console.path=/h2-console

  • @hemanthkumarallam3894
    @hemanthkumarallam3894 2 роки тому +1

    Thanks you Much I have implemented this project completely.. I have used mysql workbench.... I have learned a lot..

    • @gauzammalhotra
      @gauzammalhotra 8 місяців тому

      can you share your github link please?

  • @madhurendra-nath-tiwari
    @madhurendra-nath-tiwari 9 місяців тому

    Small suggestions use lombok for getter setter toString allargs constructor and no args constructor

  • @saikrishnaa1374
    @saikrishnaa1374 2 роки тому

    Superb ..You are teaching.. very good.

  • @gauzammalhotra
    @gauzammalhotra 8 місяців тому +1

    hey!
    can you explain the "response" on line 73 in the controller
    when I'm writing the same code, IntelliJ is suggesting me that it can't resolve symbol: 'response'
    Please help!

    • @____Alien____
      @____Alien____ 5 місяців тому

      Instead of response use httpServletResponse

    • @proud671
      @proud671 9 днів тому

      I"v found a solution .... for methode redirectToOriginalUrl(shortLink) add another parameter for this mehode redirectToOriginalUrl(@PathVariable String shortLink, HttpServletResponse response) and after use parameter response for redirect url

  • @Shredder220
    @Shredder220 3 роки тому

    Great explanation!!! Really like your approach of doing. Keep making such informative videos pls🙂🙂

  • @SR-we1vl
    @SR-we1vl 2 роки тому

    Thanks bro for the video! Crisp and clean explanation!

  • @kedareshwarawasthi2383
    @kedareshwarawasthi2383 Рік тому +1

    I was just looking over the main parts of video , hope I didnt missed anything, At @29:51 why are we saving different short urls in db for same input url, shouldnt we check if originalurl already exist in db then dont insert in DB, can you please correct me if my understanding is wrong or am I just missing something here

    • @athul03
      @athul03 7 місяців тому

      i think he wants to create unique short urls each time

  • @sksamassa95
    @sksamassa95 Рік тому

    Thanks you so much Brooooo! My project was about this.

  • @sgr7ss
    @sgr7ss 7 місяців тому

    Nice explanation

  • @athul03
    @athul03 7 місяців тому

    Is there any reason why you are annotating @service with the service interface and @component with the service implementation?

    • @____Alien____
      @____Alien____ 5 місяців тому +1

      No Specific Reason. Instead of this approach you can leave interface without any annotation and annotate the service class with @Service annotation.

  • @manobet
    @manobet 3 роки тому +1

    Very good!! thank you very much!

  • @RichaKumari-ec3ud
    @RichaKumari-ec3ud 8 місяців тому

    hii I am not getting Apache common & Guava dependency suggest alternative for that ?

    • @____Alien____
      @____Alien____ 5 місяців тому

      Create project without these annotation. After creation, search these dependecies in maven repository and add in the pom.xml of your project.

  • @dugerahypahybrahycoisaytal3891

    why it's not working anymore? always receiving the message "error": "Url does not exist or it might have expired!"

    • @dugerahypahybrahycoisaytal3891
      @dugerahypahybrahycoisaytal3891 Рік тому +2

      and this error too {"status":"200","error":"Url Expired. Please try generating a fresh one."}

    • @CachedInsights
      @CachedInsights  Рік тому +2

      Please check we have a logic to expire the generated url automatically after sometime. If you don’t want it to expire until the generated url exists in the datastore, you can disable the logic to automatically expire the url

  • @MahadiHasan-qb9zw
    @MahadiHasan-qb9zw 3 роки тому

    how to customize the generated short url ? Like i need only 6 character in generated url ? can you help me ?

    • @CachedInsights
      @CachedInsights  3 роки тому

      There is no compulsion on using one of the available hashing algorithm like the one we used in the video.
      You can write you own tiny algorithm to convert the urls into smaller hashed value which is 6 characters long.

  • @vishalmishra1937
    @vishalmishra1937 2 роки тому

    unable to use murmur hash in springboot