- Azure for Architects
- Ritesh Modi
- 175字
- 2021-07-08 09:33:38
Priority queue
There is often a need when messages with higher importance should be given priority in processing compared to general messages with lower priority. This pattern is important for applications that provide different service level agreements (SLA) to consumers, which provide services based on different plans and subscriptions.
Queues follow first-in, first-out patterns. Messages are processed in sequence. However, with the help of this pattern, it is possible to fast-track processing of certain messages due to their higher priority. There are multiple ways to implement it. If the queue provides the capability of assigning priority and based on priority re-order messages, then even a single queue is enough to implement this pattern.
However, if the queue does not have the capability to re-order messages, then separate queues can be created for different priorities and each queue can have separate consumers associated with it.

In fact, this pattern can reuse competing consumer patterns if needed to fast-track processing of messages from each queue using multiple consumers.
- Beginning C++ Game Programming
- C語言程序設計習題解析與上機指導(第4版)
- SoapUI Cookbook
- Scratch 3.0少兒編程與邏輯思維訓練
- MATLAB實用教程
- WordPress Plugin Development Cookbook(Second Edition)
- Android 應用案例開發(fā)大全(第3版)
- 精通網(wǎng)絡視頻核心開發(fā)技術
- Windows Phone 7.5:Building Location-aware Applications
- C#應用程序設計教程
- 現(xiàn)代C++編程實戰(zhàn):132個核心技巧示例(原書第2版)
- TMS320LF240x芯片原理、設計及應用
- 大學計算機基礎實驗指導
- Python青少年趣味編程
- Web編程基礎:HTML5、CSS3、JavaScript(第2版)