Skip to content

Design a URL Shortener/Playground

A URL shortener like bit.ly

Click a part to change it, put something in front of it, or kill it. Turn the traffic up. Every number moves as you go; nothing is graded. 10 billion redirects and 100 million new links a month, peaks at 5× the average.

Running
Traffic
CLIENTClickersEDGECDN edgeSERVICERedirect serviceDATABASEPostgresSERVICELinks APICLIENTCustomerdashboardLOG / STREAMClick streamWORKERClick aggregator
Requests failing
0%
Backlog growing
9,300/s
Instances running
10

What goes through it

OperationOfferedOutcomeWaitUp
Redirects19k/sAll served13 ms99.94%
New links195/sAll served27 ms99.95%
Click eventsbackground19k/sBacklog +9,300/s––
Click counts savedbackground200/sKeeping up––

Wait is the expected time a caller waits; Up is the share of time every part it waits on is running.

What your changes did

Nothing yet. This is the reference design: change something to see what it buys and costs.

At this traffic

Ask AI what your design does

AI

The numbers above come from a simple model. The AI reads your design, what you changed and these numbers, and explains where it holds and where it fails, citing how the engineers who built it did it. It can be wrong.