it:ad:ddd:dtos

IT:AD:DDD:DTOs

Summary

We uncouple Client Apps (ie Consumers) from the Domain via the Layer and convert Domain Entities to DTOs in the Layer to protect Clients from Domain Entity Version Changes.
We use the Adapters to create chunky DTOs at the Layer to reduce chatter through the Layer

  • Entity→DTOs Adapters are defined in the Layer

* DTOs are chunky, for course-grain operations. * Design DTOs from the Consumer's point of view. Not the Emitters (App or Domain) * DTO Adapters should be in the Layer, and not the Layer so that it can be used for the Presentation Layer as well – who should not be forced to go through the Service Layer.

  • /home/skysigal/public_html/data/pages/it/ad/ddd/dtos.txt
  • Last modified: 2023/11/04 03:23
  • by 127.0.0.1