We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
电商秒杀活动,本来库存是100件,但是由于并发请求导致商品卖了120件。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题场景
电商秒杀活动,本来库存是100件,但是由于并发请求导致商品卖了120件。
搜索中文关键词:电商 超买 超卖
搜索英文关键词:concurrency in e-commerce
总结如下
谁先支付成功,算谁抢到
谁先下单算谁抢到,预留支付时间(5分钟)
用Redis缓解并发
The text was updated successfully, but these errors were encountered: