Microservices is an architectural style in which code is deployed in small, granular modules. A microservices architecture reduces coupling and increases cohesion. Typically, microservices are implemented as RESTful web services, usually using JSON to pass data to one another by invoking HTTP methods (GET, POST, PUT or DELETE) on each other. Since communication between microservices is done via HTTP methods, microservices written in different programming languages can interact with each other. In this chapter, we will cover how we can use Java EE to implement microservices.
In this chapter, we will cover the following topics:
- Introduction to microservices
- Advantages of a microservices architecture
- Disadvantages of a microservices architecture
- Developing microservices using Java EE