For distributed databases where you can't use autoincrement.
Or where, for some reason, the ID needs to be created before being inserted into the database. Like you're inserting into multiple services at once.
Or where, for some reason, the ID needs to be created before being inserted into the database. Like you're inserting into multiple services at once.
UUIDv4 lets us sidestep this.
Is it bad design? Probably. Is it going to happen at huge companies? Yes.