Repository navigation
Description
Feature Request: Add RabbitMQ Publisher Confirms to SlimMessageBus (Opt-In)
Description:
Introduce support for RabbitMQ Publisher Confirms in the SlimMessageBus library as an optional feature. Publisher Confirms provide a reliable mechanism for ensuring that messages published to RabbitMQ are successfully received by the broker. This feature is critical for scenarios where guaranteed message delivery is a priority.
Background:
RabbitMQ Publisher Confirms offer a robust way to handle acknowledgment of published messages, ensuring they are properly queued. This mechanism is well-documented and widely adopted in systems requiring high reliability. Adding support for this feature would enhance the library's reliability and extend its utility in more demanding production environments.
- RabbitMQ Documentation on Confirms: [Publisher Confirms](https://www.rabbitmq.com/docs/confirms#publisher-confirms)
- Example Implementation in C#: [Publisher Confirms in RabbitMQ](https://rianjs.net/2013/12/publisher-confirms-with-rabbitmq-and-c-sharp)
Suggested Implementation:
- Add an optional configuration in SlimMessageBus for enabling Publisher Confirms.
- Provide a clear API or settings to enable this feature at the bus or message producer level.
- Implement appropriate acknowledgment handling logic, allowing applications to act on success or failure of message publication.
- Include documentation and examples to demonstrate how to use this feature.
Related Discussions:
- Refer to this [comment]([Host.RabbitMQ] Add ability to configure connection retry attempts and delay #310 (comment)) in GitHub Issue [Host.RabbitMQ] Add ability to configure connection retry attempts and delay #310 for further insights on potential implementation and community interest.
Benefits:
- Improves reliability for message delivery in RabbitMQ.
- Enhances SlimMessageBus's appeal to developers seeking robust message handling.
- Provides an opt-in mechanism, ensuring no breaking changes for existing users.
Thank you for considering this enhancement!
Activity
cord-agencyroot commentedon Feb 25, 2026
This would be super important to me. I was testing this locally and when using Outbox with RabbitMQ, it would publish to the outbox and mark the message as delivered even though the RabbitMQ container was stopped. This would cause missed messages that look like they were successfully sent to the exchange. I wouldn't use this in production until RabbitMQ confirmation is enabled.
I can help make a PR for this but I saw you are working on updating to the latest version of RabbitMQ.
zarusz commentedon Feb 25, 2026
hey @cord-agencyroot, a PR contribution is welcome, also happy to review it.
Yes, I started the RMQ client upgrade and planning to finish it here soon as part of 3.4.0 release.
feat: add RabbitMQ publisher confirms (zarusz#360)
feat: add RabbitMQ publisher confirms (#360)