- Stream Analytics with Microsoft Azure
- Anindita Basak Krishna Venkataraman Ryan Murphy Manpreet Singh
- 281字
- 2021-07-02 22:35:53
Queues
A queue implements a one-way communication, where the sender places a message on the queue and a receiver will collect the message asynchronously. Features such as dead letter queues, paired namespaces, active/passive replication, and auto-forwarding to a chain queue that's part of the same name provide the rich feature set for message flowing between an application and providing a highly available solution.
A queue consists of three key elements:
- Sender: Sends the message to the receiver through a durable entity.
- Durable entity: Stores the received durable message and offers persistence. The messages are stored until they are collected by the receiver.
- Receiver: The final recipient of the message.
The key advantages of a queue are as follows:
- Queues operate on the principle of first in, first out (FIFO): For example, consider a simple queue where, at one end, you put messages, and on the other end you will receive them in the same respective order. For example, service bus queue implements the FIFO pattern.
- Point-to-point: The fundamental concept of Queues is, they are point-to-point messaging; even though there may be multiple senders of messages, there is only one receiver of the messages.
- Asynchronous communication: This implies that endpoint addresses are connected directly. A static structure may exist where senders and receivers communicate through named channels. Asynchronous communication helps with building decoupled architecture and allows higher resilience to add and process messages when either the publisher or consumer of messages has downtime.
- Security: Due to the mutual knowledge of senders and receivers from the security point of view, senders know where the data will land, and it's easier to enforce security policies.
The following figure illustrates the preceding concept:

推薦閱讀
- Introduction to DevOps with Kubernetes
- Linux Mint System Administrator’s Beginner's Guide
- Getting Started with Clickteam Fusion
- Natural Language Processing Fundamentals
- 自動控制原理
- 電腦上網直通車
- 讓每張照片都成為佳作的Photoshop后期技法
- 數據庫原理與應用技術
- 80x86/Pentium微型計算機原理及應用
- 分布式多媒體計算機系統
- 統計策略搜索強化學習方法及應用
- AI 3.0
- Kubernetes for Serverless Applications
- Learning Azure Cosmos DB
- HTML5 Canvas Cookbook