Writing Reactive
Web Controllers
In the previous eight chapters, we gathered up all the key components needed to build a Spring Boot application. We bundled it inside a Docker container and even tweaked it to run in native mode on GraalVM instead of the standard JVM.
But what if, after doing all this, our application still suffered from a lot of idle time? What if our application was burning up our cloud bill due to having to host a huge number of instances just to meet our present needs?
In other words, is there another way to squeeze a lot more efficiency out of the whole thing, without letting go of Spring Boot?
Welcome to Spring Boot and reactive programming!
In this chapter, we’ll cover the following topics:
- Discovering exactly what reactive programming is and why we should care
- Creating a reactive Spring Boot application
- Serving data with a reactive GET method
- Consuming incoming data with a reactive POST method
- Serving a reactive template...