Designing a URL shortener: short codes, Base62, token ranges and redirects
A full system design case study for a Bitly-style link shortener: requirements, estimates with the arithmetic, API, data model on ScyllaDB and PostgreSQL, four ways to generate codes, token ranges that neither collide nor leak order, 301 versus 302, caching, analytics, and how to present it in 45 minutes.