All questions
Q & A Developer · September 11, 2026

What is the difference between UUID v4 and UUID v7?

UUIDv4 is pure random (128 bits, no structure). UUIDv7 is timestamp-prefixed (48-bit Unix ms + 74 bits random). Practical difference: v7 is lexically sortable (later timestamps sort later); v4 is not. This matters for database primary keys — v4 causes random inserts across B-tree indexes, fragmenting and slowing down; v7 inserts are append-mostly and much faster. Both have 122+ bits of randomness so collision probability is vanishing for either. New projects: use v7. Legacy compatibility: v4 remains widely supported. Generate v4 or v7 with the UUID generator.

Read the full guide
What Is a JWT?
JWT (JSON Web Token) is the dominant format for API authentication, OAuth access tokens, and stateless session management. Three base64-encoded segments carry the header, claims, and signature — anyone can read them, but only the key holder can produce a valid token.