I have a question about application services in DDD. For example, I have a rule that when a user confirms registration, the following actions are performed:
- The user account has been updated so that he can log in.
- User balance is initialized.
- The user receives a confirmation letter of registration confirmation.
Considering the SecurityAppService application service, can it contain the following workflow when calling the ConfirmRegistration() method:
- Call the SecurityService domain to update the user account.
- Call AccountingService domain to initialize user balance.
- EmailService call infrastructure for sending email to the user.
The question is as follows. Is AccountingService call legal with SecurityAppService? Or should I include this in the SecurityService call?
source share