arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Computer Networks and Communications

Spring WebFlux

Marten Deinum, Daniel Rubio, Josh Long

· Apress eBooks

See on the map

Abstract

When the Servlet API was initially released, the majority of the implementing containers used a thread per request, which meant a thread was blocked until the request processing had finished and the response was sent to the client. However, in those early days, there weren’t as many devices connected to the Internet as nowadays. Due to the increased number of devices, the number of HTTP requests handled has grown significantly. Due to this increase, for a lot of web applications, keeping a thread blocked isn’t feasible anymore. In the last couple of years, there has been an uprising in reactive programming, and with Spring it is possible to write reactive web applications. To be reactive Spring utilizes Project Reactor as an implementation of the Reactive Streams API. It goes beyond the scope of this book to do a full dive into reactive programming, but in short it is a way of doing non-blocking functional programming.

More like this