Development
Monolith
Also known as: monolithic architecture, modular monolith
Definition
A monolith is an application built and deployed as a single unit: all the code lives in one repository, runs in one process and works against one database, releasing as a whole, which buys simplicity at the cost of coupling.
A monolith is the default architecture, and that is not an insult. One process means a call between modules is a plain function call rather than a network request: it does not time out, does not need retries and is easy to debug. One database means a transaction is genuinely a transaction and data does not drift apart. One deployment means no version mismatch between parts of the system. For most commercial projects, from websites and stores to customer portals and internal tools, that is enough for years.
Trouble starts not with code volume but with the absence of internal boundaries. When modules reach freely into each other’s tables and business logic is smeared across controllers, the monolith becomes a big ball of mud: every change touches its neighbours, regressions get unpredictable, and build and release times grow. Hence the practical middle ground, the modular monolith: one deployment, but strictly separated domains with their own boundaries and their own tables, reachable only through an internal interface.
A workable selection rule: split off as a service only what genuinely needs independent scaling, independent release or a separate team, and leave the rest alone. Moving from a modular monolith to microservices later is feasible precisely because the boundaries already exist. The reverse journey, from premature microservices back to a monolith, costs considerably more, and those projects turn up for audit regularly: eight services, two engineers on staff, and six months to add one field to a form.
Related terms
- MicroservicesMicroservices are an architecture in which an application is split into several independent services, each with its own data and release cycle: they talk over the network through APIs, deploy separately and scale individually, but they demand mature infrastructure.
- Legacy codeLegacy code is working code that is expensive to change: it runs on an outdated stack, has no test coverage or has lost its authors, so every edit means reconstructing the logic from the source and risks breaking something unrelated.
- RefactoringRefactoring is changing the internal structure of code without changing its external behaviour: the functionality before and after is identical, what changes is readability, coupling and the cost of the next change, verified by tests and regression checks.
- Technical debtTechnical debt is the accumulated gap between how a system is built and how it should have been built: every shortcut taken to hit a deadline turns into a permanent surcharge on the cost and duration of everything built afterwards.
- CI/CDCI/CD is a pipeline that on every commit builds the project automatically, runs tests and checks, and then ships the passing build to a staging environment or to production, removing manual deployment and the human error that comes with it.
Related services
- Web app and Telegram Mini App developmentFor when a site is no longer enough and you need a product: an account area, a dashboard, an internal tool or a Mini App inside Telegram. We design the architecture, write the backend and frontend, and take it to release.
- IT consulting and product auditThe most expensive mistakes in software happen before the first line of code: a misread problem, a stack chosen out of a contractor’s habit, and a specification that does not exist. Consulting exists to settle all of that before the development meter starts running: what to build, out of what, at what cost and in which order. The result is a document, not an opinion on a call.
- Website development, end to endWe build sites that still hold up a year later: from a one-page CMS build to a store or a web application on React and Next.js. One team for design, code, integrations and launch.
Read more
- How to Choose a Tech Stack: Criteria That Outlive the HypeA stack is a five-year commitment usually made in a single call. Here is the order the decisions should be taken in, the criteria that carry real weight, working stacks for six project archetypes and what a wrong choice costs.
- Redesigning a Site Without Losing Traffic: Stages, Risks and the SEO Migration ChecklistHalf of all redesign requests are really content, speed or offer problems. How to tell them apart, why a phased rollout beats a big bang launch, and what belongs in the migration checklist so the organic traffic survives.
Need this done, not just defined?
We do this work, not only write about it. Describe the task and we will scope it and send a staged estimate.