The hot key

  • Fix
  • Cache 11

Difficulty 2 of 5

Four cache replicas have plenty of total CPU. At 0:10, one key starts to get 90 percent of 200,000 reads/s. Keep p99 below 150 ms and errors below 0.1 percent.

0:10. One cache replica is at full CPU. Graph: 1 replica line at 100 percent, 3 replica lines almost idle.

Play level

HTTP/2SQLUsers200,000 req/sRedis cache1 vCPU · 1 GB × 4Postgres4 vCPU · 2 GB
HTTP/2SQLUsers200,000 req/sRedis cache1 vCPU · 1 GB × 4Postgres4 vCPU · 2 GB
The board at the start of the level
Keys on a hash ringArrow keys add or remove a node. Tap to switch the hash.

Hash ring · 3 to 4 nodes · 8 of 36 keys move

Goals and limits

p99 latency
under 150 ms
Error rate
under 0.1%
Monthly cost
under 250 USD/mo
Parts you can add
Redis cache, Local cache
Part limit
16
Edit limit
3
Traffic
200,000 req/s

Concepts

How players did

Player results load from the server.