Replies: 1 comment 21 replies
-
Hello, Other than upgrading RabbitMQ and the version of this library, what else changed?
Is there evidence for this? Having RabbitMQ logs would be very helpful. Please point out the specific time(s) that these timeouts occur, so I can correlate it in the logs. Finally, if you can provide code to reproduce this issue, or at least provide a much more complete example of what you are doing, it would help. Right now you're asking for a lot of guessing on my part which I don't have time to do. And, in addition, I strongly recommend trying the latest RC for version 7 of this library: Testing it would help us out greatly, plus there's a chance it will address your issue. |
Beta Was this translation helpful? Give feedback.
-
We have a system that was running RabbitMQ 3.8.5 with RabbitMQ.Client 5.2.0. Part of the way the system uses rabbit is by creating a consumer to wait for a specific command from a different executable when a long-polling web request comes in from a client. The web request comes in on a .Net 6.0 web APIA consumer is created per client since said command is posted on a queue specific to that client. After a given timeout, the consumer is disposed and the client restarts the long-polling request. We were able to support 1500+ clients/consumers simulataneous long-polling requests. This worked fine until we upgraded to RabbitMQ 3.13.3 with RabbitMQ.Client 6.8.1. A timeout exception now occurs when about 700 clients initiate this long-polling request. The same happens when 500 clients are connected for a long amount of time (> 1 hour). We have also tried using EasyNetQ, since we use the library in other parts of the system, for consumption and got the same error and behavior, a timeout followed by the connection being terminated by the RabbitMQ Server.
Further investigation seems to indicate that the hearbeats are missed when the timeout exception occurs, and the RabbitMQ server terminates the connection, causing a domino effect of failures on our side. We have yet to figure out what's causing the timeout to occur and block all operations related to RabbitMQ.
Some details are providede below:
Here is the initial exception that occurs when the error first occurs:
EasyNetQ error
Initial Consumer Code
Tried changing the consumer to an async eventing basic consumer
EasyNetQ Consumer Code
Beta Was this translation helpful? Give feedback.
All reactions