Sharding · Estimate

Peak load is 120,000 writes/s. One primary can safely take 8,000 writes/s. How many shards do you need?

easy Estimation

Answer

About 15 shards. In review, anything from 10 to 22.5 counts as right.

The worked estimate

120,000 ÷ 8,000 = 15 shards. Round up and add headroom for growth and uneven keys; with logical shards, later growth is a matter of moving shards.

Numbers: Numbers to know.

Review this in your daily deck All cards in Sharding