by citrin_ru · 4mo ago · 0 comments
Why not divide ID range (63bit?) by the maximum planned number of shards and then set on each shard it's min/max value so ranges will not overlap?
This might be the perfect case to use an UUIDv7 as a key instead of a number.