Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何优雅处理并发问题呢? #16

Open
18605887196 opened this issue Feb 17, 2025 · 0 comments
Open

如何优雅处理并发问题呢? #16

18605887196 opened this issue Feb 17, 2025 · 0 comments

Comments

@18605887196
Copy link

举个例子,现在商品库存有3个,短时间内同时有5个人下单到订单支付页。
那么他们都会支付成功,但是只能发货3个货,还有2个会提示发货失败订单异常。
这样体验很不好,还需要联系去退款,有很多运营工作,作者是否有考虑这点呢?
到订单页前就能感知到,库存临时减1,等用户支付超时或者订单过期后在恢复库存呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant