Settings

Theme

I love UUID, I hate UUID

blog.epsiolabs.com

5 points by dkgs · 4 comments

Reader

1 thread
OhMeadhbh

Hmm. What's to prevent a client from submitting two requests with identical UUIDs?

  • zahlman

    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

    Nothing. But you'll get a constraint error as they aren't unique.

  • dkgsOP

    Nothing, why would that be an issue (IE the same client submitting requests with two identical UUIDs)?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection