Playground

Web apps · CTO · Remove the largest line item, then right-size

The CTO Budget Cut system design, running live

The CDN was most of the bill, so it goes. Six compute-optimized servers replace twelve general-purpose ones, one small cache node replaces four large ones, and the database shrinks to a primary and one replica.

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
4,000 req/sMedium scale
AWS bill
$912/mo
p99
83 ms
Components
4

4,000 requests a second with 5% writes. The graph is a teaching preset, not a current-price promise.

The CTO Budget Cut architecture on AWS at 4,000 requests a second
The CTO Budget Cut architecture on AWS at 4,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 six compute-optimized API servers.
  2. A small cache serves common reads while the database keeps a primary and a replica.
  3. The CDN is omitted in the reference graph to remove its request-based charge in the stated scenario.

What each part does

Users
4,000 requests a second, with 5% writes.
API Server
Six c7g.large API servers.
Cache
One small cache node serves common reads.
Database
A primary and one read replica.

What breaks first

The API fleet is the first capacity limit during a higher traffic ramp.

Six API instances carry the preset in the reference design. Recalculate capacity and cost with current workload measurements before applying a similar change.

The simulator checks this every build: it runs the design at 4,000 req/s, then ramps traffic to 4x (16,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

  • Right-sizing targets the largest cost drivers first.
  • The cache and database remain in the graph after the CDN is removed.

What it costs you

  • Smaller margins can leave less room for unexpected growth.
  • Provider prices and traffic mix change the resulting bill.

In the real world

  • Cloud cost reviews often start with utilization and the largest service line items.
  • A teaching estimate is not a forecast of any company's bill.

In the interview

  • Find the largest cost driver before reducing every tier uniformly.
  • Check that savings preserve the same latency and error targets at peak.

Run it yourself

The playground opens this design with 4,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 The CTO Budget Cut work at the system design level?

The load balancer sends traffic to six compute-optimized API servers. A small cache serves common reads while the database keeps a primary and a replica. The CDN is omitted in the reference graph to remove its request-based charge in the stated scenario.

What breaks first in a The CTO Budget Cut design?

The API fleet is the first capacity limit during a higher traffic ramp. Six API instances carry the preset in the reference design. Recalculate capacity and cost with current workload measurements before applying a similar change.

What are the trade-offs of this The CTO Budget Cut architecture?

Right-sizing targets the largest cost drivers first. The cache and database remain in the graph after the CDN is removed. Smaller margins can leave less room for unexpected growth. Provider prices and traffic mix change the resulting bill.

What do interviewers look for in a The CTO Budget Cut system design answer?

Find the largest cost driver before reducing every tier uniformly. Check that savings preserve the same latency and error targets at peak.

One system design problem a week

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

One email a week. Unsubscribe any time. Privacy

Now break one yourself.

The first challenge takes about two minutes. No signup.