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

consumer减库存失败之后存入redis的goodOver的key有问题 #22

Open
Blusez opened this issue Apr 11, 2019 · 0 comments
Open

consumer减库存失败之后存入redis的goodOver的key有问题 #22

Blusez opened this issue Apr 11, 2019 · 0 comments

Comments

@Blusez
Copy link

Blusez commented Apr 11, 2019

同一个商品减库存key为SeckillKey:go1,失败一次,则后续所有该商品的所有减库存操作在redis中设为失败,一旦getSeckillResult查询时,mq暂时没执行则会通知秒杀失败。"对不起,秒杀失败" ,即一直失败
建议rediskey添加用户id,并给这个key设置过期时间,即超过最大mq延迟执行时间

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