Skip to content

Use Cases as a part of Core #752

Answered by ParsaMehdipour
dsenkyr asked this question in Q&A
Discussion options

You must be logged in to vote

In command handlers, it's common to perform tasks beyond the core responsibilities, such as sending emails or interacting with external APIs. These tasks are typically implemented in layers outside the domain.

Implementing commands and command handlers directly in the domain layer introduces dependencies from the domain layer to external layers. To maintain the domain layer's independence from outer layers, it's best practice to keep these implementations separate.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dsenkyr
Comment options

Answer selected by dsenkyr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants