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

并发问题 #5

Open
yantailor opened this issue Aug 31, 2022 · 0 comments
Open

并发问题 #5

yantailor opened this issue Aug 31, 2022 · 0 comments

Comments

@yantailor
Copy link

请教一下,您写的(限流 + Redis 缓存库存 + KafkaTest 异步下单)这个接口在kafka发送消息到topic时,高并发的情况下会在redis中重复读到同一个版本号,到了消费者那里拿到版本号对应着数据库的进行更新会抛乐观锁的并发异常导致内容无法被消费,请问怎么解决

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