Multiple ChoiceIntermediate 45s
Clock skew and Snowflake
What happens to a Snowflake ID generator if the system clock moves backwards?
Options
- 1It may generate duplicate or out-of-order IDs, so implementations typically wait or fail fast until the clock catches up
- 2Nothing at all happens and the IDs stay monotonic because the timestamp bits are always strictly increasing
- 3It automatically switches to UUIDv4 for a while so that uniqueness no longer depends on the wall clock
- 4The worker id is reassigned by the coordinator so that the node can keep generating identifiers safely
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.