4 ms·
I'm gland for this much needed change. I hope it also makes it to frameworks and libraries such as JBoss, ExpressJS. Idempotency is simple to understand but tr
by vishnugupta 5y ago
I'm gland for this much needed change. I hope it also makes it to frameworks and libraries such as JBoss, ExpressJS.
Idempotency is simple to understand but tricky to implement in practice because of a bunch of edge cases; handling of business failures, response (should it be the first successful response?), how to document the behaviour without confusing the developers and so on. So developers either don't consider it at all or when they do, they forget to consider all these aspect.
FWIW we, as a team, spent quite some time debating and going back and forth; I'm happy with the final behaviour we settled on though the documentation could have been better[1]
[1] https://developer.uber.com/docs/payments/glossary https://developer.uber.com/docs/payments/glossary