• 0 Posts
  • 7 Comments
Joined 2 years ago
cake
Cake day: June 14th, 2023

help-circle
  • In applications it was very common to use an auto incrementing number for id’s. So one account would have id of one, then the next two, etc… This can cause problems if there is an unautheticated api endpoint which returns user info given an ID value, someone could just put in all the Id’s counting up from one to find out all the records in the database. UUID’s are a way of obscuring that, making it pretty hard to enumerate all records if they cant count up in an orderly fashion. It’s also useful in distributed systems, the many instances of a running service could generate an ID value on each server instance before recording the value in the the database, there is a low chance of ID collisions.