Creating a Reactive Spring Boot CRUD application
To demonstrate working with various container image builders that Skaffold supports, we will create a simple Reactive Spring Boot CRUD
REST application. We expose a REST endpoint called /employee
when the app is accessed locally through curl or a REST client such as Postman, which will return with employee data.
First, to build some context, let's discuss the reactive way of building an application. Reactive programming (https://projectreactor.io/) is a new way of building non-blocking applications that are asynchronous, event-driven, and require a small number of threads to scale. What also keeps them separate from typical non-reactive applications is that they can provide the backpressure mechanism to ensure producers don't overwhelm consumers.
Spring WebFlux is a reactive web framework that was introduced with Spring 5. Spring WebFlux doesn't require a servlet container and can be run on non-blocking containers...