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

Unbounded queue

The first and most obvious solution is to provide a queue that is characterized by unlimited size, or simply an unbounded queue. In that case, all produced elements are stored inside the queue first and then drained by the actual subscriber. The following marble diagram depicts the mentioned interaction (Diagram 3.4):

Diagram 3.4. Example of Unbounded Queue

On the one hand, the central benefit that came with handling messages using an unbounded queue is the deliverability of messages, which means that the consumer is going to process all stored elements at some point in time. 

On the other hand, by succeeding in the deliverability of messages, the resiliency of the application decreases because there are no unbounded resources. For instance, the whole system may be easily crushed once the memory limit is reached.

主站蜘蛛池模板: 金阳县| 辽阳县| 怀柔区| 浮山县| 五华县| 阿合奇县| 登封市| 荥经县| 建德市| 定结县| 铁岭县| 鸡东县| 塔河县| 全南县| 郸城县| 西畴县| 定安县| 广宁县| 株洲市| 宿州市| 锡林浩特市| 东明县| 呼和浩特市| 凌源市| 广灵县| 广西| 贡山| 兰西县| 云林县| 松潘县| 永泰县| 石林| 潼南县| 闽侯县| 赫章县| 洪洞县| 威海市| 白朗县| 方正县| 太康县| 万州区|