A1 · Architecture Styles
Monolithic Architecture
The Power of Unity

Overview
Everything deploys together. One codebase, one deployment unit, one team's domain. Simple operations, straightforward debugging, fast local development. The default choice for good reason.
When to use
- New products finding market fit
- Small teams (< 10 developers)
- Well-understood domains
- Time-to-market pressure
- Limited operational capacity
Quick assessment
- Can your entire team understand the full codebase?
- Is deployment complexity a concern?
- Do features need to scale differently from each other?
- Is independent team autonomy critical?
In practice
How it works
Make it work
Organise by business capability. Let each module control its rules and data access; expose a small internal interface.
The trade-off
Every module shares the release cycle. Weak boundaries turn a local change into a change across the whole application.
Do we need separate releases, or stronger module boundaries?
Key patterns
- Modular monolith (internal boundaries)
- Vertical slices (feature folders)
- Shared database with schemas
- In-process communication
Counter-patterns
- Distributing too early
- Ignoring internal boundaries
- Using monolith as excuse for poor design
- Staying monolithic when team outgrows it
Reality check
Most successful systems started as monoliths. Shopify, Basecamp, and StackOverflow all prove monoliths scale further than you think. Start here unless you have specific reasons not to.
NFR profile
- security
- 4/5
- usability
- 4/5
- performance
- 5/5
- reliability
- 3/5
- scalability
- 2/5
- testability
- 4/5
- availability
- 2/5
- extensibility
- 2/5
- maintainability
- 4/5