Infrastructure primitives · Staff · N+1 capacity across independent API groups
Chaos Monkey system design, running live
Two API server groups sit behind the load balancer, each able to carry all 3,000 requests a second. When the monkey kills one, the load balancer sends everything to the other.
An illustrative teaching design, not a verified diagram of any company's internal architecture. Traffic, capacity and cost are simulator estimates. Model and assumptions.
- Traffic
- 3,000 req/sMedium scale
- AWS bill
- $2,107/mo
- p99
- 66 ms
- Components
- 4
3,000 requests a second across two independently routable API groups.
How it works
- The load balancer sends traffic to either API server group.
- Each group is sized to carry the full 3,000 requests a second on its own.
- Both groups use the same database tier, which remains a shared dependency.
What each part does
- Users
- 3,000 requests a second.
- API Server
- One four-instance API group, sized to carry the full load.
- API Server
- A second four-instance API group, also sized for the full load.
- Database
- Eight database instances shared by both API groups.
What breaks first
The shared database tier reaches its capacity as traffic rises.
Each group has finite capacity. The blueprint does not kill a group; the challenge injects that event and checks whether the survivor can carry the traffic.
The simulator checks this every build: it runs the design at 3,000 req/s, then ramps traffic to 4x (12,000 req/s) and records which part fails first. In the playground, press Break it to watch the same thing happen.
Trade-offs
What it gets right
- Either API group can carry the preset load after its peer fails.
- The topology makes the shared database dependency visible.
What it costs you
- Duplicated API capacity costs more than a single active group.
- The database and load balancer remain shared failure points.
In the real world
- Redundant application pools are a common way to keep serving after a pool failure.
- Failure-injection exercises test recovery behavior that a static graph cannot show.
In the interview
- Check that the surviving group carries the full peak, not half of it.
- Identify shared dependencies and state how they recover from failure.
Run it yourself
The playground opens this design with 3,000 requests a second already flowing. Press Break it, or change one part yourself, and watch which number goes first.
Questions people ask
How does Chaos Monkey work at the system design level?
The load balancer sends traffic to either API server group. Each group is sized to carry the full 3,000 requests a second on its own. Both groups use the same database tier, which remains a shared dependency.
What breaks first in a Chaos Monkey design?
The shared database tier reaches its capacity as traffic rises. Each group has finite capacity. The blueprint does not kill a group; the challenge injects that event and checks whether the survivor can carry the traffic.
What are the trade-offs of this Chaos Monkey architecture?
Either API group can carry the preset load after its peer fails. The topology makes the shared database dependency visible. Duplicated API capacity costs more than a single active group. The database and load balancer remain shared failure points.
What do interviewers look for in a Chaos Monkey system design answer?
Check that the surviving group carries the full peak, not half of it. Identify shared dependencies and state how they recover from failure.