Pick the window type
Difficulty 2 of 5
Bill each customer for API calls in each hour. Each call must be in exactly one bill. 20,000 customers send 40,000 calls/s, and the large ones call all day without a pause. The counter has 8 vCPU and 16 GB. Choose the window type.
Options
- Tumbling 1-hour windows
- Sliding 1-hour windows, 1-minute step
- Session windows, 30-minute gap
Goals and limits
- p99 latency
- under 200 ms
- Error rate
- under 0.1%
- Monthly cost
- under 1,000 USD/mo
- Traffic
- 40,000 req/s
Concepts
How players did
Player results load from the server.