QamoosTech
Architecture & DesignPatternsIntermediate

Modular Monolith

PronunciationMOJ-yoo-ler MON-oh-lith

Definition

A modular monolith is a single application, deployed as one unit, whose code is organised into well-separated modules with clear boundaries and limited ways to call each other.

Where you hear it

In architecture discussions about starting simple, "monolith first" advice and migration planning.

Examples

  • We run a modular monolith: billing and members are separate modules in one app.
  • Modules only talk through public interfaces.
  • The orders module calls the billing module only through its public interface.

Common mistake

Letting modules reach into each other's tables or internals. That turns it into a tangled big ball of mud.

Don't confuse with

Microservices, where each module is deployed and scaled separately over a network.

Say it at work

  • In a meeting or chatKeep it a modular monolith until we need to scale parts separately.
  • In an email or ticketEnforce the module boundaries in CI.