Technical Senior Level

When would you choose a microservices architecture over a monolith? What are the hidden costs of microservices?

Quick Tip

Lead with the trade-offs, not the benefits. Anyone can list microservice advantages; showing you understand the costs demonstrates real experience.

What good answers include

Best answers acknowledge that monoliths are often the right starting point. Microservices make sense when teams need independent deployment, different scaling profiles, or technology diversity. Hidden costs include: distributed debugging, network latency, data consistency challenges, operational overhead, and the need for service discovery, circuit breakers, and distributed tracing.

What interviewers are looking for

Senior-level question. Red flag: advocating microservices without acknowledging complexity. Good sign: discussing when a monolith is better and the organisational prerequisites for microservices.

← All Software Developer questions