Vijay Pagare

Design: URL Shortener

Started learning system design and architecture seriously. I’ll be posting daily notes on whatever i learn about the subject going forward. Here’s the first one–enjoy!

1. The Core: Base62 Encoding

To keep URLs short, we use Base62 encoding ([a-z, A-Z, 0-9]).

2. The Coordination Problem: Key Generation Service (KGS)

In a distributed system, we must prevent “collisions” where two servers generate the same ID.

3. High Availability vs. Consistency (CAP Theorem)

Thoughts on replicas and waste of resources

In System Design, we often intentionally waste resources (like losing a few IDs during a crash) if it removes a bottleneck and makes the entire global system 100x faster.

#SystemDesign #Study