Skip to content
IT glossary
ArchitectureUpdated December 3, 2026

Monolith

Монолит

An architecture in which an application's features are deployed as one unit. If you change just one feature, you still deploy a new version of the whole application.

What makes an application a monolith?

Look at what gets deployed together. If changing the invoice generator means shipping a new version of the same backend that handles accounts and subscriptions, those features form a monolith. The backend can still use a managed database, a payment provider, and a separately deployed web frontend. Calling the backend a monolith describes how its own features ship, not how many things the entire system runs.

One deployment does not mean tangled code

A monolith can contain layers, packages, or business modules. In a modular monolith, each module has a clear responsibility and exposes an interface that other modules use. For instance, the accounts module can ask billing for a customer's subscription status rather than querying billing tables itself. That call can be a regular function call inside the application, with no service-to-service network request. The boundary helps engineers change the code without giving each module its own release process.

Example: changing a subscription plan

When a customer upgrades, the billing module may record the new plan while another module updates the features the customer can access. If both writes use the same database transaction, the application can commit both or roll both back. That simplifies a rule such as “never grant premium access without recording the plan change.” Charging a card through an external provider is different: rolling back the database transaction doesn't undo the charge.

Benefits and limits

A single deployment is often a good fit for one team learning where the product's boundaries should be. Engineers can move a responsibility between modules without coordinating releases across services, and there are fewer application components to deploy and monitor independently. The trade-off is shared rollout and runtime: even a small patch ships with the rest of the application, and a resource-intensive feature can compete with unrelated requests on the same instance.

A monolith is not limited to one server. If requests can be handled by any instance, you can run multiple replicas behind a load balancer. What you can't do with those replicas is add capacity for just one module: each replica runs the same deployable unit. Repository layout isn't the test either. A single repository can contain several independently deployed services.

How it comes up in interviews

In a system design interview, tie the choice to a specific constraint. For example, one team building a subscription product may prefer a modular monolith because plan changes and access updates belong in the same transaction. If invoice generation later needs a different scaling or release schedule, explain why you'd consider extracting that workload, what data it would own, and how the application would behave when the new service was unavailable.