Apply Unix Principles to Write Testable Microservices

Apply Unix Principles to Write Testable Microservices

Simple move the responsibility of orchestrating the workflow into a different service – the Choreographer model or make it an Event based where service reads input from a queue and persist’s an output Event back to the queue. If we want to make testable service, it has to return the output which is the most important thing it performs.So the question is how to break the workflow so it is composed of mostly functional services? Simple move the responsibility of orchestrating the workflow into a different service – the Choreographer model or make it an Event based where service reads input from a queue and persist’s an output Event back to the queue.What are the benefits:

Source: microservices-on-my-mind.blogspot.com