Remove a useless cache

  • Fix
  • Cache 19

Difficulty 3 of 5

Of all calls, 98 percent are writes. The remote cache adds a 40 ms hop and saves very few reads. Keep p99 below 45 ms.

0:00. Write p99 is above 45 ms. Graph: the cache hit ratio stays near 0 while each call pays the cache hop.

Play level

HTTP/2SQLUsers1,000 req/sRedis cache0.25 vCPU · 0.5 GBPostgres0.5 vCPU · 1 GB
HTTP/2SQLUsers1,000 req/sRedis cache0.25 vCPU · 0.5 GBPostgres0.5 vCPU · 1 GB
The board at the start of the level
Cache size and hit ratioDrag or use arrow keys to change the cache size

1,600 keys · hit 81% · mean 3.2 ms

Goals and limits

p99 latency
under 45 ms
Monthly cost
under 30 USD/mo
Parts you can add
Redis cache, API server
Part limit
16
Edit limit
3
Traffic
1,000 req/s

Concepts

How players did

Player results load from the server.