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

Reactive programming

Reactive programming can be considered as the implementation of the guidelines that are defined in reactive systems. It is a programming model based on asynchronous data streams, oriented around the flows and propagation of data.

In reactive programming, the software must react to external stimuli, which are events that could be anything—variables, data structures, user inputs, caches, properties, and so on. These stimuli are called streams.

The names that are used to call the actors into reactive programming are related to the framework used to implement it.

In this chapter, we will try to quickly analyze the main Java frameworks that are able to implement a reactive system:

  •  RxJava
  •  Spring reactor
  •  Vert.x

For each framework, we will implement a simple example based on the Maven software project management tool. To try these examples, you need to have an IDE that enables Maven builds or have Maven installed in your workstation—follow the instructions described at https://maven.apache.org/install.html to do it.

Finally, we will quickly address how to make a Java EE monolith reactive, without rewriting the application through one of the frameworks we listed previously, but taking advantage of the latest asynchronous and messaging features made available by Java EE.

主站蜘蛛池模板: 龙川县| 晋州市| 洞口县| 民和| 宁南县| 栾川县| 肥乡县| 黎平县| 瑞昌市| 洪洞县| 遵义市| 忻州市| 连平县| 马山县| 萨嘎县| 土默特右旗| 漠河县| 米易县| 双流县| 英山县| 两当县| 宁晋县| 岢岚县| 专栏| 屏南县| 濮阳县| 恩平市| 昭平县| 华宁县| 鲁甸县| 盘山县| 闻喜县| 山阳县| 称多县| 洱源县| 揭阳市| 五大连池市| 金华市| 张家港市| 苍南县| 临高县|