Tiny URL System Design | URL Shortener System Design | Bitly | Distributed Systems in Hindi

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

КОМЕНТАРІ • 16

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

    apko sir 4 ro traf se pranam hai
    you are a really good teacher apne sare cases bhi cover kar liya
    plus sir mother tounge me jo connection ban ta hai wo english me nahi ho sak ta
    infinite gratitude for you please keep teaching in hindi

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

    Very good 😊

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

    bhai, maza aa gya!

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

      aur ye jo maza h, woh sabko aana chahiye 😁
      Share karo playlist

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

    Another way of generating shortURL is, and I think it is not very optimized, but worth talking during the interview - in case we choose to use SQL database, store the row of long URL without mapping, it will generate a ID in the DB, Base 62/64 encode the ID, store the encoded value back in the table record and return to the user. This is slower as there will be two writes per request. Also read will be done by a query and if we index short URL field, this makes the things faster. Thoughts?

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

      A suggestion, I'll let you think more on this.
      Use SQL db just for keeping id (probably two instances to avoid single point of failure). These databases only maintains a single row for counter value (updates every time).
      Use this approach to pre-generate the URLs and store them in different database, maybe dynamodb or sql (you might need sharding capability at huge scale). Let me know if you make sense from it. Happy Learning :)

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

    awesome sir

  • @shwetabhargava-ic5dn
    @shwetabhargava-ic5dn 4 місяці тому +1

    Looks like all these just copy and paste. Can you please explain how are you generating 7 Char key from the counter when the counter is 1 or when it is 32000000

    • @MsDeepSingh
      @MsDeepSingh  3 місяці тому

      take base62 of counter value; append the remaining characters as any random string to make it of char 7 length. You can be sure it will be unique because the prefix is always unique. Hope it helps.
      Base62 (61) = 11
      Base62 (1000001) = 4C93

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

    At timepoint 15:19, according to my calculation, the total storage requirements is in petabytes: 320 billion * 2000bytes = 320 * 10^9 * 2 * 10^3 = 640 * 10^12 = 640 peta bytes.

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

    pronounciation thik kar uske baad design seekhana

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

      Haan bhai improvement karenge
      Thanks for feedback 🙂

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

      @@MsDeepSingh sorry if I sounded rude.

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

      @mayank he has given price less lecture without taking any price
      and I loved his pronunciation
      you should be banned from youtube