News for hackers. Stuff that matters.
Re:Implementing Stripe-Like Idempotency Keys in Postgres by pbreit on Friday October 27, 2017 @01:54PM (#15570686)
Futures/promises means nothing to me.

But I always thought an idempotency key was just sending in a time stamp or something else unique.

Re:Implementing Stripe-Like Idempotency Keys in Postgres by naasking on Friday October 27, 2017 @02:26PM (#15570958)
Time stamps are not unique, you definitely need something unique, like a GUID to distinguish it from such tokens bound to other client requests.

And you'd be better served learning about the more general abstraction rather than learning a single domain-specific trick. This solution is obvious once you know about promises.