- 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.
- 基于C語言的程序設計
- 大學計算機信息技術導論
- Getting Started with MariaDB
- Visual FoxPro 6.0數(shù)據(jù)庫與程序設計
- INSTANT Varnish Cache How-to
- Hadoop Real-World Solutions Cookbook(Second Edition)
- 大學C/C++語言程序設計基礎
- 信息物理系統(tǒng)(CPS)測試與評價技術
- 網(wǎng)中之我:何明升網(wǎng)絡社會論稿
- 面向?qū)ο蟪绦蛟O計綜合實踐
- C++程序設計基礎(上)
- SQL Server數(shù)據(jù)庫應用基礎(第2版)
- AVR單片機工程師是怎樣煉成的
- Hands-On SAS for Data Analysis
- 典型Hadoop云計算