The shard key

  • Choose
  • Level 33 of 41
  • Scale

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.

Play level

Options

  • Use the user
  • Use the date
  • Hash the order ID
Keys on a hash ringArrow keys add or remove a node. Tap to switch the hash.

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.