Açıklaması şöyle. Yani shard sayısı artan bilgisayar sayısı ile uyumlu olmalı
One of my favourite system design questions:Notion split its Postgres database into 480 shards.Why 480? Why not 500, or a nice round 512?I saw this question on X this week and most answers said "performance". It's not really about performance.480 can be divided evenly by a lot of numbers. 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, 30, 32, 40, 48, 60 and more.The shards are logical. The machines are physical. You fix the number of shards once, but the number of machines keeps changing as you grow. So you want a shard count that splits evenly across whatever machine count you might need later.In 2021 Notion ran the 480 shards on 32 machines. 15 shards each.In 2023 they needed more room and moved to 96 machines. 5 shards each. Every machine got the same share and the total stayed 480.Now try the same with 512. 512 only divides evenly by powers of two. 32 machines is fine, 64 is fine, 96 gives you 5.33. Some machines carry 6 shards, some carry 5, and the busiest one decides how the whole thing feels.A number someone picked in 2021 made their 2023 migration a lot simpler. I really like that kind of decision.