- Hands-On Reactive Programming in Spring 5
- Oleh Dokuka Igor Lozynskyi
- 141字
- 2021-07-23 16:36:26
Fast producer and slow consumer
The second problem is much more complicated. Suppose we have a fast producer and slow consumer. The problem here is that the producer may send much more data than the consumer can process, which may lead to a catastrophic failure of the component under stress.
One intuitive solution for such case is collecting unhandled elements into the queue, which may stay between the producer and consumer or may even reside on the consumer side. Even if the consumer is busy, such a technique makes it possible to handle new data by processing the previous element or portion of data.
One of the critical factors for handling pushed data using the queue is to choose a queue with proper characteristics. In general, there are three common types of queue, which are considered in the following subsections.
- 解析QUIC/HTTP3:未來互聯網的基石
- 物聯網智慧安監技術
- Force.com Development Blueprints
- 智慧城市中的移動互聯網技術
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 網管員必讀:網絡管理(第2版)
- Android UI Design
- Getting Started with nopCommerce
- 物聯網基礎及應用
- 小型局域網組建
- 想象的互動:網絡人際傳播中的印象形成
- 通信系統實戰筆記:無處不在的信號處理
- ReasonML Quick Start Guide
- Architecting Data:Intensive Applications
- 互聯網視覺設計(全彩慕課版)