Article series
Domain-Driven Design
Learn to design software that reflects business rules. This series explores Domain-Driven Design, from ubiquitous language and bounded contexts to modeling entities, value objects, and aggregates, and integrating contexts. You will find code examples, design decisions, common mistakes, and suggestions for working with AI with better judgment.
Complete series30 articles available487 min estimated reading time
Start series What you will learn
- Understand the problems DDD addresses and recognize when to apply it.
- Build a shared language between business and development.
- Identify subdomains and define bounded contexts with clear responsibilities.
- Model entities, value objects, and aggregates that protect business rules.
- Organize model creation and persistence using factories and repositories.
- Represent relationships between contexts and choose integration strategies.
- Apply the concepts to complete backend and frontend workflows.
- Guide work with AI using explicit boundaries and rules, and critically review generated code.
Before you start
Basic knowledge of programming, functions, classes, and interfaces. Experience working with an API and a database is recommended. The examples use TypeScript. You do not need to master the language or have previous experience with Domain-Driven Design.
Free, openly accessible contentStep by step
Your journey
Follow the recommended order or open any article you want to explore.
30 articles
- Domain-Driven Design: what it is, how it works, and how it helps you program with AI19 min
- Domain-Driven Design: Ubiquitous Language, from business vocabulary to code7 min
- Domain-Driven Design: Model-Driven Design, from business knowledge to code15 min
- Domain-Driven Design: Layered Architecture for organizing code and separating responsibilities18 min
- Domain-Driven Design: Entities—identity, behavior, and lifecycle16 min
- Domain-Driven Design: Value Objects—business concepts through values and immutability16 min
- Domain-Driven Design: Domain Services, business logic that does not belong to an Entity16 min
- Domain-Driven Design: Modules—cohesion and responsibilities for organizing the domain16 min
- Domain-Driven Design: Aggregates—boundaries for protecting rules and consistency16 min
- Domain-Driven Design: Factories, object creation and invariants from the start16 min
- Domain-Driven Design: Repositories for persisting Aggregates without coupling the domain17 min
- Domain-Driven Design: Domain Events, how to represent business facts and decouple processes21 min
- Domain-Driven Design: Bounded Contexts—how to define domain boundaries and build independent models.16 min
- Domain-Driven Design: Context Mapping, how to design relationships between Bounded Contexts.17 min
- Domain-Driven Design: Shared Kernel, when to share the domain model between Bounded Contexts.16 min
- Domain-Driven Design: Customer/Supplier, coordinating dependencies and agreements between Bounded Contexts.15 min
- Domain-Driven Design: Conformist—when to adapt your model to another Bounded Context's.16 min
- Domain-Driven Design: Partnership—how to collaborate across Bounded Contexts with shared objectives and responsibilities.16 min
- Domain-Driven Design: Anti-Corruption Layer, protecting the domain from external models and systems.16 min
- Domain-Driven Design: Open Host Service—how to design stable integration interfaces between Bounded Contexts.16 min
- Domain-Driven Design: Published Language, how to establish contracts and a common language between Bounded Contexts.15 min
- Domain-Driven Design: Separate Ways, when it is better to keep Bounded Contexts independent.16 min
- Domain-Driven Design: Core Domain, how to identify what truly differentiates your business and prioritize software development.16 min
- Domain-Driven Design: Supporting Subdomains, designing capabilities that support the business without overengineering.16 min
- Domain-Driven Design: Generic Subdomains, when to reuse existing solutions instead of building from scratch.15 min
- Domain-Driven Design: Domain Discovery and EventStorming—how to discover and model the business before writing code.17 min
- Domain-Driven Design: Clean Architecture, how to protect the domain model through well-designed dependencies.14 min
- Domain-Driven Design: Microservices—how to design services aligned with business boundaries.16 min
- Domain-Driven Design: Artificial Intelligence, programming with AI agents without losing architectural judgment16 min
- Domain-Driven Design: Practical project, building a complete application from start to finish25 min