Architecture Styles
Comprehensive reference for all major architectural styles — from monoliths to event-driven systems, covering when to apply each, trade-offs, and migration paths.
Monolith Architecture
A single deployable unit — when it's the right choice and how to keep it well-structured as it grows.
Modular Monolith
Enforced internal boundaries within a monolith — simplicity now with migration flexibility later.
Microservices Architecture
Independently deployable services aligned to business capabilities — autonomy, isolation, and scaling trade-offs.
Service-Oriented Architecture (SOA)
Coarse-grained services with strong integration orientation for enterprise and legacy integration.
Event-Driven Architecture
Components communicate through events — enabling decoupling, scalability, and asynchronous processing.
Hexagonal Architecture
Business logic isolated from infrastructure via ports and adapters — for testability and replaceability.
Clean Architecture
Concentric layers separating business rules from frameworks and external systems.
Onion Architecture
Domain-centric layering where all dependencies point inward toward the domain model.
CQRS Pattern
Separating read and write models when read and write workloads have very different requirements.
Event Sourcing
Persisting state as a sequence of events for auditability, replay, and temporal reconstruction.
Serverless Architecture
Managed compute with event-triggered execution — for intermittent or bursty workloads.
Peer-to-Peer Systems
Nodes coordinate without a central controller — for distribution, resilience, and trust minimization.
Data Mesh Architecture
Domain-owned data products as a distributed approach to analytical data management.
Space-Based Architecture
Distributing processing and storage across multiple nodes using in-memory data grids.