Can we create State Machines out of Microservices?

Category: Microservices ArchitectureCan we create State Machines out of Microservices?
Editor">Editor Staff asked 2 years ago

Can we create State Machines out of Microservices?

1 Answers
Editor">Editor Staff answered 2 years ago

As we know that each Microservice owning its own database is an independently deployable program unit, this, in turn, lets us create a State Machine out of it. So, we can specify different states and events for a particular microservice.
For Example, we can define an Order microservice. An Order can have different states. The transitions of Order states can be independent events in the Order microservice.