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.

EasyTechnical
70 practiced

Explain the architectural principles loose coupling, high cohesion, separation of concerns, and single responsibility as they apply to drawing service boundaries. For each principle, give a concrete example of a boundary decision it would push you toward, and explain how violating it shows up later (harder deployments, blurred ownership, cascading changes).

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

Compare the responsibilities of an API Gateway to a Service Mesh. Explain what each solves: north-south traffic (client-to-service) for the gateway versus east-west traffic (service-to-service) for the mesh, where their responsibilities overlap, and describe an architecture that legitimately uses both together, noting the added operational cost of running sidecars at scale.

HardSystem Design
63 practiced

Describe a pragmatic process to decompose a large, high-traffic monolith using Domain-Driven Design: the steps from domain discovery, through forming bounded contexts, to extracting the first services and the domain events that decouple them. Name the pitfalls to avoid (shared-database anti-patterns, premature splitting, boundaries with no clear owning team) and how you would validate a candidate boundary (spike tests, consumer usage data) before committing to extraction.

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.

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.