Skip to main content
CRUCIBLE
1-ON-1 MENTOR × VISUAL STORIES × FEYNMAN TEACH-BACK × SPACED REPETITION

Learn 1-on-1 with Crucible Mentor

Start with an everyday mental picture you can feel in your gut, play with the live visual slider, predict what breaks before you see the answer, and talk it through 1-on-1 until you can teach it without jargon.

FEYNMAN VERIFIED
0 / 12
FSRS REPS LOGGED
0
#1 WEAKEST PRIMITIVE
M01 · Idempotency Keys & Non-Blocking Event Loops
M02 · INTERACTIVE VISUAL STORY · B-TREE COMPOSITE INDEXES & PGBOUNCER POOL LANES

Two Checkout Lanes & An Unsorted Phonebook

Why a 4ms query suddenly turns into a 6-second cliff.

FIG. M02 · B-TREE INDEX & PGBOUNCER LANESLittle’s Law queue explosion under sequential table scans vs. composite B-Tree + transaction pooling
PRODUCTION FAULT ACTIVE
01 Normal Checkout
02 Seq Scan Cliff
03 Little’s Law Gate
04 Indexed Recovery
APP TIERPGBOUNCER :6432POSTGRES 16 HEAPSQL QueriesIndexed LookupFull Table ScanCheckout API800 QPS burst6,840ms p99Tx Pool Lanesdefault_pool_size418 cl_waitingB-Tree Index(tenant, created)MISSING8KB Heap PagesOrders Table100% Seq Scan
READ FLOW WRITE PATH REPLICATION FAULT / BLOCKED
CLICK ANY NODE OR DRAG SLIDER TO TEST PHYSICS
PGBOUNCER QUEUE DEPTHDEGRADING
SEQ SCAN + 2 LANES6,840 ms · 418 WAITL = 800 QPS × 50ms = 40 slots needed
COMPOSITE INDEX + 32 LANES4.2 ms · 0 WAITL = 800 QPS × 4ms = 3.2 slots used
Picture a grocery store with only 2 open checkout lanes (PgBouncer pool = 2). Normally each shopper takes 4 seconds, so the line stays empty. Now imagine the cashier has to read EVERY page of an unsorted phonebook to find your price (Seq Scan). Suddenly each shopper holds a lane for 200 seconds — and 500 angry shoppers pile up out the door!
INCOMING CROWD / REQUESTS12345678QUEUE PILING UP (96+ waiting)BOTTLENECK / TRAP2 Pool LanesOpen Checkout LanesLIVE OUTCOMEFull Seq ScanDrag slider to fix
2 lanes
POOL STARVED! cl_waiting=450 shoppers trapped outside the 2 lanes.
HANDS-ON SYSTEM MANIPULATION · WIRE & ORDER PUZZLES
PREDICT BEFORE READING (+25 XP)
If 200 shoppers arrive per second and each takes 0.05s at checkout, what happens if you only open 2 lanes?
Crucible Staff Systems Mentor
M02 · SOCRATIC PEER MODE
CRUCIBLE · M02 · PRODUCTIVE FAILURE
Before we introduce any terminology for M02 (Two Checkout Lanes & An Unsorted Phonebook), form a falsifiable hypothesis from the physical system: If 200 shoppers arrive per second and each takes 0.05s at checkout, what happens if you only open 2 lanes?