# Chaos Monkey system design, running live

Source: https://systemdesignsim.com/blueprints/chaos-monkey-resilience

Infrastructure primitives · Staff · N+1 capacity across independent API groups

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](https://systemdesignsim.com/methodology).

* 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.

[Open it running](https://systemdesignsim.com/playground?blueprint=chaos-monkey-resilience)[Or build it yourself first](https://systemdesignsim.com/challenges/chaos-monkey)

![Chaos Monkey architecture on AWS at 3,000 requests a second](https://systemdesignsim.com/blueprints/chaos-monkey-resilience.svg)

Chaos Monkey architecture on AWS at 3,000 requests a second. Scroll the diagram to see every component. The small text under a box is its traffic, instance count or shard count.

## How it works

1. The load balancer sends traffic to either API server group.
2. Each group is sized to carry the full 3,000 requests a second on its own.
3. 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.

[Open it running](https://systemdesignsim.com/playground?blueprint=chaos-monkey-resilience)[Take the challenge: Chaos Monkey](https://systemdesignsim.com/challenges/chaos-monkey)

## 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.

## More in infrastructure primitives

* [API rate limiter](https://systemdesignsim.com/blueprints/rate-limiter)
* [Job scheduler](https://systemdesignsim.com/blueprints/job-scheduler)
* [Notification system](https://systemdesignsim.com/blueprints/notification-system)
* [All blueprints](https://systemdesignsim.com/blueprints)

## One system design problem a week

A real scenario, its constraints, and where the obvious design breaks.

## Now break one yourself.

The first challenge takes about two minutes. No signup.

[Design your first system](https://systemdesignsim.com/challenges/hello-load-balancer)
