Try
↑ ↓ move↵ openesc close

Playground

Each lab runs a real mechanism from a seeded simulator. Change a parameter and the system reacts. The same seed always gives the same run.

load 0.82seed 42same seed, same run
  1. Lab 01

    Load balancing

    Send random arrivals to servers that run at different speeds, and watch queues, tail latency and throughput react to the strategy you pick.

    Open the lab
  2. Lab 02

    Cache eviction

    Zipf-distributed requests hit a fixed-size cache. Compare FIFO, LRU, LFU and a TinyLFU-style admission policy, then move the hot keys mid-run to see which policies adapt.

    Open the lab
  3. Lab 03

    Consistent hashing

    Place nodes and virtual nodes on a hash ring, add and remove nodes, and compare how many keys move against the naive hash mod N rule.

    Open the lab
  4. Lab 04

    Replication and lag

    A leader streams writes to followers over a network that is slow and uneven. Pick when the leader acknowledges, watch lag, write latency and stale reads, then kill the leader.

    Open the lab
  5. Lab 05

    Quorums

    Write to W of N replicas, read from R of them. Tune R and W, break nodes, slow some down, and see staleness, latency and availability trade against each other.

    Open the lab
  6. Lab 06

    Partitioning keys

    Spread keys over partitions by key range or by hash, under uniform, skewed and sequential traffic. See hot partitions, the cost of a range scan, and what splitting a hot range does.

    Open the lab
  7. Lab 07

    Queue buffer

    Bursty producers feed a bounded queue drained by a few consumers. Watch depth, wait time, drops and Little's law while you change the load, the buffer and what happens when it fills.

    Open the lab
  8. Lab 08

    Delivery guarantees

    Consumers that crash around the acknowledgement. Compare acking before the work, acking after it, and adding an idempotency key, then count lost messages and duplicate side effects.

    Open the lab
  9. Lab 09

    Partitioned log

    A keyed topic split into partitions and read by a consumer group. Watch ordering, lag, idle consumers, a hot key, a rebalance pause and a replay from the start.

    Open the lab
  10. Lab 10

    Rate limiter algorithms

    Send the same traffic through a fixed window, a sliding log, a sliding counter, a token bucket and a leaky bucket, and compare what each admits, rejects and remembers.

    Open the lab
  11. Lab 11

    Load shedding

    Push more traffic at a server than it can serve, and compare an unbounded queue with a bounded queue, deadline-aware drop and adaptive LIFO by the work that finishes in time.

    Open the lab
  12. Lab 12

    Retries and circuit breakers

    Degrade a dependency at a chosen moment and watch six client policies react. Compare how many attempts each sends, how much load the dependency sees and whether it ever recovers.

    Open the lab
  13. Lab 13

    Failure detection

    One node sends heartbeats over a jittery network and sometimes pauses. A fixed timeout and a phi accrual detector watch it. See how fast each notices a real crash, and how often each cries wolf.

    Open the lab
  14. Lab 14

    Raft consensus

    A cluster of three to seven nodes elects a leader and replicates a log. Crash nodes, cut the network, submit writes, and watch terms, votes and commit indexes keep the log consistent.

    Open the lab
  15. Lab 15

    Locks, leases and fencing

    Clients take a lease-based lock and write to storage. One stalls past its lease and writes anyway. Compare storage that trusts the lock with storage that checks a fencing token.

    Open the lab
  16. Lab 16

    Latency percentiles

    A stream of requests with a small slow share. Read the mean, median, p95, p99 and p99.9, average percentiles across hosts, bucket them coarsely, and measure them with a load generator that waits.

    Open the lab
  17. Lab 17

    Distributed tracing

    A request fans out across services with sequential and parallel calls. Read the span waterfall and its critical path, measure the tail at scale against the formula, and compare head and tail sampling.

    Open the lab
  18. Lab 18

    SLOs and burn-rate alerts

    A 99.9 percent SLO over 30 days, simulated minute by minute, with a short outage, a slow burn and noise. Compare a threshold alert, a single-window burn-rate alert and a multi-window multi-burn-rate alert.

    Open the lab
  19. Lab 19

    B-tree page writes

    Insert keys into a B-tree and count the pages it splits, the pages it must write and the bytes written for each byte of record, with the write-ahead log on and off.

    Open the lab
  20. Lab 20

    LSM compaction

    Write to an in-memory table that flushes to sorted files, and compact those files either by levels or by tiers. Read write, read and space amplification as the files merge.

    Open the lab
  21. Lab 21

    Bloom filters and indexes

    Fill a Bloom filter and measure its false positive rate against the formula, then add secondary indexes to a table and count what they do to the cost of a write.

    Open the lab
  22. Lab 22

    Two-phase commit

    Run transactions across several participants, crash the coordinator after the votes, and watch the locks it leaves behind. Compare waiting, asking the other participants, and aborting on a timeout.

    Open the lab
  23. Lab 23

    Saga compensation

    Run a chain of steps with an undo for each. Make steps and undos fail, switch between orchestration and choreography, and watch readers see work that is later taken back.

    Open the lab
  24. Lab 24

    Idempotency keys and the outbox

    Take orders from clients that retry, and publish an event for each one. Compare a dual write with a transactional outbox, idempotency keys with different lifetimes, and a consumer that does or does not drop repeats.

    Open the lab
  25. Lab 25

    CDN edge cache

    Send skewed traffic through edge caches in front of an origin. Change the TTL, the cache key, the number of edges and a shield, and watch hit ratio, origin load and stale responses move.

    Open the lab
  26. Lab 26

    DNS failover and TTLs

    Fail one endpoint on a schedule and let DNS move clients to the other. See how the TTL and resolvers that ignore it set how long users keep hitting the dead one, and how weighted answers split traffic.

    Open the lab
  27. Lab 27

    Connection pools and head-of-line blocking

    Send requests over a pool of connections. Compare handshakes on every request with reuse, a pool that is too small, HTTP/1.1 with HTTP/2, and what packet loss does to streams that share one TCP connection and to QUIC.

    Open the lab
  28. Lab 28

    Short ID collisions

    Create short links with random codes or a counter, and send skewed clicks through a cache. Change the code length, the cache size and the redirect status, and watch collisions, hit ratio and what the server can count.

    Open the lab
  29. Lab 29

    Feed fan-out

    Build feeds for 1,000 users by pushing posts, pulling at read time, or both. Raise the follower skew and watch the write cost, the write backlog and the read latency move.

    Open the lab
  30. Lab 30

    Chat delivery

    Send messages to 30 users through four gateways with packet loss, gateway crashes and users who go offline. Compare showing messages on arrival with holding them for order, and duplicate checks on and off.

    Open the lab

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms