Hedged requests
Difficulty 4 of 5
One of 16 replicas answers 200 ms late. After the timeout, the client sends the request again to the pool, up to 2 times. Tune the timeout. Keep p99 under 100 ms, errors under 0.1 percent and CPU use under 56 percent.
Play level
HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 Users 3,200 req/s Load balanc… 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB Node API 2 vCPU · 2 GB HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 HTTP/2 Users Load… Node… Node… Node… Node… Node… Node… Node… Node… Node… Node… Node… Node… Node… Node… Node… Node…
The board at the start of the level
Goals and limits
p99 latency under 100 ms
Error rate under 0.1%
CPU use under 56%
Monthly cost under 200 USD/mo
Traffic 3,200 req/s