Skip to content
Chaos Lab

Challenge 22 · intermediate · Worker pool

The N+1 query

The same API: 600 requests a second, 200 threads, 20 database connections. At 10 seconds orders v2 ships: the order page now shows the order's 10 line items. No traffic spike, no slow query in the logs, nothing obviously wrong in review.

From 15 to 70 seconds, answer at least 580 requests a second before clients give up, with a p99 of 300 ms or less.

ready00:00 / 01:10Success · 10 s–p99 · 10 s–Queued0Memory320 MB

Goal · measured 00:15–01:10

0 changes · par 1
  • Answered before clients give up ≥ 580 answered/snot measured yet
  • p99 of those answers ≤ 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.