1.

How big a single microservice should be?

Answer»

A good, albeit non-specific, rule of thumb is as small as POSSIBLE but as big as necessary to represent the domain concept they own said by Martin Fowler

SIZE should not be a DETERMINING factor in microservices, instead bounded context principle and single responsibility principle should be used to isolate a business capability into a single microservice boundary.

Microservices are USUALLY small but not all small SERVICES are microservices. If any service is not following the Bounded Context Principle, Single Responsibility Principle, etc. then it is not a microservice irrespective of its size. So the size is not the only eligibility criteria for a service to become microservice.

In fact, size of a microservice is largely dependent on the language (Java, Scala, PHP) you choose, as few languages are more verbose than others.



Discussion

No Comment Found