Databases · Senior · Question 26 of 75

How can you generate unique IDs across shards without a central sequence?

Explanation

Per-shard sequences collide across shards. Time-ordered IDs stay roughly sortable and index-friendly.

Further reading

Problem with a question

Databases · Senior · question 26

Test yourself

Take the Databases · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz