Monolithic architecture
A traditional software model in which one codebase implements multiple business functions.
Structure and behavior
Follow the arrows step by step.
All functions in the single deployment unit scale together. The DB can be a separate resource.
Expected benefits
Development, testing, and deployment are straightforward; adding replicas behind a load balancer can make scaling out simple.
Trade-offs
Even a small change can affect a broad part of the codebase, increasing change and maintenance costs.
Maintenance and scaling grow harder as application scope and performance requirements increase.
Operations and adoption guide
Synthesis, distinct from items backed by source excerpts. Validate before applying in production.
When to use
A good fit when an early product or small team prioritizes shipping quickly and keeping development and deployment simple. It can also suit small or midsize applications with simple requirements and prototypes.
Scenario
A regional retail chain with 50 employees and 8 developers has three months to launch online ordering, inventory, and membership as one web application. It expects thousands of requests per day and little demand for independently scaling individual features. One codebase and one relational DB simplify development, testing, and deployment; several identical instances behind a load balancer provide horizontal scaling.
Placement principles
- Package UI, server logic, and data access in one runnable unit or artifact
- Put primary data in tables in one relational DBMS
- Keep static assets in the application bundle or under one web-server path
- Put identical application replicas behind a load balancer
- If needed, use a shared external store for sessions or cache while keeping core data in the one DB.
On premises
Deploy one executable and a relational DB, then scale by replicating behind a load balancer. Manage versions, settings, and DB migrations together for the one deployment unit. As failure impact can span the whole application, keep health checks, backups, and rollback straightforward.
Cloud
Use one container or VM image as the deployment unit, with a managed load balancer and relational DB. Replication and autoscaling apply to the entire instance, not individual features. Use blue-green or rolling releases to minimize downtime.
Kubernetes
Build the monolith into one container image and deploy it with one Deployment exposed via Service and Ingress. Scale whole instances with replicas and HPA, and separate the one DB into a StatefulSet or external managed DB. Use ConfigMaps, Secrets, liveness/readiness probes, and a PDB, recognizing that features are not isolated.
Incident response
A bad endpoint, slow query, or downstream delay can drive latency and load across all instances. First restrict traffic, roll back the recent deployment, increase instances, and check connections and slow DB queries. Retry transient errors; use breakers and timeouts to fail fast on persistent errors. Strengthen endpoint metrics and deployment gates to prevent recurrence.
Evidence by criterion (14 total)
Evidence availability at the time of research. Assess source accuracy and currency separately.
Definition and overviewEvidence available
A traditional software model in which one codebase implements multiple business functions.
Monolithic architecture is a traditional software development model in which a single codebase executes multiple business functions.Problem addressedEvidence available
Helps early-stage companies ship quickly and conserve funds through simpler development and deployment.
Startup outfits need to make quick business moves, but also need to conserve precious start-up funds.Key components and resourcesEvidence available
Consists of a client UI, a server-side interface, and a database.
a client-side interface, a server-side interface, and a databaseData and asset placementEvidence available
Typically uses one primary database and keeps the data access layer within the application.
It usually talks to one main database.Typical use casesEvidence available
Suitable for small to midsize applications, prototypes, and simple requirements.
Best suited for small to medium-sized applications, prototypes, or applications with simple requirements.Example scenarioEvidence available
Useful when an early-stage product with unclear domain boundaries is built by a small team of up to 20 people that prioritizes simple deployment.
Team size is small (< 20 engineers)When to avoid and caveatsEvidence available
Maintenance and scaling grow harder as application scope and performance requirements increase.
as the application’s scope and performance demands increase, a monolith can consequently become difficult to maintain and scale.On premises: development, deployment, and operationsEvidence available
The simplest form runs one executable on one server.
In its simplest form, a monolithic application is a single executable that runs on a single server.Cloud: development, deployment, and operationsEvidence available
Scale out by running identical replicas behind a load balancer.
simple to scale horizontally by running copies behind a load balancer.Kubernetes: development, deployment, and operationsUnverified
No primary-source evidence was recorded. This does not imply that the pattern is unsuitable.
Incident responseEvidence available
Retry transient errors and use a circuit breaker for persistent failures to limit cascading impact.
Use the Circuit Breaker pattern to fail fast without making the remote call when an operation is likely to fail.BenefitsEvidence available
Development, testing, and deployment are straightforward; adding replicas behind a load balancer can make scaling out simple.
it is simple to develop, test and deploy, and simple to scale horizontally by running copies behind a load balancer.Drawbacks and trade-offsEvidence available
Even a small change can affect a broad part of the codebase, increasing change and maintenance costs.
small changes impact large areas of the code base.Representative tools and technologiesEvidence available
Representative building blocks are a relational database management system and a single runnable unit.
A database for the enterprise-level app is usually multiple tables organized in a relational database management system.Additional references (24)
- What is Monolithic Architecture? | IBM ↗
- Monolithic Architecture | Compile N Run ↗
- Decomposing monoliths into microservices ↗
- What Is a Monolithic Application? | F5 ↗
- Top 10 Software Architecture Styles You Should Know — bool.dev ↗
- Part 6: Software Architecture & Design Patterns - Wasil Zafar ↗
- How to design monolith architectures with Vaadin ↗
- Monolithic vs Microservices - Difference Between Software Development Architectures- AWS ↗
- From Monoliths to Microservices: Application Modernization With Kubernetes ↗
- References: Kubernetes and cloud projects | Cheveo GmbH ↗
- How to Run Kubernetes Across On-Premises and Public Cloud: Four Hybrid Architecture Models and the Seven Layers to Standardize ↗
- Deploy Containerized Apps with AKS Hybrid and Edge by Using GitOps - Azure Architecture Center | Microsoft Learn ↗
- Reference Architecture: GKE Enterprise hybrid environment - part 2 - Dec '24 - Google Docs ↗
- A Private Cloud "Kubernetes Service" deployable anywhere. | CNCF End User Community ↗
- TechnicalEnablement/AKS-adoption-aligned-to-cloud-adoption-framework.md ↗
- The perfect Kubernetes architecture from edge to cloud ↗
- SRE for single-tiered software applications | Google Cloud Blog ↗
- Improving Resiliency and Stability of a Large-scale Monolithic API Service ↗
- Design for Self-Healing - Azure Architecture Center | Microsoft Learn ↗
- Monolith vs microservices: fault isolation and its cost ↗
- Google SRE - Cascading Failures: Reducing System Outage ↗
- 1 Designing and running microservices ↗
- Architecture strategies for performing failure mode analysis - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗
- The Distributed Monolith: Diagnosis and First Remedies | Microservices Recipes: The Architect’s Field Guide ↗