The shard key
Difficulty 3 of 5
One user sends two thirds of all new orders. All orders have today's date. Choose a key that keeps three equal shards below their load limit.
Options
- Use the user
- Use the date
- Hash the order ID
Goals and limits
- p99 latency (*)
- under 100 ms
- Availability (*)
- at least 99.5%
- CPU use
- under 85%
- Monthly cost
- under 80 USD/mo
- Traffic
- 12,000 req/s
Concepts
How players did
Player results load from the server.