Section 2

Architectural Patterns

DDD, microservices, event-driven architecture, serverless, multi-tenancy. The vocabulary of modern SaaS architecture.

10 lessons ยท ~1.6 h reading

Domain-Driven Design

2.1

Domain-Driven Design

9 min โ†’

The strategic + tactical framework for turning business reality into software. Bounded contexts, ubiquitous language, and the bridge between problem and solution space.

2.2

Tactical DDD

10 min โ†’

The building blocks inside a bounded context โ€” entities with behavior, value objects, aggregates, domain services. Trading anemic models for rich ones.

2.3

Strategic DDD

12 min โ†’

The boundaries between contexts and the patterns for integrating them. Domains, sub-domains, bounded contexts, context maps, and the seven integration patterns.

Architectural Styles

2.4

Modern Architectural Styles Overview

7 min โ†’

A tour of the architectural styles in modern use โ€” traditional and modern โ€” and how to combine them in a multi-tenant SaaS platform.

2.5

Modular Monoliths

9 min โ†’

The pragmatic middle ground โ€” clean module boundaries inside a single deployable unit. The architecture Shopify, GitHub, and Basecamp run at scale.

2.6

Microservices

12 min โ†’

Independent services aligned to business capabilities. The benefits, the costs, the boundary problem, and what the industry has learned after a decade of doing this.

2.7

Event-Driven Architecture, CQRS & Sagas

10 min โ†’

From request/response to events. EDA, CQRS, event sourcing, and saga patterns for distributed transactions in multi-tenant SaaS.

2.8

Reactive Architecture

8 min โ†’

Responsive, resilient, elastic, message-driven systems. The four principles of the Reactive Manifesto and how they apply to multi-tenant SaaS at scale.

2.9

Serverless

8 min โ†’

Functions-as-a-Service. Pay-per-execution, autoscaling, no infrastructure to manage. Where it shines, where it bites, and the cold-start trade-off.

2.10

Multi-tenancy

11 min โ†’

One application instance, many tenants. Isolation models, tier-based service levels, noisy-neighbor mitigation, and the operations of a SaaS platform.

Start with 2.1 โ†’