Fanout Pattern

Problem

In Event based communication, sometimes there is a need to process multiple task for a single event.

Solution

Using message broker like RabbitMQ which provides Fanout exchange to send a single message to multiple consumer services.

Fanout
Real life example

In eCommerce, placing an order which requires multiple task related service in the background.

Please share this

Leave a Reply