Business rule validators and command handler in CQRS
It’s important to know that commands can be rejected after they are sent to the handler. At the very least, you could encounter a concurrency violation that cannot be detected until the aggregate root is touched. But also, the validation that can occur outside of the entity is simple validation. Not only string lengths, numeric … Read more