0007: Stay on RabbitMQ through MassTransit 8; decide MassTransit's future by Q4 2026
Status: Accepted · Date: 2026-10-13
Context
PVC Connect's services talk over RabbitMQ. This service uses MassTransit 8 (Apache 2.0) for the transport, the transactional outbox/inbox and consumer pipelines. MassTransit v9 is commercially licensed, and v8 maintenance is expected to end around the end of 2026 (confirm the exact date against MassTransit's own announcement before relying on it). Azure Service Bus was considered: it adds native scheduling, sessions and dead-letter queues.
Decision
- Broker: RabbitMQ stays. The transport is a setting (
Messaging__Transport), and nothing outsideIntegrations.Infrastructure/Messagingdepends on it (enforced by the architecture tests), so a later move to Azure Service Bus is about a day of code plus renaming topics. - Features that would need a broker plugin are built on Postgres instead. Delayed redelivery is the main one (see 0008): the RabbitMQ delayed-message plugin doesn't load on current RabbitMQ 4.x.
- MassTransit: stay on 8.x for now, pinned in
Directory.Packages.props. Decide by Q4 2026 between:
| Option | Effort | Notes |
|---|---|---|
| License MassTransit v9 | Small (upgrade, mostly config) | Keeps the outbox, inbox, test harness and pipeline. Recurring cost. |
| Stay on v8 after end of maintenance | None now | No security fixes later; fine only short-term. |
| Move to Wolverine (MIT) | Medium (about 1–2 weeks) | Has a Postgres outbox/inbox and RabbitMQ transport; consumers and the pipeline filters are rewritten. |
| Thin layer over the RabbitMQ client | Large | We would own the outbox, inbox, retries and topology. |
Consequences
- The parts of the messaging code a migration would touch are small and listed:
DependencyInjection.AddIntegrationsMessaging,Messaging/*(consumers, filters, publisher, entity-name formatter) and the messaging tests. - Exchange names no longer depend on MassTransit's namespace-based defaults (
pvc.integrations.*), which makes a library change invisible to subscribers.