-
Notifications
You must be signed in to change notification settings - Fork 80
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
one by one processing #59
Comments
Hello, The full call was:
After adding this, the service got one message after another and not all at the same time. Maybe this could help. |
Prefetch limit combined with manual ack will ensure messages one by one. RabbitMQ also supports prefetch count: https://www.rabbitmq.com/stomp.html#pear.p. Having said that, most of the brokers do not guarantee messages arriving in order (almost always it will be in order, but no guarantees). Many times it is possible to structure the logic to handle messages in parallel and delivered out of sequence. |
It's work for my ActiveMQ |
When I work with queues, my subscriber receives records one by one, but the next element comes to me without waiting for the operation to complete with the previous one. I tried to add the ack in the expectation that the processing will become consistent, but this did not happen. in my code, everything is built on async/await, so I have to somehow configure the framework. what am I doing wrong?
The text was updated successfully, but these errors were encountered: