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.

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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.