Backpressure

  • Build
  • Level 19 of 41
  • Queue

Difficulty 2 of 5

For 30 seconds, callers send 1,000 one-second jobs each second. The workers cannot keep up. Lose no accepted job. Keep the oldest job below 3 s and p99 below 150 ms.

Play level

HTTP/2Users1,000 req/sWorker1 vCPU · 1 GB
HTTP/2Users1,000 req/sWorker1 vCPU · 1 GB
The board at the start of the level
A buffer with a valveDrag or use arrow keys to change the buffer size

Buffer 1,000 jobs · last job waits 1.0 s · 17% turned away

Goals and limits

p99 latency
under 150 ms
Queue lag
under 3 s
Error rate
under 95%
Lost writes
none
Completion time
under 38 s
Monthly cost
under 100 USD/mo
Parts you can add
Message broker, Managed queue
Part limit
16

Concepts

How players did

Player results load from the server.