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 series
30 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 content

Step by step

Your journey

Follow the recommended order or open any article you want to explore.

30 articles
  1. Domain-Driven Design: what it is, how it works, and how it helps you program with AI19 min
  2. Domain-Driven Design: Ubiquitous Language, from business vocabulary to code7 min
  3. Domain-Driven Design: Model-Driven Design, from business knowledge to code15 min
  4. Domain-Driven Design: Layered Architecture for organizing code and separating responsibilities18 min
  5. Domain-Driven Design: Entities—identity, behavior, and lifecycle16 min
  6. Domain-Driven Design: Value Objects—business concepts through values and immutability16 min
  7. Domain-Driven Design: Domain Services, business logic that does not belong to an Entity16 min
  8. Domain-Driven Design: Modules—cohesion and responsibilities for organizing the domain16 min
  9. Domain-Driven Design: Aggregates—boundaries for protecting rules and consistency16 min
  10. Domain-Driven Design: Factories, object creation and invariants from the start16 min
  11. Domain-Driven Design: Repositories for persisting Aggregates without coupling the domain17 min
  12. Domain-Driven Design: Domain Events, how to represent business facts and decouple processes21 min
  13. Domain-Driven Design: Bounded Contexts—how to define domain boundaries and build independent models.16 min
  14. Domain-Driven Design: Context Mapping, how to design relationships between Bounded Contexts.17 min
  15. Domain-Driven Design: Shared Kernel, when to share the domain model between Bounded Contexts.16 min
  16. Domain-Driven Design: Customer/Supplier, coordinating dependencies and agreements between Bounded Contexts.15 min
  17. Domain-Driven Design: Conformist—when to adapt your model to another Bounded Context's.16 min
  18. Domain-Driven Design: Partnership—how to collaborate across Bounded Contexts with shared objectives and responsibilities.16 min
  19. Domain-Driven Design: Anti-Corruption Layer, protecting the domain from external models and systems.16 min
  20. Domain-Driven Design: Open Host Service—how to design stable integration interfaces between Bounded Contexts.16 min
  21. Domain-Driven Design: Published Language, how to establish contracts and a common language between Bounded Contexts.15 min
  22. Domain-Driven Design: Separate Ways, when it is better to keep Bounded Contexts independent.16 min
  23. Domain-Driven Design: Core Domain, how to identify what truly differentiates your business and prioritize software development.16 min
  24. Domain-Driven Design: Supporting Subdomains, designing capabilities that support the business without overengineering.16 min
  25. Domain-Driven Design: Generic Subdomains, when to reuse existing solutions instead of building from scratch.15 min
  26. Domain-Driven Design: Domain Discovery and EventStorming—how to discover and model the business before writing code.17 min
  27. Domain-Driven Design: Clean Architecture, how to protect the domain model through well-designed dependencies.14 min
  28. Domain-Driven Design: Microservices—how to design services aligned with business boundaries.16 min
  29. Domain-Driven Design: Artificial Intelligence, programming with AI agents without losing architectural judgment16 min
  30. Domain-Driven Design: Practical project, building a complete application from start to finish25 min