开发者

Idempotency for increment via PUT

开发者 https://www.devze.com 2022-12-22 14:31 出处:网络
How to achieve itempotency when incrementing a database column via PU开发者_StackOverflow社区T? (For example a credits-count in a purchase process)Send a unique transaction id with every request, stor

How to achieve itempotency when incrementing a database column via PU开发者_StackOverflow社区T? (For example a credits-count in a purchase process)


Send a unique transaction id with every request, store all executed transaction ids and don't react to requests with a transaction id that you already saw.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号