Domain events are well known in DDD, which can be published in Aggregate Roots or in Domain Services. My question here is, Can domain events be published in application services/use cases?
For example, simplifying. I have an application service called UseCaseA
, which performs various operations calling some aggregate roots. If I want to raise an event when this use case ends, could I publish the UseCaseAFinished
event within this application service? Is it a domain event or should it be called an application event? Does application event terminology exist in DDD?
Thanks in advance.