Skip to content
Chaos Lab

Challenge 18 · starter · API gateway

Rate limiter under attack

200 users send 400 requests a second to an API that answers 1,000 a second. At 10 seconds a scraper starts: 3,000 requests a second, all with the same API key, spread evenly over 300 IP addresses. The gateway can rate-limit requests, and you choose what it counts them against.

From 15 to 60 seconds, answer at least 99% of real users' requests, with their p99 at 300 ms or less.

ready00:00 / 01:00Success · 10 s–p99 · 10 s–Server load0%

Goal · measured 00:15–01:00

0 changes · par 1
  • Real users' requests answered ≥ 99.0%not measured yet
  • Real users' p99 ≤ 300 msnot measured yet

This is a simulation. Its numbers come from a model of a typical system, not from measuring real servers. The same link and seed always give the same run. How the Chaos Lab works.