I love UUID, I hate UUID

(blog.epsiolabs.com)

4 points | by dkgs 5 hours ago

1 comments

  • OhMeadhbh 4 hours ago
    Hmm. What's to prevent a client from submitting two requests with identical UUIDs?
    • zahlman 3 hours ago
      You can't in general prevent clients from sabotaging themselves. In the extreme case, someone makes a separate page that's supposed to call your API, but just... doesn't work.

      The point of the UUID system is to prevent the client from failing due to things that are outside its control; specifically, the actions of other clients.

    • discomrobertul8 4 hours ago
      Nothing. But you'll get a constraint error as they aren't unique.
    • dkgs 4 hours ago
      Nothing, why would that be an issue (IE the same client submitting requests with two identical UUIDs)?