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

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
主站蜘蛛池模板: 稻城县| 北碚区| 莎车县| 合阳县| 高陵县| 新源县| 天长市| 太湖县| 漯河市| 军事| 泌阳县| 营口市| 花垣县| 宣城市| 达州市| 射阳县| 金堂县| 波密县| 庆元县| 蒙自县| 卓资县| 天台县| 四会市| 射洪县| 五大连池市| 石家庄市| 新乡县| 红安县| 兴国县| 惠东县| 浙江省| 平乐县| 博爱县| 台东县| 丘北县| 利辛县| 崇仁县| 沂水县| 蛟河市| 清水河县| 澄城县|