Token bucket per API key

  • Build
  • Guard 05

Difficulty 3 of 5

Three partner keys share one API that serves about 1,000 requests/s. From 0:20, the acme key sends 8 times its normal 150 requests/s. Bolt peaks at 250 requests/s. Keep bolt and cedar at 99.5 percent availability and p99 under 250 ms. Add one part.

Play level

HTTP/2Partner apps500 req/sAPI server2 vCPU · 2 GB
HTTP/2Partner apps500 req/sAPI server2 vCPU · 2 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 250 ms
Availability (Bolt)
at least 99.5%
Availability (Cedar)
at least 99.5%
Monthly cost
under 16 USD/mo
Parts you can add
Rate limiter, API gateway, Load balancer (L7)
Part limit
1
Traffic
200 req/s

Concepts

How players did

Player results load from the server.