Architecture

Structuring a modular monolith

A modular monolith is one deployable application with clear internal boundaries. How to structure it so you can split it later if you need to.

GloryTekSystems team26 May 2026 2 min read

Sketching a project flow on a whiteboard

A modular monolith is a single application, built and deployed as one unit, whose code is divided into modules with clear boundaries. It keeps the operational simplicity of a monolith while avoiding the tangle that makes many monoliths hard to change. For most new products it is the right place to start.

Organise by business capability

Structure the code around what the business does, such as orders, billing, catalogue and customers, rather than around technical layers like controllers and repositories. Each module owns its data, its rules and its public interface.

Rules that keep boundaries real

  • Modules talk through defined interfaces or events, never by reaching into each other’s tables
  • Each module owns its database tables or schema
  • Shared code is limited to genuinely generic utilities
  • Dependency rules are checked automatically in the build

Splitting later

If a module later needs to scale on its own, be deployed by a separate team or use different technology, a clean boundary makes extracting it into a service a contained piece of work. Without boundaries, the same move becomes a rewrite.

Written by the GloryTekSystems team

Our engineers and consultants write about what they see in real projects. Have a question about your own systems?

Ask us
GloryTek assistantQuick answers · automated

Hi, I’m the GloryTek assistant. Ask me about our services, pricing, timelines or industries.

Popular pages

↑↓ to move to open Esc to close