- Hands-On Microservices with C#
- Matt R. Cole
- 269字
- 2021-07-23 17:25:23
Fanout exchange
The fanout copies and routes a received message to all queues that are bound to it regardless of routing keys or pattern matching, as with direct and topic exchanges. Keys provided will simply be ignored.
Fanout exchanges can be useful when the same message needs to be sent to one or more queues with consumers who may process the same message in different ways.
The fanout copies and routes a received message to all queues that are bound to it regardless of routing keys or pattern matching as with direct and topic exchanges. Keys provided will simply be ignored.
Fanout exchanges can be useful when the same message needs to be sent to one or more queues with consumers who may process the same message in different ways.
The following fanout exchange figure shows an example where a message received by the exchange is copied and routed to all three queues that are bound to the exchange. It could be sport or weather news updates that should be sent out to each connected mobile device when something happens.
The default exchange AMQP brokers must provide for the topic exchange is amq.fanout:

Received messages are routed to all queues that are bound to the exchange.
SCENARIO 1:
- Exchange: sport news
- Queue A: Mobile client Queue A
- Binding: Binging between the exchange (sport news) and Queue A (mobile client Queue A)
EXAMPLE:
A message is sent to the exchange sport news. The message is routed to all queues (Queue A, Queue B, and Queue C) because all queues are bound to the exchange. Provided routing keys are ignored.
- Cinema 4D R13 Cookbook
- SCRATCH與機器人
- 網(wǎng)絡(luò)服務(wù)器架設(shè)(Windows Server+Linux Server)
- Practical Data Wrangling
- 大數(shù)據(jù)時代的數(shù)據(jù)挖掘
- Hands-On Machine Learning with TensorFlow.js
- 傳感器與物聯(lián)網(wǎng)技術(shù)
- Visual Basic.NET程序設(shè)計
- 網(wǎng)絡(luò)安全技術(shù)及應(yīng)用
- Godot Engine Game Development Projects
- Photoshop CS5圖像處理入門、進階與提高
- 3ds Max造型表現(xiàn)藝術(shù)
- 計算機應(yīng)用基礎(chǔ)實訓(xùn)·職業(yè)模塊
- 大型機系統(tǒng)應(yīng)用基礎(chǔ)
- Generative Adversarial Networks Projects