InterviewStack.io LogoInterviewStack.io

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
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
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.

MediumTechnical
61 practiced

Describe the modular monolith architectural pattern as an intermediate step before adopting microservices. What are its benefits and drawbacks, and what technical and organizational decision criteria would lead you to recommend staying with a modular monolith versus moving to microservices?

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
68 practiced

When should you split a service into two versus keeping it as a single service? Provide measurable indicators (change frequency, team ownership, differing scaling requirements, failure blast radius) and describe a process that avoids premature decomposition while still allowing the service to split later as those signals emerge.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.