Types of microservices
Broadly speaking, there are two types of microservices:
- Stateless microservices
- Stateful microservices
Stateless services are good candidates as the building blocks of a distributed system. As the name suggests, stateless microservices do not maintain session state between requests, for example, if any of the service instance is being removed, it does not affect the overall processing logic for the service. Distributed systems do prefer stateless microservices.
The ORDER diagram
If we look at the earlier diagram, a customer makes a request for a product through the ORDER service, and internally, the ORDER ...