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

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.

主站蜘蛛池模板: 宜阳县| 海原县| 金沙县| 桂东县| 新津县| 西华县| 万年县| 嘉义市| 湖北省| 邳州市| 锡林浩特市| 长春市| 东乌珠穆沁旗| 安庆市| 海林市| 四川省| 湖州市| 额济纳旗| 美姑县| 宝兴县| 乡宁县| 加查县| 万州区| 平阴县| 堆龙德庆县| 杨浦区| 会理县| 泰顺县| 镇江市| 夏河县| 阿克| 剑阁县| 阜城县| 淄博市| 亳州市| 高邮市| 二连浩特市| 靖宇县| 海阳市| 莱阳市| 扎赉特旗|