Skip to content

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.

More on India-scale case studies

Flashcards for this topic