响应式编程html,Reactive响应式编程Spring webFlux

Reactive响应式编程

1. 概念

响应式编程的概念,有很多种定义,我摘录部分如下:

Reactive编程是一种通过将智能路由和事件消费组合起来改变行为的微架构风格

Reactive响应式(反应式)编程 是一种新的编程风格,其特点是异步或并发、事件驱动、推送PUSH机制以及观察者模式的衍生。

Reactive 是异步非阻塞编程;Reactive 能够提升程序性能;Reactive 解决传统编程模型遇到的困境

Reactive programming is a declarative programming paradigm concerned with data streams and the propagation of change. With this paradigm it is possible to express static (e.g. arrays) or dynamic (e.g. event emitters) data streams with ease, and also communicate that an inferred dependency within the associated execution model exists, which facilitates the automatic propagation of the changed data flow.

我的简单理解就是,可以将事件的消费可以异步委托给耦合性比较强消费者来处理。不管请求的响应,还是结果的反馈都可以认为事件主动或者被动被给相应的消费者,这种响应式编程方式可以带来极大的性能提高,具体可以参考http://www.reactive-streams.org/。

http://www.easysb.cn/2019/04/292.html

2. 几篇介绍文字

3. Spring中的Reactive技术栈

[https://spring.io/] (https://spring.io/)

Spring Boot 2.0提供了Reactive Statck的编程Spring WebFlux。以下摘自官网描述:

evelopers are constantly challenged with choosing the most effective runtime, programming model, and architecture for their application’s requirements and team’s skill set. For example, some use cases are best handled by a technology stack based on synchronous blocking I/O architecture, whereas others would be better served by an asynchronous, nonblocking stack built on the reactive design principles described in the Reactive Streams Specification.

Reactive Spring represents a platform-wide initiative to deliver reactive support at every level of the development stack: web, security, data, messaging, etc. Spring Framework 5 delivers on this vision by providing a new reactive web stack called Spring WebFlux, which is offered side by side with the traditional Spring MVC web stack.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值