官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 阜城县| 金平| 营山县| 万年县| 安化县| 修文县| 新安县| 丰城市| 克什克腾旗| 西乡县| 东方市| 谷城县| 文水县| 龙川县| 桦川县| 故城县| 遂宁市| 崇明县| 瓮安县| 永泰县| 呈贡县| 武穴市| 竹北市| 吉水县| 岑巩县| 台北县| 甘南县| 广水市| 东安县| 谢通门县| 阿拉善盟| 林州市| 海口市| 阿勒泰市| 乾安县| 新泰市| 英山县| 龙江县| 寻乌县| 红安县| 诸城市|