6 Ağustos 2021 Cuma

RabbitMQ Fanout Exchange - Ana Gemi Tüm Gemilere Mesaj Gönderir

Giriş
Fanout Exchange -  Tüm kuyruklara mesajı yönlendirir. Routing key dikkate alınmaz. Açıklaması şöyle
 A fanout exchange copies and routes a received message to all queues that are bound to it regardless of routing keys or patterns. The keys provided will simply be ignored.
Şeklen şöyle

Açıklaması şöyle
In the above diagram each consumer is independent of the others and receives its own copies of all the messages. To scale out the Consumer App 1, more instances of that application would need to be deployed, consuming from the same Queue 1.

Fanout exchanges are one of the fastest exchanges as they do not need to inspect any routing key or message header. Although an exchange may send a single message to multiple queues, in reality it doesn't necessarily duplicate the bits. It can persist the message to the message store and simply register a pointer to the message in each queue.


Hiç yorum yok:

Yorum Gönder