How to Design a URL Shortener at Scale

The consistent hashing, Base62 encoding, Bloom filters, and analytics pipeline behind Bitly and TinyURL