46 new Workbench · DevOps · Security · Interviews · Observability · Data · DB internals · Patterns · APIs · Testing · Request a topic
Free system design simulator / interactive lab
Don’t memorise system design.
Break it and watch.
95 live simulations of the systems behind every big website. Push the traffic, crash a server, flush the cache, flip a setting, and see exactly what happens next, with real numbers instead of boxes and arrows.
Or build and break your own system in the Workbench
- No sign-up
- Runs in your browser, phones too
- Free
- 95interactive simulations
- 15areas of system design
- 285quiz questions with explanations
- 13guided learning paths
Explore
Every topic is a working system
Each one has live controls, numbers that react, a “try this” list of experiments and a short quiz.
- Big picture 3D architecture Orbit a full web backend and watch requests hit the CDN, load balancer, cache, replicas and workers.
- FoundationsNew Capacity planning Turn daily users into requests per second, storage, bandwidth and a server count, with every step shown.
- Foundations Networking DNS, TCP, TLS and HTTP packet by packet. Compare HTTP/1.1, HTTP/2 and HTTP/3 across the world.
- Scaling data Load balancing Round robin vs least connections, health checks, crashes, traffic spikes and auto-scaling.
- Scaling data Caching Cache-aside with Redis: hit rate, TTL, cold starts and what happens to the database without it.
- Scaling dataNew Connection pooling Borrow database connections instead of opening one per request. Size the pool, watch the queue, and hit the database limit.
- Scaling dataNew Cache eviction LRU, LFU, FIFO and Random race on the same traffic. Scans and shifting trends pick the winner.
- Scaling data Sharding Hash mod N vs consistent hashing, keys that move, and why virtual nodes even out the load.
- Scaling dataNew Replication Pick N, W and R. Watch stale reads appear and vanish, and what a failed replica does to availability.
- Scaling dataNew Raft consensus Crash the leader and watch a new one win by majority vote. Writes commit only when most servers have them.
- Scaling dataNew CAP theorem Cut the link between two regions. CP refuses requests on the minority side; AP keeps answering and loses writes when the link heals.
- Scaling dataNew SQL vs NoSQL Push load and change the share of joins and transactions. SQL hits its primary’s ceiling; NoSQL scales out but pays for joins and loses atomicity.
- Scaling dataNew Query plans One query, three indexes. Watch a full table scan become an index seek that skips the sort and stops after 20 rows.
- Scaling dataNew Elasticsearch Type a search over a product catalogue. See terms, stemming and posting lists find what SQL LIKE misses, while reading far less.
- Scaling dataNew Database deadlock Transfers lock two account rows each. Watch a wait-for cycle form, the detector kill a victim, and lock ordering make deadlocks impossible.
- Scaling dataNew Transactions Crash the server mid-transfer. Without a transaction money vanishes; with one it rolls back. Then see why commits must reach the disk.
- Async and streaming Queues Backlog, consumer capacity, retries and dead letters. See why queues absorb bursts but not overload.
- Async and streaming Kafka Partitions, keys, consumer groups, lag, rebalancing and replay, in seven guided steps.
- Async and streamingNew Real-time updates Four ways to push updates to a browser, on the same events: delay, requests and connections compared.
- Async and streamingNew Real-time analytics Count clicks in 10-second windows as they stream in. The watermark trades complete counts against how fast results appear.
- Edge and reliability API gateway Routing, TLS, JWT auth, rate limits, caching and failover, with a live nginx.conf you can copy.
- Edge and reliability Rate limiting Token bucket, fixed window and sliding window under steady, bursty and window-edge traffic.
- Edge and reliabilityNew Resilience Watch retries turn a slow dependency into a retry storm, and a circuit breaker stop it.
- Edge and reliabilityNew Region failover Kill the primary region and time the outage: health checks, replica promotion and DNS TTL. Async loses writes, sync costs latency.
- DevOps and cloudNew Deployment strategies Ship v2 three ways. Batch size, double fleets and canary steps decide how many users a bad release hurts before the health gate rolls it back.
- DevOps and cloudNew CI/CD pipeline Commits flow through lint, tests, build and deploy. Add runners, parallel stages and caching, or skip tests, and watch lead time and escaped bugs.
- DevOps and cloudNew Docker layers Edit code and see which image layers rebuild. Dockerfile order, slim base images and multi-stage builds cut build time and image size.
- DevOps and cloudNew Kubernetes Place pods on nodes by CPU request, then kill a node. Spread or bin-pack, Pending pods and failure detection decide how much capacity you lose.
- DevOps and cloudNew Autoscaling Traffic spikes; the autoscaler adds servers by CPU target. Boot time, target CPU and cooldown trade dropped requests against cost.
- DevOps and cloudNew SLOs and alerting A 99.9% SLO leaves an error budget. Static alerts page for blips and miss slow leaks; burn-rate alerts page on what really matters.
- DevOps and cloudNew Infrastructure as code Change Terraform-style code and read the plan. Console clicks cause drift, engine changes replace databases, and no state lock makes duplicates.
- ObservabilityNew Metrics, logs, traces Pick an incident and the signals you pay for. Metrics alert fast, traces point at the slow span, logs find one customer, and the bill grows with logs.
- ObservabilityNew Distributed tracing A checkout request as a trace waterfall. Slow down the database or payments, call services in parallel, and lose the trace header to break the trace.
- ObservabilityNew Trace sampling Keep 1% of traces with a coin flip and you lose 99% of the errors. Tail sampling keeps every error and slow request but needs collector memory.
- ObservabilityNew Metric cardinality Labels multiply time series. Method, route and status are fine; add a user id or raw URL path and watch series, memory and query time explode.
- Data platformNew Batch vs stream Hourly batch, micro-batch or a stream processor: see how old the dashboard number is, what the cluster costs, and how a watermark drops late events.
- Data platformNew Change data capture Dual writes drift on crashes, polling is late and misses deletes, and CDC from the write-ahead log (Debezium) keeps the search index in sync.
- Data platformNew Lake vs warehouse Compare a data lake, a warehouse and a lakehouse on your data size: monthly bill, dashboard query time, raw data for ML and safe concurrent writes.
- Data platformNew Exactly-once A worker charges cards from a queue and crashes. Commit first and orders are lost, charge first and some are billed twice, idempotency keys fix it.
- Data platformNew Backfills Rerun 90 days of a broken job. Parallelism finishes sooner, throttling protects production, overwrite partitions and checkpoints make reruns safe.
- Database internalsNew B-tree vs LSM Slide the write share and compare a B-tree with an LSM tree: random page writes vs sequential files, compaction levels and Bloom filters.
- Database internalsNew Write-ahead log Commit with an fsync each time, share fsyncs with group commit, or go async, then pull the power cord and see which commits survive.
- Database internalsNew MVCC Run a long report while orders arrive. Read locks make writers wait; MVCC snapshots let both run but keep old row versions until vacuum.
- Database internalsNew Row vs column store The same table stored by row and by column. Load one order or sum revenue over 100 million rows and see how many bytes each layout reads.
- Networking and APIsNew REST vs GraphQL vs gRPC Load one phone screen three ways. Count requests, round trips and wasted bytes, then watch GraphQL hit the database N+1 times until DataLoader batches it.
- Networking and APIsNew API pagination Page through 10 million rows. Deep offsets read a million rows for 20 results and repeat items when new rows arrive; cursors stay fast and exact.
- Networking and APIsNew HTTP caching Switch between no-store, no-cache and max-age, toggle the ETag and watch each visit: served from cache, a tiny 304, a full download or a stale copy.
- Networking and APIsNew Webhooks Take your webhook receiver down for an hour. See which retry schedule loses events, which floods you on recovery, and why handlers need dedupe and HMAC.
- Networking and APIsNew GeoDNS vs anycast Serve India, Europe and the US from three regions, then take one down. GeoDNS waits for TTLs to expire; anycast moves traffic in seconds via BGP.
- Testing and reliabilityNew Test pyramid Choose how many unit, integration and end-to-end tests to write. See suite time, flaky runs and which bugs still reach users.
- Testing and reliabilityNew Load testing Ramp traffic until p95 jumps, spike to a sale-day peak and soak for a day to catch a memory leak. Find whether CPU or the DB pool breaks first.
- Testing and reliabilityNew Chaos engineering Kill an instance, slow a dependency or take it down. See which missing timeout, retry, circuit breaker or fallback turns one fault into an outage.
- Testing and reliabilityNew Contract testing Rename, retype or remove an API field. Without contract tests consumers break in production; with them the provider build fails first.
- Testing and reliabilityNew Testing in production Ship a version with a hidden bug four ways. Count users hurt with a big-bang release, a feature flag, a dark launch and mirrored shadow traffic.
- Distributed patternsNew CDN caching Tune the TTL, break the cache key with cookies, purge on deploy and turn on stale-while-revalidate. Watch hit ratio, origin load and staleness.
- Distributed patternsNew Event sourcing Store every change as an event, build read models from the log, ship a bug and rebuild. Compare with CRUD, watch projection lag and snapshots.
- Distributed patternsNew Outbox pattern Kill the order service between the DB write and the Kafka publish. Dual writes lose events; the outbox and CDC never do, but send some twice.
- Distributed patternsNew Gossip protocol Kill a node and watch the news spread. Compare a central monitor, all-to-all heartbeats and gossip, and see short timeouts flag healthy nodes.
- Distributed patternsNew CRDTs and conflicts Split two regions, keep counting likes on both sides, then heal. Last-write-wins loses likes, vector clocks need merge code, CRDTs merge themselves.
- Security and authNew OAuth and OIDC Step through the authorization code flow, then add an attacker. PKCE stops stolen codes, state stops login CSRF, and the implicit flow leaks tokens.
- Security and authNew JWT vs sessions Ban a user and see how long their token still works. Sessions revoke at once but need a store; JWTs skip the lookup but live until they expire.
- Security and authNew TLS handshake Count the round trips before the first byte with TLS 1.2, TLS 1.3, QUIC and 0-RTT resumption, and break the certificate to see the browser stop.
- Security and authNew Password hashing An attacker has your users table. MD5, SHA-256, bcrypt or Argon2, salt or no salt: watch how fast 10,000 passwords fall on GPUs.
- Security and authNew Secrets rotation Rotate a database password used by four apps. Naive changes break them, overlapping passwords do not, and a vault makes leaked credentials expire.
- Security and authNew DDoS and WAF Hit the origin with a bandwidth flood, an HTTP flood, a botnet or SQL injection probes, and stack CDN, rate limits, WAF rules and bot challenges.
- Edge and reliabilityNew Idempotency A lost reply makes the client retry a payment. Watch double charges pile up, then stop with an idempotency key.
- Edge and reliabilityNew Distributed lock A frozen worker wakes after its lease ran out and overwrites someone else. Fencing tokens make storage refuse it.
- Edge and reliabilityNew Service discovery Instances heartbeat to a registry; clients cache the list. Crash one and see traffic hit it until TTL and caches expire.
- Design interviewsNew URL shortener Counter or random codes, collisions, a cache for hot links, and why 301 vs 302 changes your traffic and your analytics.
- Design interviewsNew Job scheduler Workers claim jobs with leases. Crash one and the job is retried; make the lease too short and jobs run twice.
- Design interviewsNew Notifications Fan events out to push, SMS and email queues. Take the push provider down, fall back to SMS, and cap messages per user.
- Design interviewsNew WhatsApp Sent, delivered and read ticks from acks. Take Bob offline to fill his server inbox; drop acks and watch message ids stop duplicates.
- Design interviewsNew Instagram Popular photos served from edge caches in each city. Turn the CDN off or send 4 MB originals and watch load time and origin traffic.
- Design interviewsNew YouTube A worker pool turns uploads into 240p to 1080p. Split videos into segments, publish low quality first, and match workers to the upload rate.
- Design interviewsNew Netflix The player picks 240p to 4K for every 4-second segment. Ride a train through tunnels and compare fixed, speed-based and buffer-based choices.
- Design interviewsNew Uber Drivers report locations; riders need the closest one fast. Compare scanning every driver with searching geo cells, and see stale locations.
- Design interviewsNew Google Maps Roads as a weighted graph. Watch Dijkstra and A* explore the city, then ignore live traffic and see routes drive into a jam.
- Design interviewsNew Twitter/X Copy each post into followers’ timelines, or merge at read time. One celebrity post floods the queue; the hybrid fixes it.
- Design interviewsNew Dropbox Files as 4 MB chunks named by hash. Edit one slide and only one chunk moves; files the server already has upload instantly.
- Design interviewsNew News feed ranking Order 60 posts by newest, most liked or ranked for you. Likes reward clickbait; affinity, freshness and a diversity pass give a feed people value.
- Design interviewsNew Search autocomplete Type into a search box backed by a trie. Stored top-5 lists answer in microseconds but miss trending queries; debouncing cuts requests by half.
- Design interviewsNew Chat presence Heartbeats decide the green dot. Close a laptop and see how long friends still see online, then make a lossy network flap and cut presence fan-out.
- Design interviewsNew Web crawler Workers fetch pages and queue links. Drop the seen-set and pages repeat, drop politeness and small sites get hammered, and a calendar trap never ends.
- Design interviewsNew Distributed cache Add a server: hash mod N moves 80% of keys, a consistent hash ring about 1 in N. Virtual nodes even the load; replicas spread one hot key.
- Design interviewsNew Shopping cart Browser, cache with a TTL, or database: which carts survive a device switch or a long weekend? Then see why checkout must re-check price and stock.
- Design interviewsNew Ticket booking Fans race for the centre seats. No lock sells seats twice, checking at payment means refunds, and seat holds with a timer fix both.
- Design interviewsNew Logging system Agents ship log lines to an indexer. Start an incident and see errors lost without a Kafka buffer, and DEBUG logs flood storage and search.
- PaymentsNew Payment gateway Authorise, capture, expire and refund. Watch holds run out before shipping and webhooks retry while the merchant is down.
- PaymentsNew Digital wallet Concurrent transfers with read-then-write create and destroy money. Locks or a double-entry ledger keep the books balanced.
- PaymentsNew UPI payments Your app, NPCI and two banks. Make the shop’s bank slow or down and see pending payments, late credits and auto-reversals.
- PaymentsNew Reconciliation Match our payments against the bank settlement file each day. Late settlements clear themselves; lost webhooks and fee differences are real breaks.
- PaymentsNew Saga pattern Order, stock, payment and courier in four services. When a step fails, compensating actions undo the rest, newest first.
- PaymentsNew Inventory holds Ten phones, hundreds of buyers. Check-then-write oversells; holds on Buy reserve a unit and release it if the buyer abandons.
- PaymentsNew Offline payments Shops keep taking small payments while offline and sync later. An offline limit caps the loss from customers who overspend.
- PaymentsNew Fraud detection Risk scores from simple signals. Move the block and review lines and trade fraud caught against honest customers refused.
No topic matches that.
Your progress
0 of 95 topics done
Saved in this browser only. A topic counts as done when you’ve opened it and aced its quiz.
Badges
Learning paths
Not sure where to start? Follow a path
Each path strings topics together in an order that builds on itself. The lab shows your place and the next step.
Interview crash course
The core building blocks most system design interviews expect, in a sensible order.
- Capacity planning
- Networking
- Load balancing
- Caching
- Sharding
- Replication
- Queues
- Rate limiting
- 3D architecture
9 topics · ≈ 60 minStart path →Backend fundamentals
From the first packet to a cached, load-balanced API.
5 topics · ≈ 33 minStart path →Scaling and reliability
What changes when one database and one region are no longer enough.
5 topics · ≈ 37 minStart path →Security essentials
How sign-in works and how attackers are kept out: OAuth, tokens, TLS, passwords, secrets and DDoS defences.
6 topics · ≈ 32 minStart path →DevOps essentials
From a commit to a running, watched service: pipelines, images, Kubernetes, scaling, safe releases and alerts.
- CI/CD pipeline
- Docker layers
- Kubernetes
- Autoscaling
- Deployment strategies
- SLOs and alerting
- Infrastructure as code
7 topics · ≈ 39 minStart path →More design interviews
Five more classic questions: rank a feed, autocomplete a search, show who is online, crawl the web and spread a cache.
5 topics · ≈ 30 minStart path →Observability essentials
How to see what a system is doing: the three signals, tracing a request, sampling and label cardinality, then SLO alerts.
5 topics · ≈ 26 minStart path →Data engineering basics
From raw events to trusted numbers: batch vs stream, CDC, where to store it, processing each event once, and fixing history.
5 topics · ≈ 25 minStart path →Inside the database
How a database stores, protects and reads your data: storage engines, the log, MVCC, column stores and query plans.
5 topics · ≈ 25 minStart path →API design essentials
Choosing and running an API: REST, GraphQL or gRPC, paging big lists, caching responses, delivering webhooks and routing users worldwide.
5 topics · ≈ 26 minStart path →Testing essentials
How to find the flaws in a design before users do: the right mix of tests, load and chaos experiments, contract tests and safe releases.
5 topics · ≈ 27 minStart path →Distributed patterns
How services and replicas stay in step: edge caches, event logs, the outbox, gossip membership and conflict-free merges.
5 topics · ≈ 25 minStart path →Event-driven systems
Work that happens later, streams that many services read, and pushing results to users.
4 topics · ≈ 28 minStart path →
How it works
Learn it the way engineers do: by poking it
- Pick a systemA cache, a queue, a load balancer, a Kafka topic. Each one is running live the moment you open it.
- Change one thingDrag traffic up, shrink the cache, add a server, switch the algorithm. Numbers and charts react instantly.
- Break it on purposeCrash servers, flood with bots, flush caches, slow down a dependency. See the failure, then fix it.
- Explain the trade-offEvery topic ends with a short quiz, so you can say why, not just what. Ideal before an interview.
Inside the lab
Built for learning, not for slides
- Live numbersp95 latency, hit rates, consumer lag, stale reads, error rates, all measured from the running simulation.
- Guided lessonsKafka, sharding and the API gateway walk you through step by step, highlighting the control to try next.
- Real configThe gateway writes a working nginx.conf as you toggle features, and you can copy it.
- Speed and pauseSlow time down to watch a single request, or speed it up to see a retry storm build.
- Keyboard friendlySearch with Ctrl K, switch topics with [ ], pause with P, full screen with F.
- Shareable linksEvery topic has its own address, so you can send a friend straight to consistent hashing.
Reviews
What learners say
Real reviews from signed-in SimuVeda accounts, shown with permission. Write yours