BEGINNER · 12 MIN · FREE LESSON
Load balancers
Explore load balancers through a visual, step-by-step model.
Loading interactive lesson…
BEGINNER · 12 MIN · FREE LESSON
Explore load balancers through a visual, step-by-step model.
Loading interactive lesson…
Edit requests/second, replica count, per-replica CPU, cache hit target and a timed failure. One tick is one modeled second. Capacities and latency are illustrative model assumptions, not cloud benchmarks.
Loading architecture diagram…
Set explicit workload, capacity, failure-domain and queue assumptions.
Watch round-robin app processing, per-replica work counts and the separate database budget. Losing one app instance reduces available app capacity; extra instances do not make a failed database healthy. The simulator costs O(T·R) for T ticks and R offered requests per tick, using bounded FIFO queues. Results are deterministic workload-model outcomes, not production latency estimates.
Requests processed at the app tier, seed 42. Plotted sample sizes respect each lesson’s explicit input limits.
Keyboard: Space play/pause · ←/→ step · R restart · 1–5 speed. Reduced motion disables transitions.
A dispatcher shares a line across healthy counters while all counters still depend on the same stockroom.
Spread work without inventing downstream capacity. Use the validated parameter controls or edit the JSON scenario, then select Load input to recompute the trace.
Watch round-robin app processing, per-replica work counts and the separate database budget. Losing one app instance reduces available app capacity; extra instances do not make a failed database healthy.
Every visible outcome comes from the displayed state model. Timings, capacities and failures are illustrative assumptions, not cloud benchmarks or production-protocol guarantees.
Predict the next admission, delivery, cache, ownership or coordination decision. Introduce one failure at a time and account for every accepted, rejected, pending or committed outcome.
The player separates operation counters from architectural trade-offs. State size follows the active keys, tasks, nodes or retained history; the references use bounded scenarios. Container choices and presentation scans can affect simulator costs.
The four references implement the core model or its decision round. Queue/inbox and local ledger atomicity are explicit assumptions. Distributed deployment additionally needs durable shared state, complete protocol rules and operational validation. Reference inputs are fully validated/defaulted by the lesson; standalone callers must provide the shown fields.
Use to reason about healthy-target routing, capacity and where a balancing layer belongs.
This model demonstrates round-robin healthy-target distribution, not every provider’s connection, session-affinity or least-load policy.
Justify the model’s decision and name one production concern outside its scope.
MAKE IT STICK
Progress saves on this device and merges with your account after sign-in.
0 / 5000 · Saved on this device; synced when signed in.