Building RESTful Web Services with Spring 5(Second Edition)
上QQ阅读APP看书,第一时间看更新

WebFlux

As of September 2017, Spring announced the general availability of 5. Spring 5 introduced a Reactive web framework called Spring WebFlux. It is a non-blocking web framework that uses Reactor to support the Reactive Streams API.

As traditionally, blocking threads consume resources, there was a necessity for non-blocking async programming to play a better role. The Spring tech team introduced a non-blocking async programming model to handle a large number of concurrent requests, especially for latency-sensitive workloads. This concept will be mainly used in mobile applications and microservices. Also, this WebFlux will be the best fix for scenarios with many clients and uneven workloads.