All problems

API Gateway

Auth, routing, and caching for every partner call — thin, but in front of everything.

medium~15 min Pro Simulator · +110 ptsTheory +46 pts
The build

Keep partner APIs answering through a launch-day flood while a gateway box dies and the backend slows.

The gateway tier does auth, routing and response caching for every partner call — it's thin, but it's in front of everything. A well-tuned response cache means most calls never reach the backend at all; a thin gateway fleet means one dead box drowns the survivors.

Components in play

  • Edge LBSpreads partner traffic across the gateway fleet.
  • API gatewayAuth, rate headers, routing — every call passes through here.
  • Response cacheServes repeated GET responses without touching the backend.
  • Backend servicesThe actual business logic behind the gateway.
  • Records DBDurable state the backend reads and writes.

Graded on these SLOs

  • ≥ 99.00%Calls succeed
  • ≤ 90 msResponse p99
  • ≥ 12k rpsCarry the launch
  • ≤ 90%Gateway headroom
  • ≤ 10Lean footprint
Base 12,000 rps44s run 3 scripted failures

The brief

Design the API gateway that fronts every partner integration: auth, rate limiting, routing, and response caching before a request ever reaches a backend service. A launch-day flood can triple traffic in minutes, and because the gateway sits in front of everything, one under-provisioned tier here takes down every partner at once.

Functional

  • Authenticate and route partner calls to the right backend service
  • Cache repeatable GET responses
  • Apply per-partner rate limits

Non-functional

  • Must absorb sudden multi-x traffic spikes (launches, retries)
  • High availability — every partner integration depends on this one tier
  • Backend services should only see the traffic the cache can't answer

Warm-up: design decisions

Optional theory to prime the calls a senior engineer would make before you build.

Pro

Solving is a Pro feature

Unlock the on-canvas AI design coach, per-run design reviews, the chaos simulator and all 12 problems for $15/month.

  • AI design coach on your canvas — pins failure points & over-engineering
  • Honest AI design review on every run
  • All 12 problems + unlimited chaos simulator
  • Points, levels & leaderboard
Get started