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

秒杀问题 #1

Open
adai0528 opened this issue Dec 5, 2018 · 0 comments
Open

秒杀问题 #1

adai0528 opened this issue Dec 5, 2018 · 0 comments

Comments

@adai0528
Copy link

adai0528 commented Dec 5, 2018

请问秒杀的时候,消息中间件是如何保证并发问题的。rabbitmq消费数据是有序的?感觉监听消费端会有并发问题。同时消费两条数据的时候,前一条数据还没更新库存,后一条查询库存,就有问题了。我对rabbitmq,不了解,是否这个消息中间件消费的数据是有序的,拉取数据是逐条拉取。

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