Build a service that turns a long URL into a short one, and redirects anybody who visits the short link back to the original.
The service must hold 100 million URLs and serve 10,000 requests per second at peak. Reads dominate writes by roughly 100 to 1: most traffic is people following links, not creating them.
Short codes are permanent once issued. A redirect should feel instant.
Build the architecture on a canvas: place the components, configure them, connect them into a data flow, and write a short reason for each one. The AI reviewer grades your design against a rubric written specifically for this problem.
How do you generate short codes, and what does your choice cost you?
Do you redirect with a 301 or a 302, and why?
Your cache holds the hot codes. What has to happen when an entry is evicted or the cache is cold?
Minimum 5 components · needs a wide desktop screen