StackPractices

Tag: domain-driven-design

Browse 8 practical software engineering resources tagged with "domain-driven-design". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving domain-driven-design. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.

Domain-Driven Design Patterns

Domain-driven design patterns help model complex business logic in code. They separate core domains from supporting domains and keep business rules close to the data they govern.

The resources below cover entities, value objects, aggregates, domain services, repositories, and domain events. Each guide shows how to build a domain model that reflects real-world business behavior.

Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.

Aggregate Pattern

Encapsulate a cluster of domain objects treated as a single unit for data changes. An Aggregate...

Clean Architecture

A practical guide to Uncle Bob's Clean Architecture: organize code into layers so that frameworks,...

Modular Monolith: Module Boundaries, Shared Kernel

Design a modular monolith with clear module boundaries, a shared kernel, dependency rules, and a...

CQRS — Command Query Responsibility Segregation

A complete guide to CQRS: separate read and write models to optimize performance, scalability, and...

Domain-Driven Design (DDD): A Practical Guide

Learn DDD fundamentals: bounded contexts, entities, value objects, aggregates, and how to model...

Hexagonal Architecture — Ports, Adapters, and Testability

A complete guide to Hexagonal Architecture (Ports and Adapters): structure applications so domain...

Modular Monolith — A Pragmatic Architecture

A practical guide to Modular Monoliths: combine the simplicity of monoliths with the modularity of...

Onion Architecture Guide: Domain-Centric Design with Dependency Inversion

A practical guide to Onion Architecture: organize code around the domain, enforce inward...