Services

Resources

Company

/

Monolithic architecture

Monolithic architecture (monolith)

A monolithic architecture puts all of an application's features, such as orders, payments, search and user accounts, into one codebase that is built and deployed as a single unit. Modules call each other in-process and usually share one database. It is the default shape of most applications when they start.

How it works

Everything ships together: one build, one artifact, one deploy. Calls between modules are function calls rather than network requests, so they are fast and easy to trace, and a single database transaction can span several features.

The cost shows up as the system grows. A one-line fix to search ships the whole application. To handle 10 times more checkout traffic you run 10 copies of everything, including the parts that are idle.

Why it matters in production

A monolith is not a mistake; it is often the right starting point because it is simple to build, test and run. Teams split out services when one part needs its own scaling, its own release pace or its own team, and the split usually follows team boundaries, as Conway's law predicts.

See also

On the One2N blog

References

  1. MonolithFirst (Martin Fowler)

Diagram of a monolithic architecture: one deploy holds four modules, checkout, payments, search and accounts, all sharing one database below. An arrow leads to ten identical copies of the whole app under the label 10x checkout = 10 copies. In each copy only the checkout cell is green and busy while the other three are grey, and a red label reads idle parts copied too.

Putting this into practice?

Talk to One2N about our backend engineering services

Talk to One2N about our backend engineering services