When should you NOT use microservices?

Topic: microservices, Design. Level: Intermediate.

Answer

Avoid microservices when: the domain/team is small (a modular monolith is faster and simpler), boundaries aren't yet understood (premature splits are expensive to undo), you lack the operational maturity (CI/CD, monitoring, on-call, infra automation) to run many services, or the app isn't hitting scaling/team-friction limits. Microservices trade in-process simplicity for network complexity, eventual consistency, and ops overhead — only worthwhile when their benefits (independent scaling/deploy, team autonomy) outweigh that. Start monolith-first, extract when pain is real. ```text Prefer a (modular) monolith when: - small team / early product, boundaries still shifting - no mature CI/CD, monitoring, tracing, on-call - no scaling or deploy-coupling pain yet Rule: don't pay distributed-systems tax until a real problem demands it. Modular monolith first -> extract services along proven seams later. ```