Back to blog

When should your monolith stay a monolith?

Thắng Đoàn
Thắng Đoàn

Your release is stuck again, and someone blames the monolith. Before you split it, know this: many teams end up with a distributed monolith that keeps all the old coupling plus new network costs.

The hidden cost of splitting too early

Organizations often start with monolithic applications for their simplicity, but soon face challenges as these systems grow more complex. Monoliths are not a failure state. Infoworld notes that organizations often start with monolithic applications for their simplicity, but soon face challenges as these systems grow more complex. Forbes reports monoliths work well when a product is small and teams are few. The pain arrives when teams grow, features pile up, and every release touches the same codebase.

The trap: the distributed monolith

A distributed monolith is a system composed of multiple services or components, deployed independently but tightly coupled through synchronous dependencies such as direct API calls or shared databases. Coupling means parts of the system cannot change independently of each other. Splitting a codebase without removing coupling produces what Infoworld calls a distributed monolith: a system composed of multiple services or components, deployed independently but tightly coupled through synchronous dependencies such as direct API calls or shared databases. You now pay for network calls and operational overhead while keeping monolith-speed releases. Before migrating, ask whether your releases are actually blocked by architecture or by process.

  • Direct API calls between services can recreate coupling you tried to remove
  • Shared databases silently tie split services back together

When the split pays off

As ad teams grow, monoliths can become a bottleneck, slowing the delivery of optimizations and new features and increasing operational burden. Comcast hit a real wall. Per TechTarget's report, Tom Hughes of Comcast said the Xfinity Home team concluded their monolithic legacy architecture would not provide the flexibility and agility they needed to serve customers. Forbes makes the same case for advertising platforms: as ad teams grow, monoliths can become a bottleneck, slowing the delivery of optimizations and new features and increasing operational burden. The signal is business pain: releases you cannot ship, teams stepping on each other, load one deployment cannot serve.

What this does not solve

Microservices do not remove your hardest problem, which is drawing service boundaries well. Techgenyz explains that reliability depends on timeouts, retries, circuit breakers and idempotency, plus clear service boundaries and data consistency strategies. Those are engineering disciplines you must build regardless of architecture. Migrating will not fix unclear domain ownership or weak testing; it usually amplifies both.

  • Circuit breakers and idempotency become your job after the split
  • Bad domain boundaries get more expensive, not cheaper
If you froze your next release for a week, would the blocker be your architecture or your process?
Which two parts of your codebase change together most often? That is where a boundary either exists or should.

List every database table shared by two candidate services, and estimate the migration effort for each. If the list is long, decouple data

Sources

TechTarget: Comcast's monolith to microservices shift

InfoWorld: From distributed monolith to composable architecture on AWS

Forbes: Monoliths vs. Microservices in ad systems

Techgenyz: Microservices communication guide

Share:

Recommended for you

Enjoyed this article?

Subscribe for new articles. No spam. Unsubscribe anytime.

By subscribing you agree to receive the newsletter. No spam, and you can unsubscribe anytime.