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

The Publisher and Subscriber APIs in a Reactor

The previous chapter provided you with a brief introduction to the evolution of the reactive paradigm. In that chapter, we discussed how Reactive Streams enable us to perform reactive modeling in imperative languages, such as Java. We also discussed the key components in reactive—the publisher and subscriber. In this chapter, we will cover these two components in detail. Since Reactive Streams is a specification, it does not provide any implementations of the two components. It only lists the responsibilities of the individual components. It is left to implementation libraries, such as Reactor, to provide concrete implementations for the interfaces. Reactor also provides different methods for instantiating publisher and subscriber objects.

 We will cover the following topics in this chapter:

  • Comparing streams to existing Java APIs
  • Understanding the Flux API
  • Understanding the Mono API
  • Building subscribers to Flux and Mono publishers
主站蜘蛛池模板: 祁门县| 湖口县| 古蔺县| 乳源| 合作市| 凤庆县| 潜江市| 龙口市| 鲁甸县| 门源| 德钦县| 乐东| 喜德县| 平陆县| 乐亭县| 兴业县| 仁怀市| 盘锦市| 阳山县| 晋宁县| 广饶县| 宝应县| 霍林郭勒市| 崇文区| 田东县| 乐至县| 同心县| 平和县| 永川市| 抚州市| 庆安县| 南昌县| 洮南市| 固安县| 营口市| 永胜县| 河东区| 通海县| 元氏县| 舒兰市| 沙河市|