MediumScenarioIndia-scale case studies
Design a URL shortener serving 100M redirects a day.
What a good answer covers
Generate unique keys with a counter range allocator or base62 of IDs, store in a key-value store, cache hot keys, redirect with 301 or 302 depending on analytics needs, and handle expiry and abuse.
PreviousDesign Swiggy-style food delivery with live order tracking.Next Design a chat system like WhatsApp for 50M users.
More on India-scale case studies
Flashcards for this topic- HardDesign a UPI-style payment system handling 10,000 transactions per second.
- HardA UPI debit succeeds but the credit response times out. How does the system recover?
- HardDesign IRCTC Tatkal booking where 1 million users hit at 10 AM for limited seats.
- HardDesign Swiggy-style food delivery with live order tracking.