Skip to main content
PRISM

System design, simulated

Every system design resource teaches with static boxes and arrows. A rectangle labelled “Cache” between two other rectangles tells you nothing about what happens when it goes cold at ten thousand requests a second — and that gap is why candidates can recite architectures and freeze when an interviewer asks what breaks.

These 31 concepts are not diagrams. Each one is a discrete-event simulation with real latency numbers, seeded so that the same parameters always produce the same run, and every sentence a page puts on screen is paired with a predicate the build checks. Turn a dial and the run re-executes from the same seed, so the past you were watching stays the past.

Start here

Load and traffic

Where requests go and what decides. Balancing strategies under uneven service times, hash rings that survive a node change, limiters that hold their limit, and the scaling lag no policy can outrun.

Latency and queueing

The arithmetic of waiting. Little’s Law made turnable, the utilisation curve drawn rather than claimed, fan-out turning a rare tail into the common case, and what a queue is really for.

Caching

Hit ratio as a curve rather than a line, five eviction policies on one trace, the stampede that takes a database down, and what each write strategy loses in a crash.

Reliability and failure

How a two-second fault becomes a one-minute outage, and the handful of patterns that stop it. Retry storms, circuit breakers, bulkheads, timeout budgets and exactly-once effects.

Data

Replication lag you can watch produce a stale read, partitioning schemes and the hot shard each one makes, CAP with the network actually cut, and the storage engines underneath.

Distributed coordination

Agreement without a coordinator. Raft elections, the quorum arithmetic that prevents split brain, fencing tokens, and what a clock cannot tell you about causality.

Asynchronous architecture

What you gain and what you give up by decoupling. Ordering against parallelism, the dual-write problem, compensating transactions, projection lag and connection fan-out.

The rest of the section

Asked in almost every senior interview