Skip to main content

Domain-Driven Design pHP TRAINING TRIVANDRUM

Domain-Driven Design



Ubiquitous language

Layers

DDD_layers
Eric Evans, 2003

Bounded contexts

  1. The bigger the code base a developer has to work with, the bigger the cognitive load, the more difficult it is to understand the code, and therefore the possibility of introducing bugs and errors in judgement;
  2. The more developers work on the same codebase, the more difficult it is to coordinate efforts and have a common technical and domain vision of the application.
fig_7_27_subsystems
Ivar Jacobson, 1992

Anti-Corruption Layer

  1. Adapting subsystems APIs to what the client subsystems need;
  2. Translating data and commands between subsystems;
  3. Establish communication in one or several directions, as needed
fig_14_8_anticorruption_layer
Eric Evans, 2003

Shared Kernel

Generic Subdomain

Conclusion

Sources

Comments