Request a Consultation

Insights · Cloud & Platform

Modular monolith or microservices: how to choose

By the Cystem X Engineering Team - Published - 5 min read

Microservices became the default answer to scale, and many organizations paid for it in complexity they did not need. A modular monolith, one deployable application with strict internal boundaries, is often a better starting point. The right choice depends on team structure, change patterns and operational maturity.

What each architecture offers

A modular monolith deploys as one unit but is organized into well-separated modules with explicit interfaces. Microservices split the system into independently deployable services, each owning its own data and communicating over the network.

Both can be well or badly designed. The quality of the boundaries matters more than the deployment shape.

The costs of distribution

Network calls fail, add latency and complicate transactions. Distributed systems need service discovery, tracing, versioning, contract testing and more sophisticated deployment and monitoring. Data consistency across services requires patterns such as sagas and eventual consistency.

Each of these is manageable, but together they require skills and tooling.

Choose the simplest architecture that your team and your problem allow.
Colleagues around a table with laptops and a whiteboard
Team structure shapes architecture.

The benefits of independent services

Services let separate teams deploy independently, scale parts of the system differently and choose different technologies where justified. They contain failures and align well with large organizations having clear domain ownership.

These benefits appear when team and domain boundaries are already clear.

Let team structure guide you

Architecture tends to mirror communication structure. A single small team usually moves faster with one codebase. When many teams collide in the same code, release coordination becomes the bottleneck and a split starts to pay off.

Avoid splitting before you understand the domain, since wrong service boundaries are expensive to change.

Software team collaborating at desks
Clear ownership makes either style work.

Design modules to be extractable

Enforce boundaries inside the monolith: separate packages, no shared database tables across modules, communication through defined interfaces or events, and automated architecture tests. A well-modularized monolith can later release modules as services with limited effort.

This keeps options open at low cost.

Signs it is time to split

Typical signals include a module with very different scaling needs, independent release cadences blocked by shared deployments, distinct security or compliance boundaries and clear team ownership. Extract one service at a time, starting where benefit is clearest.

Measure the improvement to confirm the split paid off.

Engineer at a desk with code on screen
Boundaries are enforced in code and tests.

Operate either one well

Whichever you choose, invest in automated testing, continuous delivery, observability and clear ownership. A well-run monolith outperforms a poorly run set of services.

Revisit the decision as the organization evolves.

Key takeaways

  • Compare distribution costs with the benefits of independence.
  • Let team size and domain clarity guide the decision.
  • Start with a modular monolith and enforce module boundaries.
  • Split when scaling, release or compliance needs clearly justify it.
  • Invest in testing, delivery and observability either way.

Sources and further reading

This article reflects general practice and publicly available guidance. Teams should consult primary sources, including writings on domain-driven design, the Team Topologies literature and the engineering blogs of organizations that have moved in both directions, and adapt the guidance to their own environment, risk appetite and legal obligations.

Software Engineering

Choose an architecture you can run.

We review architectures and build maintainable platforms, monolithic or distributed.

Explore Software Engineering

Let’s engineer what’s next.

Tell us about your initiative - a solution architect will respond within one business day.