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

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.

主站蜘蛛池模板: 白银市| 紫云| 盖州市| 晴隆县| 清水县| 类乌齐县| 武安市| 太白县| 丽江市| 灵璧县| 彩票| 义乌市| 耿马| 和政县| 洞口县| 邢台县| 松溪县| 安仁县| 原平市| 夏邑县| 美姑县| 内丘县| 永城市| 桑日县| 乐东| 全椒县| 嘉定区| 新野县| 龙口市| 丰城市| 马鞍山市| 鹤峰县| 北流市| 班玛县| 泾阳县| 黎平县| 宁明县| 攀枝花市| 定边县| 通州区| 万荣县|