Replies: 5 comments 5 replies
-
There isn't. Please create a git repository that I can clone, compile, and run to see what you have tried to do with |
Beta Was this translation helpful? Give feedback.
-
I cannot share the whole project or so, this is not simple exec app, but this is the code for manualreset, if you spot anything strage....
|
Beta Was this translation helpful? Give feedback.
-
@lesio999 - please see this code, which demonstrates how to coordinate between a publisher, consumer, and worker. I guessed at what you're trying to accomplish: https://github.com/lukebakken/rabbitmq-dotnet-client-1816/blob/main/Program.cs |
Beta Was this translation helpful? Give feedback.
-
Such a thing exists in AMQP 1.0, see Synchronous Get With Timeout in https://www.rabbitmq.com/blog/2024/09/02/amqp-flow-control#drain |
Beta Was this translation helpful? Give feedback.
-
thanks a lot |
Beta Was this translation helpful? Give feedback.
-
my case is that I'm listening on dedicated queue for message form dedicated external process. I do not know if the process that process is running or even if it is running is publishing to my que. I cannot wait for that message forever. It would be nice if I can handle this case via timeout on consume.
if there is no such a thing like timeout on consume, I'm open for some other suggestions. I tried implement ManualResetEvent which works fine with low workload, but with heavy one introducing big performance degradation.
Beta Was this translation helpful? Give feedback.
All reactions