Go to content
Startups

When a Startup Should Split Its Monolith

Most startups begin with one application that contains every feature and deploys as a single unit. That application is a monolith. Later, the engineering team may ask whether billing, search, or notifications should run as separate services, which are small programs that deploy on their own and talk to each other over a network. Splitting a monolith into services is called decomposition.

This article is for a developer or technical founder who has to make that call. The decision turns on whether a split removes a pain you already have or adds costs you do not yet need. Splitting too early adds network calls to a system that did not need them. It also adds deployment pipelines, monitoring, and data consistency work. Waiting too long makes every release a coordination exercise. The method below starts from a monolith with clear internal modules. It names the specific pain before any split and checks whether the boundary and the owning team are clear. It then extracts one piece at a time in a way you can reverse. Along the way, you will see where the evidence is strong, where it is only correlational, and where the method does not apply.

Start With One Deployable Unit

Martin Fowler, who writes about software architecture, states the default plainly in his Microservice Premium post: "The majority of software systems should be built as a single monolithic application." He adds that teams should not consider microservices "unless you have a system that’s too complex to manage as a monolith." His closing advice is short: "if you can keep your system simple enough to avoid the need for microservices: do."

The name "premium" refers to the extra cost of running a distributed system. Fowler lists automated deployment, monitoring, failure handling, and eventual consistency as parts of that cost. Eventual consistency means that copies of the same data in different stores agree after a short delay rather than at the moment of each write. Each of these costs exists in a monolith too, but a monolith usually handles them with a single database and a single deployment, which keeps the work smaller.

Fowler does not argue against module boundaries. He recommends paying "attention to good modularity inside the monolith, but don’t try to separate it into separate services." A modular monolith is one deployable application whose code is split into modules with explicit interfaces, so one module calls another only through a defined entry point. This structure gives you most of the boundary benefits without the network. It also leaves the separation option open, because a module with a clean interface is much easier to move out later.

The Pains That Justify a Split

Fowler lists several conditions that push a system toward services. The first is large teams. The second is multi-tenancy, where one system serves many separate customer groups. Two more are supporting many user interaction models and letting business functions evolve independently. The last is the need to scale. He calls "the biggest factor" the "sheer size" of the system, which he describes as "people finding they have a monolith that’s too big to modify and deploy." In practice, the symptom is that a one-line change requires testing the whole application and waiting for a shared release train.

Fowler reports microservice systems ranging from "a team of 60 with 20 services to a team of 4 with 200 services," and he says it is "not clear" how service size affects the extra cost. No number of engineers marks the point where a split becomes correct. Fowler also points out that many problems blamed on monoliths "aren’t essential to that style," which means a messy monolith is often a modularity problem rather than a deployment-model problem.

The AWS decomposition guidance lists four problems that a monolith tends to produce as it grows. The internal structure becomes hard to maintain, with high coupling (one part depends heavily on others) and low cohesion (the code inside one part does not belong together). Feature delivery slows down. Individual components cannot scale to their own traffic. Multiple teams must coordinate one large release. The same guidance also says a monolith "can remain a valid choice" for applications without clearly defined responsibilities inside well-established domain knowledge. That condition matters. A monolith that works is a reason to wait, not a sign that the code is broken.

Ownership and Team Boundaries

Splitting code also divides the people who work on it. Conway’s law, introduced by Melvin Conway in 1967 and published in Datamation in 1968, holds that organizations design systems that mirror their communication structures. Wikipedia’s summary of Conway’s law quotes his wording: organizations are "constrained to produce designs which are copies of the communication structures of these organizations." The mechanism is simple. Components have to fit together, so the people who build them must talk to each other. Boundaries between teams end up as boundaries in the code.

A 2012 study by MacCormack, Baldwin, and Rusnak tested this idea with software. The researchers compared nearly identical products built by tightly coupled commercial firms and by loosely coupled open-source communities. As summarized on Wikipedia, the authors reported "strong evidence to support the mirroring hypothesis," and the product from the loosely coupled community was "significantly more modular." This is a correlation across two groups of products. It does not show that reorganizing a team will reshape a system on a fixed schedule, and the direction of cause and effect remains debated.

If two teams step on each other every week, a service boundary drawn along their current line will reproduce that friction over a network. The AWS service-per-team guidance recommends assigning each microservice to a single team. It lists minimal coordination and quick iteration as advantages, and it lists circular dependencies between teams as a disadvantage that makes larger coordinated releases harder. Some practitioners reverse the order and reorganize the team and its communication paths first, which is sometimes called the inverse Conway maneuver. The research supports the link between structure and design. It does not establish a reliable recipe for the order of changes.

Deployment Independence as the Test

The most useful test for a split comes from DORA, the research program behind the annual Accelerate State of DevOps reports. DORA defines loosely coupled teams as teams that can make large-scale design changes without outside permission, deploy and release on demand, and test without an integrated test environment. In a tightly coupled system, a small change can cause a large cascading failure, and anyone working in one part must coordinate with everyone else.

DORA also warns that calling a system a service-oriented architecture does not satisfy this test. Many such systems do not let teams test and deploy services independently, and DORA says those systems do not deliver higher performance. Independence is the requirement, and the label does not provide it. A useful check is to ask whether the team that owns a candidate piece can ship a change to it without a joint release, without waiting for another team’s pull request, and without running the entire application’s test suite.

DORA’s comparison of monoliths and microservices lays out the strengths and costs of both styles. Monoliths are simple at first, have low latency between parts because calls stay in one process, and work well at small scale. Their weaknesses include coordination overhead that grows with team size and poor scaling. Deploys are all-or-nothing, and builds take a long time. Microservices allow independent scaling, testing, and deployment, but they bring many cooperating units, many repositories, more tooling for dependency management, and network latency. DORA’s summary of the scaling problem comes from Randy Shoup: "What works at scale 1x rarely works at scale 10x or 100x."

Data, Transactions, and Failure Costs

Data is where most splits become expensive. In a monolith, a business action such as "charge the customer and record the invoice" can run inside one database transaction. A transaction groups several writes so they all succeed or all fail. Once billing and invoicing live in separate services with separate databases, that action becomes two writes that can succeed or fail independently. A split therefore forces you to decide what happens when the first write succeeds and the second one fails. Common answers include retrying the failed step, running a compensating action that undoes the first write, or publishing an event that the second service processes later. Each answer changes what the customer sees during the gap.

The AWS strangler fig guidance describes the data problem during migration. The best practice is for each microservice to own its data. In practice, data often has to be synchronized between the new service and the monolith’s database so that reports and other applications keep working. That synchronization creates redundant copies and eventual consistency between two stores. The guidance treats it as a tactical measure, to be replaced later by a longer-term approach.

Calls between services create their own failure modes. A call that waits for a reply can tie up connections or threads when the other service times out. The AWS guidance suggests a circuit breaker, which is a mechanism that stops calling a failing service after repeated errors and returns a fallback response instead. It also suggests events and message queues, so that the caller does not wait for a reply. The routing layer that sends traffic to old or new code can become a single point of failure. It can also become a performance bottleneck. A request that crosses several services also needs tracing across all of them, or a slow checkout becomes hard to locate. DORA’s 2021 data links observability (the ability to see what a running system is doing) with better results, with elite performers who meet reliability targets being more likely to use it, but that finding is also correlational.

A Worked Hypothetical: A Scheduling App

Consider a hypothetical startup that sells appointment scheduling software for small clinics. Its single application handles accounts, appointment booking, payments, and email reminders. All four areas share one database and one deployment. The app now has two problems. Payment provider changes block releases because the payment code shares a test suite with everything else. Reminder emails are slow batch jobs that sometimes make the booking pages respond slowly.

The first step is to make the existing monolith modular. Each area becomes a module with a public interface. Other modules call that interface and never read the module’s database tables directly. The team enforces this through code review, or through a linter rule that fails the build when one module imports another module’s internals. This work does not change how the app deploys, and it is worth doing whether or not a split follows.

Next, the team checks the payments module against the earlier criteria. The pain is real because payment changes block releases. The boundary is clear because the payment logic has a small set of inputs and outputs. Ownership is clear if one developer or small group can own payments end to end. The team then looks at the operating costs. It needs a deployment pipeline for the new service, tracing across the booking and payment calls, and a decision about the charge-and-record transaction. The notification module has a different profile. Its batch jobs are a scaling problem, so it is a separate candidate with its own trade-offs.

For the payments split, the team puts a routing layer in front of the monolith, following the strangler fig pattern. The routing layer sends payment calls to the monolith by default. The team then deploys the payment module as a service behind an HTTP interface and sends a small share of traffic to it behind a feature flag. A feature flag is a runtime switch that routes traffic without a new deployment. The team compares error rates and latency for both paths before it moves more traffic. The in-process payment code stays in the codebase until the service has run reliably, so switching traffic back to the monolith takes a configuration change rather than a rebuild. That reversibility is the point of the approach. The team does not need to decide that the split is permanent on the first day.

In this example, the charge-and-record step changes from one transaction to two writes. The team decides that a payment timeout leaves the booking in a pending state, and a background job retries the payment and confirms the booking. The expected behavior is that a clinic sees "pending" for a short period rather than a failed booking or a charge without a record. That behavior is a design decision that the team has to write down and test, and the choice is not something the architecture provides on its own. The example assumes the team can monitor the two paths, has an owner for payments, and accepts a pending state in the user interface.

The Decision Method

The steps below turn the sources into a sequence of work. The order is this article’s own synthesis of the sources, and none of Fowler, AWS, or DORA publishes it as a rule. Each step rests on one of the sources above.

  1. Keep one deployable application and enforce module boundaries inside it.
  2. Name the specific pain. Examples are blocked releases, a component that needs different scaling, or a failure that spreads across the system.
  3. Check that the candidate has clear business logic and few dependencies, and that you can describe its boundary in one sentence.
  4. Confirm that one team can own the candidate and ship changes without waiting for other teams.
  5. Write down the operating costs: a new pipeline, monitoring, and tracing. Note the retries, the timeouts, and the data each side owns.
  6. Extract the candidate behind a routing layer and a feature flag, so traffic can move back.
  7. Set the condition for rolling back before you move traffic, such as an error rate or latency threshold that the team agreed on in advance.

Steps 2 and 4 matter most. A split justified by a vague wish for "better architecture" usually fails the test in step 2, and a split that fails step 4 usually recreates the coordination problem in a new place.

Where the Method Falls Short

The strongest number-based evidence here is correlational. The DORA 2021 finding that elite performers who meet reliability targets are three times more likely to use a loosely coupled architecture describes a survey snapshot. It does not measure what happens to a team after it splits a monolith. The 2021 survey drew 1,200 working professionals, and the program’s cumulative data covers more than 32,000 professionals across seven years. Use the 2021 number for the specific finding and the larger figure only for the program’s overall scope.

The newest DORA report, published in 2025 and summarized in a Google Cloud announcement, says teams in loosely coupled architectures see gains from AI-assisted development while teams in tightly coupled systems see little or no benefit. That finding concerns AI-assisted work. It does not test decomposition, and it should not be read as a measure of splitting a monolith.

Some guidance also has a date and a scope. Fowler’s Microservice Premium post dates from May 2015. The AWS pages available for this article carry no publication date in the fetched copies, so check the current versions before relying on specific wording. The AWS strangler fig guidance says that for small applications where full refactoring is low in complexity, it "might be more efficient to rewrite the application in microservices architecture instead of migrating it." That path differs from the gradual extraction described above, and it fits applications much smaller than the scheduling app in the example.

Reversing a split also has costs. Segment, a customer data company, published a post titled Goodbye Microservices in 2018 explaining its move away from many small services. The lesson is that a split can be undone, but the work that went into the split, including the data migration and the operational tooling, does not disappear. The reversal also depends on how far the migration went before anyone checked the results.

Finally, the method assumes the business will change in ways that justify modular boundaries. A startup whose product may pivot next quarter may gain more from a single fast-moving codebase than from carefully separated services. The sources do not settle that trade-off, and each team has to weigh it against its own product plans.

Five Rules Before You Split

  • Keep one deployable application first: Build modules with explicit interfaces inside a monolith. Split only when a named pain justifies the operating cost, such as blocked releases or a component that needs different scaling.
  • Test for independent deployment: Ask whether the owning team can change, test, and ship the candidate without waiting on another team or running the whole application’s tests.
  • Draw the boundary around a clear domain: Choose a piece with related business logic and few dependencies, and treat unclear domains as a reason to wait, since premature splits are costly.
  • Plan the transaction before the cut: Decide what happens when a write in one service succeeds and its partner fails, and write that behavior into the design before traffic moves.
  • Move traffic in reversible steps: Route calls through a proxy with a feature flag, and agree on the rollback threshold before the first change.
More in Startups Back to top ↑