Loading...
Users can create a short URL.
Users can access the original URL using the short URL.
The system should be highly available and scalable.
URL redirects should have low latency.
10M daily active users
10 requests per user per day
≈ 100M requests per day
≈ 1,200 requests per second
Read-heavy workload
POST /shorten
GET /{shortCode}
Use a relational database such as PostgreSQL.
Scale application servers horizontally as traffic increases.