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

The flow control problem

On the one hand, the preceding explanation may have taught us that the central reason to embrace the PUSH model was the optimization of the overall processing time by decreasing the amount of asking to the very minimum. That is why the RxJava 1.x and similar libraries were designed for pushing data, and that is why streaming became a valuable technique for communication between components within a distributed system.

On the other hand, in combination with only the PUSH model, that technique has its limitations. As we might remember from Chapter 1Why Reactive Spring?, the nature of message-driven communication assumes that as a response to the request, the service may receive an asynchronous, potentially infinite stream of messages. That is the tricky part because if a producer disrespects the consumer's throughput possibility it may affect the overall system stability in ways described in the following two sections.

主站蜘蛛池模板: 扬中市| 双柏县| 通海县| 理塘县| 临漳县| 禄丰县| 阿荣旗| 望城县| 富源县| 崇明县| 宜都市| 交口县| 儋州市| 新民市| 翁牛特旗| 四子王旗| 中山市| 社会| 娄烦县| 泰安市| 万宁市| 绿春县| 杭锦旗| 平遥县| 马关县| 柞水县| 香格里拉县| 宁晋县| 日土县| 什邡市| 东阿县| 舟山市| 沾益县| 朝阳市| 剑川县| 宁城县| 文化| 股票| 桂平市| 交城县| 云林县|