Skip to content
nonconvexcard

AI System Design

The mathematics of putting a model into production: Little’s law and the utilisation wall, tail latency under fan-out, parallelism and collective-communication cost models, caching, load balancing, availability and cost per token.

15 topics16 problems (6% of the database)assumes LLM Opsassumes Probability

Level 1 — Core

Level 2 — Advanced

Level 3 — Graduate

Problems (16)

Open in the browser
SolvedProblemTypeDifficultyTime
Budget a latency target across a fan-outNumericalBeginner15 min
Implement the cluster sizing formula runCodingBeginner30 min
Balls into bins, with one choice and with two runCodingIntermediate1 hour
Cache hit rates under Zipf popularity runCodingIntermediate1 hour
Derive the M/M/1 queue from detailed balanceProofIntermediate1 hour
How long must the canary run?NumericalIntermediate30 min
Measure fan-out amplification and the value of hedging runCodingIntermediate1 hour
Price a latency targetNumericalIntermediate30 min
Prove Little's law on a finite horizonProofIntermediate1 hour
Recover Little's law from an event log runCodingIntermediate1 hour
Simulate M/M/1 and verify the utilisation wall runCodingIntermediate1 hour
Size a serving cluster and find the binding constraintNumericalIntermediate1 hour