Skip to content

Interactive system design practice

Design Bitly. 100M redirects. Sub-20ms p99 response.

Build your architecture from scratch. See which decisions hold up as the challenges get harder.

  • 11 problems
  • 33 Deep Dives
  • Free

How it works

Peak redirects10K/sp9950 msUptime99.9%Users worldwideYes

An empty canvas, and the numbers it has to meet.

Users
Load balancer
App server
Redis cacheServes 9 in 10 reads
Postgres
Kafka

Features

Every verdict comes with its reason.

Litmus checks each box against the load it carries, then tells you what to change.

UsersLoad balancerApp server×5Redis cachePostgres
App server ×5Breaks

Breaks: 10.1k/s vs 10k/s capacity (101%). Needs ~7 instances.

101% usedgreen up to 80%

Live verdicts

Verdicts come from load against capacity, and name the fix.

Deep Dive 3 of 4

Ten times the traffic

  • Peak redirects10,000 /s100,000 /s
  • Reads per write100 : 150 : 1
  • Survive a database failureYesNew

Requirements that grow

Each Deep Dive raises the bar on the design you built.

UsersCDNLoad balancerApp server×7

Next step

Users are on every continent and your servers are in one region, so a far-off click spends about 200 ms just travelling. Popular links give everyone the same answer. Where could copies of those answers sit, closer to the users?

Show me

Hints, not answers

A question points the way. The answer waits until you ask.

CDNLoad balancerApp server×3Redis cachePostgres

Why Redis cache

Popular links are answered from memory: about 90% of redirects never reach the database, which keeps them within 50 ms.

The why behind every box

The reference design explains each box with the requirement that called for it.

Pick your first system

From Bitly to Dropbox, pick your first problem.

Browse 11 problems