Тёмный

Design A URL Shortener | System Design Beginner’s Course 2022 

Code with Irtiza
Подписаться 13 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@girdharsinghrathore3857
@girdharsinghrathore3857 2 года назад
keeping doing great work (Y), page number 6, why are you returning short url directly from DB to client, it should be via DB=> APP server=> load balancer=> client
@jackfrost8969
@jackfrost8969 7 месяцев назад
Defining TTL without a user-specific URL is not an optimal approach. One two many flows here.
@raghusrinivasan7309
@raghusrinivasan7309 10 месяцев назад
A few more extensions to this approach can be studied at ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AVztRY77xxA.html which talks about how many characters you need for coming up with a short URL based on the #requests coming for this service. It also has some info about generating analytics info based on geography, #requests/sec etc
@0xssff
@0xssff Месяц назад
brilliant
@석상주
@석상주 2 года назад
I think there is some minor flaw with the approach. Even if there exists a mapping between short URL and long URL, you'd still generate a unique hash because you don't want different users to own the same short link.
@irtizahafiz
@irtizahafiz 2 года назад
Hi! That’s a good point! In my design here, I didn’t take in account supporting unique shortURLs for individual users. If your app requires it, then yes you can generate the unique hash regardless at the expense of greater space usage.
@jww0007
@jww0007 2 года назад
I think it should progressively add entries like /aaaa /aaab /aaac all the way to 0000
@firezdog
@firezdog 6 месяцев назад
why not?
@antimuggle_ridhi2565
@antimuggle_ridhi2565 9 месяцев назад
shouldn't the redis cache be user specific? If so why is it located in the api server?
@irtizahafiz
@irtizahafiz 6 месяцев назад
Depends on how you want to cache the data. Typically server-side caches (such as Redis) will be on the API layer, while client caches can be build on the user's device.
@firezdog
@firezdog 6 месяцев назад
How do you deal with persistence? Even in this simple system, it seems like you want to do something to make sure that the data in that MySQL database is recoverable -- especially if a lot of links to your tinyURL are being used all over the web.
@irtizahafiz
@irtizahafiz 5 месяцев назад
Most cloud-hosted MySQL systems have some kind of redundancy built for data recovery.
@thegreatlazydazz
@thegreatlazydazz Год назад
Why does the web browser need a sever to generate short urls and tranlstae it back to long urls. Why is it so difficult for web browser to store long urls?
@irtizahafiz
@irtizahafiz 11 месяцев назад
I am not sure what you mean by the "web browser" storing long URLs?
@melk48111
@melk48111 7 месяцев назад
Hi irtiza, are you planning to do system design on Web crawler or Uber?
@irtizahafiz
@irtizahafiz 7 месяцев назад
Web crawlers, yes.
@kyakarein
@kyakarein Год назад
any reason to skip capacity estimation? how we will handle required scaling?
@irtizahafiz
@irtizahafiz 11 месяцев назад
Sorry, I didn't mean to cover every angle. Hopefully what I had was useful to you.
@jww0007
@jww0007 2 года назад
I'll make a product around this
@irtizahafiz
@irtizahafiz 2 года назад
That’s awesome! Good luck!
@zymasethecatalyst
@zymasethecatalyst 2 года назад
Keep Going 🚀🚀
@irtizahafiz
@irtizahafiz 2 года назад
More coming 😎
Далее
Design A Scalable Notification System | System Design
28:23
Design A Scalable Rate Limiter | System Design
24:32
Просмотров 11 тыс.
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
System Design: Design a URL Shortener like TinyURL
16:00
Will YouTube Ever Run Out Of Video IDs?
5:10
Просмотров 9 млн
Design YouTube | System Design
40:20
Просмотров 6 тыс.
Design a Payment System - System Design Interview
31:40