当前位置:网站首页>Interface idempotent design

Interface idempotent design

2022-06-22 16:28:00 The force is with you

newly added 、 Update operation will have idempotency problem , Idempotency refers to multiple operations , The service returns the same result .

In the payment scenario, the payment system needs to satisfy idempotency when it is called

1. Use business logic judgment to ensure that the interface is idempotent

2. Take the whole picture token How to judge

3. State machine control updateorderset status=#{status} where id=#{id} and status<#{status}

原网站

版权声明
本文为[The force is with you]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221508060604.html