上QQ阅读APP看书,第一时间看更新
Spring WebFlux
Spring 5 impressively supports creating a Reactive System with Spring WebFlux . It is a new reactive web application framework, developed based on the Project Reactor API and can also be used to build microservices. The most remarkable and direct benefit of making any application reactive is to bring asynchronous qualities to it.
Non-reactive and traditional Java-based applications use thread mechanisms for asynchronous and parallel programming. However, usage of the thread is not competent and scalable in any manner. On the other hand, Spring WebFlux encourages event loop-based programming, which is asynchronous and non-blocking in manner. This section introduces WebFlux in the context of the Spring Framework and Reactive Programming.