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.

MediumTechnical
59 practiced

Explain the strangler fig pattern for migrating a monolith to microservices: the role of a routing/intercept layer, the role of anti-corruption layers when the new service must still talk to the old monolith's data, and how you would manage shared-database access during the transition period. Describe how you'd prioritize which components to extract first.

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.

MediumTechnical
58 practiced

When would you choose synchronous request/response calls between services versus asynchronous messaging? For each choice, discuss the impact on end-to-end latency, coupling between services, error handling and retry behavior, and the operational implications for on-call and SLOs.

MediumTechnical
57 practiced

Discuss the pros and cons of a monorepo versus multiple repositories when organizing the code for many independently-owned services at a large company. Focus on the impact on CI build times, release cadence, cross-service refactors, and code-ownership boundaries.

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.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.