Types of microservices
Broadly speaking, there are two types of microservices:
- Stateless microservices
- Stateful microservices
Stateless 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 ...
Get Robust Cloud Integration with Azure now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.