Glossary termSoftware architecture

Monolithic Architecture

Also known as: Monolith, Monolithic application

Software design in which an application's components are built, deployed and run together as a single unit rather than as separate services.

A monolithic architecture packages all of an application's functionality, such as its user interface, business logic and data access, into one codebase that is built and deployed as a single unit. A typical web monolith is one program, connected to one database, that handles every request the application receives. Components call each other directly as ordinary function calls within the same process. Most software begins this way, and many very large and successful applications have remained monoliths throughout their lives.

Monoliths have real advantages. They are simpler to develop, test and deploy, since there is only one thing to run; calls between components are fast and reliable; and transactions across the whole data model are straightforward with a single database. Their problems tend to appear with growth. A large codebase can become tangled, every change requires redeploying the whole application, one faulty component can take down everything and scaling out means replicating the entire application even when only one part is under load. Coordination also becomes harder as more people work in the same code.

In the 2010s monoliths were often presented as legacy designs to be replaced by microservices, but later discussion became more balanced. Many engineers advocate a modular monolith: a single deployable application with clear internal boundaries between modules, which keeps operational simplicity while limiting tangling and can later be split along those boundaries if needed. The right choice depends on team size, scaling needs and operational maturity, and Conway's law suggests that the structure of the organization will shape whichever architecture is chosen. Accumulated technical debt is a risk in any of them.

Key points

  • A monolith is built and deployed as one unit, with components communicating through in-process calls.
  • Monoliths are simpler to develop, test, deploy and keep consistent than distributed systems.
  • Growth can bring tangled code, slower releases and the need to scale the whole application at once.
  • A modular monolith keeps a single deployment while enforcing clear internal boundaries between components.

Related entries

Glossary term

Microservices

ProgrammingDevOps

Architectural style that builds an application as a suite of small, independently deployable services, each running its own process and owning its data.

Glossary term

Conway's Law

ProgrammingIdeas and Culture

Observation that organizations design systems whose structure mirrors their own communication structure, formulated by Melvin Conway in the late 1960s.

Glossary term

Technical Debt

Programming

Metaphor for the future cost of rework created when software teams choose a quick or expedient solution instead of a cleaner, more durable one.

Glossary term

Database

Programming

Organized collection of structured data stored electronically and managed by software that lets users store, query and update it reliably.

Glossary term

Increasing a system's capacity by adding more machines or instances that share the work, rather than making a single machine more powerful.

Glossary term

Refactoring

Programming

Process of restructuring existing code to improve its design, readability or maintainability without changing its external behavior.

Glossary term

DevOps

DevOpsIdeas and Culture

Set of cultural practices and tools that unites software development and IT operations to deliver changes faster and more reliably.

Referenced by

Other entries that discuss or point to Monolithic Architecture.