0

Also How do you distinguish between a Domain Command and Domain Service?

MHOOS
  • 4,918
  • 11
  • 38
  • 67

1 Answers1

0

A domain service is a service that services objects strictly related to the domain and operates on objects related to the domain - that deal with modelling the business / problem.

Infrastructure services deal with infrastructure, so services that support and build around domain services. A good example of this would be a repository. A repository is infrastructural because its role is to serve the domain, serve domain objects.

Domain = entities & associated behaviours.

KnowHoper
  • 4,180
  • 2
  • 36
  • 47