≈ the.bay.news

I generated 1,000,000 UUIDv7s. Python's are perfectly monotonic — in one process, with a behaving clock.

DEV Community
I generated 1,000,000 UUIDv7s. Python's are perfectly monotonic — in one process, with a behaving clock.
A viral post says UUIDv7 doesn't guarantee monotonicity, accurate timestamps, or unguessability. I tested CPython 3.15's uuid7() with 1M IDs: 0 inversions in one process, 46.6% causal inversions across two processes, and a simulated 1-hour clock rollback that left the generator stamping IDs 299 seconds in the future after the clock was fixed.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.