How do you decide whether a piece of functionality should be a new microservice or added to an existing one?
Last updated
Default to the existing service if the feature shares its bounded context, data/aggregates, and change lifecycle, or is too small to justify a new service's operational overhead.
Create a new service only for a distinct bounded context or different scaling, deploy cadence, team ownership, or technology/data-store needs.
Premature splitting creates a distributed monolith (tightly coupled services). You can extract later once boundaries are clear.
- https://blog.allegro.tech/2024/04/ten-years-microservices.html
- https://www.thoughtworks.com/en-au/insights/podcasts/technology-podcasts/software-service-granularity-getting-it-right
- https://brocoders.com/blog/monolith-vs-microservices-architecture/
- https://arxiv.org/html/2408.10434v1
- https://www.hirist.tech/blog/top-25-spring-boot-microservices-interview-questions-with-answers/