Design Lab
Design a system, then defend it
Pick a system, choose which components to include in your design, and then see how it holds up when a real incident hits it.
One short link goes viral. Design your system, then see how it holds up when a single key receives a massive, sustained spike of lookup traffic.
Your design
Shortener APIrequired
Accepts redirect lookups and resolves short codes.
Primary Databaserequired
Stores the mapping from short code to original URL.
Cache Layer
Sits in front of the database and serves repeated lookups for the same key without reaching storage again.
Rate Limiter
Caps the rate of incoming lookup requests before they reach the rest of the system.