URL Shortener
Challenge: Serve 400K redirects a second with p99 under 50 ms and no errors.
Each scenario is a live model of a real design question. Turn up the load, watch what fails, and add the parts that fix it.
Challenge: Serve 400K redirects a second with p99 under 50 ms and no errors.
Challenge: Deliver every message in order to a million connected phones.
Challenge: Serve 200K paste reads a second with p99 under 100 ms and no errors.
Challenge: Serve 200K feed loads a second with feeds under 150 ms, images under 400 ms and no errors.
Challenge: Keep 300M online devices in sync, with changes visible within 5 seconds, no lost edits and no errors.
Challenge: Serve 300K home timeline reads a second with p99 under 200 ms, posts under 500 ms and no errors.
Challenge: Stream to 10M viewers at once with under 1% rebuffering and first frame in under 2 s.
Challenge: Answer 600K keystrokes a second with p99 under 100 ms, no errors, and trends that show within minutes.
Challenge: Hold 1M requests a second, half of them a flood, to each key’s limit: under 1% over-limit let through, under 1 ms added, no errors.
Challenge: Ingest 20M points a second with no dropped points and dashboard p99 under 1 second.
Challenge: Take in 3 GB/s of events, keep 7 days of them, and let consumers keep up, with produce p99 under 50 ms and no lost writes.
Challenge: Serve 1M ops a second with p99 under 10 ms, 3 copies of every key and no errors.
Challenge: Keep exact top-K lists within 10 s through a 100K shares/s spike, with one article taking 30% of it.
Challenge: Crawl 4,000 pages a second without hammering any site, re-fetching seen URLs or storing copies.
Challenge: Serve 100K feed loads/s with p99 under 200 ms, posts in feeds within 10 s, and no posts lost.
Challenge: Serve 10 million live sharers with search p99 under 100 ms and friends’ moves on screen within 5 seconds.
Challenge: Collect metrics from 50,000 servers, 2.5 million samples a second, with dashboard p99 under 1 second and no gaps.
Challenge: Run a calendar for 50 million daily users with week views under 200 ms, saves under 500 ms and reminders on time.
Challenge: Carry 1M messages a second with publish p99 under 50 ms, 3 copies of every message and nothing lost when a consumer crashes.
Challenge: Take 400K events a second with no data lost, bots filtered, and dashboards answering in under 1 second.
Challenge: Sort 100 TB in under 30 minutes on at most 250 workers, without restarting when a machine dies.
Challenge: Count 200K ranking events a second and serve fair, fresh charts with p99 under 50 ms.
Challenge: Start 20K job runs a second, top-of-the-minute spikes included, within 5 s of their due time and never twice.
Challenge: Deliver 300K notifications a second during a campaign, with p99 under 5 s, OTP codes never stuck behind marketing, and nothing sent twice.
Challenge: Price 400K events a second into surge multipliers under 60 s old, with quotes under 50 ms and steady, locked prices.
Challenge: Enforce screen limits for 40M concurrent streams with no races, no ghost slots and start checks under 50 ms.
Challenge: Stream 400K driver updates a second to riders’ maps within 2 s and answer ETAs under 200 ms with live traffic.
Challenge: Serve 60K hotel searches a second, with 600 bookings a second, p99 under 150 ms and no double bookings.
Challenge: Take in 500K experiment events a second with flag checks under 5 ms, nothing dropped and no event counted twice.
Challenge: Match 50K price changes a second on sale day and send every alert within 60 seconds, once.
Challenge: Serve 30K requests a second per process with p99 under 10 ms, a validated graph and startup under 2 seconds.
Challenge: Authorize 10K card payments a second with p99 under 1 second and zero double charges.
Challenge: Take 100K likes a second, 20K of them on one post, with count reads under 20 ms p99 and no double counts.
Challenge: Run a 50,000-node database fleet with zone-loss recovery under 30 s and a healthy control plane.
Challenge: Serve 150K page requests a second through a credential-stuffing wave with no account takeovers.
Challenge: Serve a 200K req/s storm spike with p99 under 200 ms while staying under the provider’s 2,000 calls/s cap.
Challenge: Keep 1.5M editors online in sync, with edits reaching others in under 200 ms and no split documents.
Challenge: Serve 20K searches a second with p99 under 200 ms, no errors and no sold items in results.
Challenge: Monitor 100K hosts with samples queryable in under 30 s, no dropped samples, no false alarms and one page per failure.
Challenge: Match riders with 1M drivers online, with no double bookings and pickups under 5 minutes.
Challenge: Take in 50M spans a second, keep every error trace, and drop nothing.
Challenge: Survive 1M claim attempts a second at launch, never give out more than 6M burgers, and one per person.
Challenge: Carry 1M active downloads (25 Tbit/s) with no errors, no restarts from zero and no corrupt files.
Challenge: Push live prices to 10M viewers worldwide with p99 price age under 500 ms and no errors.
Challenge: Take 20K photo uploads a second on a holiday peak, with 400K thumbnail views, timeline p99 under 150 ms and no errors.
Challenge: Page the right engineer within 30 s through a 200K events/s alert storm, with every escalation on time.
Challenge: Take 5K wire transfers a second with p99 under 300 ms, no duplicate sends and every cent reconciled.
Challenge: Keep 20M viewers' comments on screen within 2 s, with one post holding 6M of them, and no dropped connections.
Challenge: Show a live viewer count to 10M connected viewers, updated within 5 seconds, with no drift and no errors.
Challenge: Take 100K likes a second, 30K of them on one post, and show 5M watchers the count within 2 seconds with no errors.
Challenge: Move 5 PB to the cloud in 30 days, every object verified, with under 1 hour of cutover downtime and production never overloaded.
Challenge: Keep 10 million peers swapping files, with a 2 GB download under 10 minutes and the tracker under 80% load.
Challenge: Serve 30K shopper requests a second at a holiday peak with p99 under 200 ms and no wrong fit answers.
Challenge: Pick ads for 300K feed requests a second with an ad decision p99 under 80 ms, no lost events and no double billing.