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

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.

主站蜘蛛池模板: 丰都县| 犍为县| 南宁市| 秀山| 富平县| 格尔木市| 通江县| 修水县| 朝阳市| 克什克腾旗| 兴安县| 杭州市| 澜沧| 普兰县| 遂平县| 孝义市| 宁化县| 毕节市| 固安县| 潜江市| 游戏| 泰兴市| 古蔺县| 南宫市| 上栗县| 水城县| 镇宁| 长春市| 宝应县| 江山市| 布拖县| 察哈| 尉犁县| 曲靖市| 竹溪县| 宿州市| 洞口县| 武汉市| 砀山县| 司法| 石棉县|