Scenario Launcher

Select a Scenario

Each scenario demonstrates a core distributed system pattern. Hover to preview the system flow, then run the simulation to watch it in action.

Scenarios

4

Beginner

2

Avg Frames

13

Beginner
01

Simple Load Balancer

Watch round-robin request routing across multiple backend servers and inspect each frame in the sequence.

System Flow

Client → Load Balancer → Server 1/2

Behavior

Requests distribute across servers in round-robin order. Each server handles requests sequentially.

Round RobinRequest RoutingTraffic Visualization
16 framesUpdated 2026-03-12
Run Simulation
Beginner
02

Simple Cache (Redis + Postgres)

Observe cache hit, cache miss fallback to Postgres, and invalid-key lookups with per-frame debug details.

System Flow

Client → Redis ↔ Postgres

Behavior

requests check Redis first. On miss, fallback to Postgres. Data flows both directions.

Cache AsideRedis Hit/MissDB Fallback
6 framesUpdated 2026-03-13
Run Simulation
Intermediate
03

Simple API Gateway (Routing + Cache)

Track endpoint-based routing from API Gateway to backend services with Redis/Postgres flow snapshots.

System Flow

Client → API Gateway → LB → Servers, Cache, DB

Behavior

Gateway routes endpoints to appropriate services. Full chain with caching and persistence.

Endpoint RoutingRound RobinGateway + Data Stores
7 framesUpdated 2026-03-22
Run Simulation
Intermediate
04

Simple Valet Key (Direct Upload)

Simulate signed URL upload flow where server issues a valet key and client uploads directly to cloud storage.

System Flow

Client → Server → signedURL → Client → Cloud Storage

Behavior

Client first gets a signed upload URL from server, then uploads directly to storage without streaming file through backend.

Signed URLDirect UploadStorage Offload
24 framesUpdated 2026-03-29
Run Simulation

Add new scenarios in src/scenarios/all.ts

Launch Cache Demo