It is highly advisable that only domain services - not domain entities - are registered as subscribers. Domain services are guaranteed to be instantiated and resident in memory, whereas the same is not true of domain entities. The typical implementation of a domain service subscriber is to identify the impacted entities, load them using a repository, and then to delegate to the event to them.
|
|
|
|