Skip to content

Commit dd38888

Browse files
Bert-Rphatboyg
authored andcommitted
Improved clarity of warning on message loss
The new text is less complex and distinguishes publishers and listeners.
1 parent 89468e3 commit dd38888

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • doc/content/3.documentation/2.configuration/2.transports

doc/content/3.documentation/2.configuration/2.transports/2.rabbitmq.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ With either address, RabbitMQ will route the message from the _order-events-list
9090
When a message is published, the message is sent to the _OrderSystem.Events:OrderSubmitted_ exchange. If the exchange does not exist, it will be created. RabbitMQ will route the message from the _OrderSystem.Events:OrderSubmitted_ exchange to the _order-events-listener_ exchange, and subsequently to the _order-events-listener_ queue. If other receive endpoints connected to the same virtual host include consumers that consume the _OrderSubmitted_ message, a copy of the message would be routed to each of those endpoints as well.
9191

9292
::alert{type="danger"}
93-
If a message is published before starting the bus, so that MassTransit can create the exchanges and queues, the exchange _OrderSystem.Events:OrderSubmitted_ will be created. However, until the bus has been started at least once, there won't be a queue bound to the exchange and any published messages will be lost. Once the bus has been started, the queue will remain bound to the exchange even when the bus is stopped.
93+
When an event is published, MassTransit creates the necessary exchange for it, such as _OrderSystem.Events:OrderSubmitted_. However, if the listener hasn't started the bus yet, there won't be a queue bound to that exchange, and any messages published will be lost.
94+
Once the listener starts the bus for the first time, it creates and binds the queue to the exchange. From that point on, even if the bus is stopped, the queue will remain bound to the exchange, ensuring that new messages are not lost.
9495
::
9596

9697
Durable exchanges and queues remain configured on the virtual host, so even if the bus is stopped messages will continue to be routed to the queue. When the bus is restarted, queued messages will be consumed.

0 commit comments

Comments
 (0)