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

RabbitMQ问题 #13

Open
JP6907 opened this issue Mar 8, 2020 · 0 comments
Open

RabbitMQ问题 #13

JP6907 opened this issue Mar 8, 2020 · 0 comments

Comments

@JP6907
Copy link

JP6907 commented Mar 8, 2020

  1. 是否没有配置消息队列最大长度限制以及溢出行为,队列满了之后默认会丢弃队头的元素,先进入队列的反而被丢弃了?
  2. 入队前redis判断库存并没有减库存,则可能导致远超库存限制的SeckillMsgBody进入队列,同个id的请求也可能重复进入队列,这样增加了MQ和consumer的压力,需要处理很多无效的请求?是否可以添加一个 set 记录历史入队的id,入队前判断已入队数量和是否重复入队再考虑是否需要入队?
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