Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. # Domain Driven Design (DDD)
  2.  
  3. ### Model Driven Design:
  4. 1. Concentrate all the code related to the domain model in one layer and isolate it from the user interface, application, and infrastructure code.
  5. 2. It is important to divide the application into different layers such as:
  6. - User Interface(Presentation Layer)
  7. - Application Layer- doesnt contain business logic but hold the application task progress
  8. - Domain Layer - heart of the system, state of the business objects is held here.
  9. - Infrastructure Layer: supports communication between layers and does persistence work and also contain supporting libraries.
  10.  
  11. ### Entities:
  12. Objects with identity which remain same throughout the system and provide continuity. For eg: Bank Account for the Person Class.
  13. There is performance implications in making all objects entities. There has to be one instance for each object.
  14.  
  15. ### Value Objects:
  16. These objects don't have any identity but is used to describe certain aspects of a domain are value objects.
  17. They are highly recommended to be immutable. Being immutable and having no identity, Value Objects can be shared.
  18.  
  19.  
  20.  
  21.  
  22.  
  23. <!--stackedit_data:
  24. eyJoaXN0b3J5IjpbNjY2ODA3NTI1LDczNTk5ODQ0MywtMTYzMz
  25. I1NTM1NywzMjQ0OTIyOTksLTEyOTE5NTI0NjYsLTYyNDY2MDc2
  26. OF19
  27. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement