Chapter 4: Developing Cloud-Native Applications
MicroProfile 4.1 builds on some Jakarta EE (formerly Java Enterprise Edition) application programming interfaces (APIs)—specifically, Jakarta RESTful Web Services (JAX-RS), Jakarta Contexts and Dependency Injection (CDI), JavaScript Object Notation Processing (JSON-P), and JSON Binding (JSON-B). Using only these technologies, it is possible to develop a perfectly capable cloud-native application. The MicroProfile community added a type-safe mechanism for invoking RESTful services known as the MicroProfile Rest Client. These technologies are essential for building Java-based microservices that can interoperate in the cloud. Learning to use these technologies will enable you to build robust and secure Java microservices.
In this chapter, we will explore all of the following topics:
- Developing a RESTful service with JAX-RS
- Managing the payload with JSON-P and JSON-B
- Consuming RESTful services with the MicroProfile...