What is a monolith, and is it bad?

In plain English

A monolith is an application built and deployed as one unit. All the main parts, like user accounts, billing, search, and notifications, live in one codebase and ship together. It is not bad. For most startups it is the right default. It is faster to build, cheaper to run, and easier for a small team to understand. The alternative, microservices, splits the app into many small services that talk over a network. That helps large organizations with many teams, but it adds real cost and complexity. Monoliths get a bad name when they turn messy: code is tangled, one change breaks something unrelated, and deploys become scary. That is a code quality problem, not proof the monolith approach failed. A well-organized monolith can carry a company to tens of millions in revenue.

What it means for you

Starting with a monolith usually means lower hosting bills, faster feature delivery, and fewer engineers needed in the first few years. The risk is not the monolith itself but letting it get disorganized, which slows every future change.

Ask your tech lead

  1. How is our codebase organized internally, and could we pull out a piece like billing later if we needed to?
  2. What part of the system slows us down most right now, and is that about the architecture or about code quality?
  3. At what team size or traffic level would you expect our current setup to start straining, and what would we see first?

Listen for

  • The team wants to rewrite into microservices with fewer than about 15 to 20 engineers and cannot name a specific problem it solves.
  • Engineers say small changes regularly break unrelated features, or deploys only happen weekly because everyone is nervous about them.
  • Nobody can explain where a given feature's code lives or who owns it, which suggests the monolith has become a tangle.

In more detail

In practice, a monolith is one project that engineers open, run on their laptop, and deploy to servers as a single package. When a customer signs up, the signup code, email code, and billing code all run in the same program and share one database. That makes debugging simpler, because you can follow a request from start to finish in one place. Testing is simpler too. Companies like Shopify, Basecamp, and Stack Overflow have run very large businesses on monoliths for years, which tells you the approach scales further than its reputation suggests.

Rough rules of thumb help. With one to about 20 engineers, a monolith is almost always the better choice. Between 20 and 50, it often still works if the code is split into clear internal modules, sometimes called a modular monolith. Past 50 to 100 engineers, teams start stepping on each other, and splitting off some services can make sense. Moving to microservices typically adds 20 to 40 percent overhead in engineering effort for infrastructure, monitoring, and coordination, plus higher cloud bills.

The trade-offs are real on both sides. A monolith's weakness is that everything deploys together, so one bug can take down the whole app, and one slow, heavy feature can affect everything else. It can also get harder to scale one busy part independently. Microservices fix those issues but create new ones: network failures between services, data spread across databases, and the need for dedicated people to keep the plumbing running. The honest answer is that you trade simplicity for flexibility, and most early companies need simplicity more.

Consider a 10-person B2B software company with six engineers. A new senior hire proposes breaking the product into eight microservices to be ready for scale. The rewrite is estimated at four months and stretches to nine. Feature work stalls, two customers churn waiting on promised features, and the hosting bill roughly triples. A better path would have been to spend a few weeks cleaning up the monolith into clear modules, adding automated tests, and only extracting a service, like a slow reporting engine, when it clearly causes pain.

Related questions

Have a different version of this question?

Paste what your team actually said and get it translated. Three free questions, no signup.

Ask your own

3 free questions. No signup.