Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Can we issue a command in a domain model? #326

Open
babjo opened this issue Aug 28, 2021 · 0 comments
Open

[Question] Can we issue a command in a domain model? #326

babjo opened this issue Aug 28, 2021 · 0 comments

Comments

@babjo
Copy link

babjo commented Aug 28, 2021

Normally, as far as I know, a domain event is issued when domain model's state is changed. However, in ch13, there's reallocation flow, a command (Allocate command) is emitted in product.change_batch_quantity(). I guess you did it in order to exactly tell the allocation is needed, but it seems uncommon in my view. Were there more reasons to choose to issue the command? According to this commit, you might've had the consideration like me 😂 .
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant