- 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.
- 計算機網絡與通信(第2版)
- Building E-commerce Sites with VirtueMart Cookbook
- 社交電商運營策略、技巧與實操
- 網絡互聯技術(實踐篇)
- 互聯網基礎資源技術與應用發展態勢(2021—2023)
- 企業私有云建設指南
- Metasploit Penetration Testing Cookbook
- 計算機網絡技術及應用
- SAE原理與網絡規劃
- Getting Started with Memcached
- 5G非正交多址接入技術:理論、算法與實現
- Qt5 Python GUI Programming Cookbook
- Building RESTful Web Services with .NET Core
- 現場總線與工業以太網及其應用技術(第2版)
- 世界網力:2018年中國網信產業桔皮書