Publishing message batches w/ confirmation using .NET & RabbitMQ.Client 7.x #1780
-
I'm attempting to publish messages in batches using the .NET
I'm using a set of channel options similar to the ones described in the tutorial: private static readonly CreateChannelOptions _createChannelOptions = new(
publisherConfirmationsEnabled: true,
publisherConfirmationTrackingEnabled: true,
outstandingPublisherConfirmationsRateLimiter: new ThrottlingRateLimiter(25)); The What's strange is that each of the messages I attempt to publish does get routed to a queue, after an exception is thrown. So it's working... but it's also throwing exceptions I don't know how to explain or avoid. Any suggestions on where to start looking? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Moved to a much more visible repository. Server logs and a traffic capture will help narrow down the problem quicker. |
Beta Was this translation helpful? Give feedback.
-
@jehrenzweig-captionhealth - if you can provide code that reliably reproduces this issue, I will be able to quickly assist you. Questions:
|
Beta Was this translation helpful? Give feedback.
-
I'm pleased to report that I believe I've solved the problem & AFAIK it was entirely on my end. Between refactoring our code to implement the new async API & the removal of batch processing, I believe I'd introduced an errant Thanks for the quick replies yesterday! |
Beta Was this translation helpful? Give feedback.
OK, this sounds like a bug in your topology setup. When you provide code to reproduce the issue, ensure that it sets up exchanges and queues in the same way as in your environment, or you can export your RabbitMQ definitions and include that. Thanks.