Example implementation with Quarkus
Quarkus (https://quarkus.io/) is a framework providing optimized startup time and memory usage. Quarkus makes deployment to Kubernetes and the cloud easy in many ways. Despite being relatively new, thanks to its great developer experience, it has been adopted quickly in many enterprise application development projects.
Among other features, Quarkus boasts its development mode (dev mode), which detects changes in Java source files or resource files (e.g., configuration properties), recompiles them automatically, and applies them (if possible) to the running application (performs a so-called hot deployment) without a need for an explicit restart. With the dev mode, the developer gets fast feedback without losing focus on the code due to lengthy application rebuilds and restarts.
We will start our Quarkus example by implementing the Product API, as we did in Chapter 2 with Spring Boot.
Exposing the Product API
We will use the same endpoint...