You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using RabbitMQ for some time, and recently there has been multiple issues with stuck messages in my queue.
I have a RabbitMQ container deployed in AWS (not managed), and in my node backend service I am using the npm packages amqplib and amqp-connection-manager to connect to the RabbitMQ service, through a custom module that I created.
Every few weeks, I have a situation where messages are stuck in my queue, and no consumer is up, altough I set it when the backend service initializing.
I do suspect that it is related to the ack logic (dup ack), since I have seen the error code 406 multiple times, but I can't pin it exactly on that.
The only thing I see for sure is that in the stuck messages the redelivered property is true, I am attaching some examples below:
I have tried to replicate the problem with overloading the service, to no success, disconnecting the channel and the connection to the amqp, but it reconnects just fine.
Any help would be appreciated!!
The text was updated successfully, but these errors were encountered:
I have been using RabbitMQ for some time, and recently there has been multiple issues with stuck messages in my queue.
I have a RabbitMQ container deployed in AWS (not managed), and in my node backend service I am using the npm packages amqplib and amqp-connection-manager to connect to the RabbitMQ service, through a custom module that I created.
Every few weeks, I have a situation where messages are stuck in my queue, and no consumer is up, altough I set it when the backend service initializing.
I do suspect that it is related to the ack logic (dup ack), since I have seen the error code 406 multiple times, but I can't pin it exactly on that.
The only thing I see for sure is that in the stuck messages the redelivered property is true, I am attaching some examples below:
I am attaching the code for the consumer and producer below, plus some images describing the problem.
Producer Class
Consumer Class
In my backend service I use the module as such:
I have tried to replicate the problem with overloading the service, to no success, disconnecting the channel and the connection to the amqp, but it reconnects just fine.
Any help would be appreciated!!
The text was updated successfully, but these errors were encountered: