Microservices Architecture and Service Decomposition Questions

Decomposing a system into services along bounded contexts, defining service boundaries and ownership, and managing the tradeoffs against a monolith. Covers cohesion, coupling, data ownership per service, the distributed-monolith anti-pattern, and when a modular monolith beats microservices. Emphasizes decomposition reasoning rather than any single framework.

HardTechnical
66 practiced

How would you quantify and present the technical risk and business cost of having many microservices with overlapping responsibilities, versus consolidating some of them into fewer services? Describe the metrics you would gather (deployment coordination overhead, on-call load, infra cost per service, cross-service change frequency), any lightweight experiments you might run, and how you would present the trade-off to executives who are not engineers.

HardTechnical
81 practiced

A company is moving from roughly 20 to 200 services. Explain Conway's Law's practical impact on the resulting architecture and reliability, and propose an organizational structure and set of team boundaries (platform/infra teams, service-owning teams, shared libraries) that improves ownership clarity and reduces cross-team coupling at that scale.

MediumTechnical
79 practiced

Design session handling for a web application served by many independently-deployed services. Compare a stateless approach (signed tokens such as JWTs carrying session data) against stateful server-side sessions (a shared session store, or sticky sessions at the load balancer). Discuss the trade-offs for security and revocation, session size, immediate logout/invalidation, and how each approach affects your ability to scale services independently and fail over without dropping user sessions.

MediumTechnical
62 practiced

Explain how decomposing a system into smaller, well-bounded services can reduce the blast radius of a failure, compared to a single large service that owns many responsibilities. Give an example where splitting a service reduced an outage's scope and made recovery simpler, and describe the trade-off this introduces: more inter-service calls to reason about.

HardSystem Design
77 practiced

Design a multi-tenant microservices architecture that balances tenant isolation, operational cost, and ease of upgrades. Compare tenancy models (shared schema with a tenant id, schema-per-tenant, instance-per-tenant) and discuss how each affects the noisy-neighbor risk, per-tenant scaling, and how you would roll out an upgrade across tenants without one tenant's failure affecting others.

Unlock Full Question Bank

Get access to all 37 Microservices Architecture and Service Decomposition interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.