This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13659|Reply: 1

[JavaSE] Please tell me about the java operation rabbitmq, basicQos() is invalid

[Copy link]
Posted on 5/19/2019 12:09:23 PM | | | |
Please tell me, consumer, the code is setbasicQos(5), but when you get the message, it is still obtained one by one or polled, shouldn't it be 5 at once, onlybasicQos(1)Time, it is effective.Please tell me how to solve it






Previous:Open source job scheduling framework Quartz
Next:Angular 7 Div (map) full-screen tutorial
Posted on 5/20/2019 9:25:06 AM |
Official documentation:The hyperlink login is visible.
Here's my understanding:

basicQos(1): The consumer is sure that a message is received before the server sends the next message.

basicQos(5): The consumer receives 5 messages, processes these 5 messages in parallel, and confirms receipt before the server sends a new 5 messages.


Whether it is a basic Qos setting of 1 or 5, you need to poll to get messages one by one, not 1 or 5 messages at once.

RabbitMQ BasicQos consumer parallel processing limit
https://www.itsvse.com/thread-4667-1-1.html
(Source: Architect_Programmer)


Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com