INTERACTIVE LABORATORY

System Design Solver

A discrete-event simulator. Compose components from physical primitives, wire them, and run a realistic skewed workload to see real latency percentiles, utilisation, and where the design breaks.

Resolve a short code to a long URL. Overwhelmingly reads, tiny payloads, strict latency.

Forcing constraint

Read:write is ~100:1, the hot set is small, AND a big chunk of lookups are for codes that DON’T EXIST (typos, expired, bots scanning). Those absent reads still hit disk unless you stop them — this is where a Bloom filter earns its keep.

Workload: 8.0k/s · writes 1% · skew 1 (Zipf) · burst 2× ·  SLO: p99 ≤ 80ms, drops ≤ 0.5%
$0/mo
Choose a component to place it here.
Edge / Entry
Compute
Data (stack mechanisms on these)
Drop a Storage Node (Data) and stack mechanisms onto it — LRU, 🌸 Bloom, WAL — to forge a real database from small parts. Click any node to inspect it.

Build a path Client → … → datastore, then Run Simulation. The engine generates 8.0k req/s with Zipfian key skew and measures real end-to-end latency percentiles.

Guiding questions
The lesson

You build the store from mechanisms: LRU catches the hot present reads, a Bloom filter deflects the 40% absent reads before they hit disk, and what remains for the disk is tiny. Toggle the Bloom off to watch store load and p99 jump.

Reference solution