Hi all,
I’m designing part of a bounded context and have an entity that deals with a customer search that is in itself a long running process.
There are two types of search, one that requires media such as an image and another that doesn’t.
Two questions spring to mind:
Firstly, how should I kick off the long-running process from within the aggregate or from an external stimulus (I could have my command handler call a start search method if that would be the best idea)? As a follow-up, should my aggregate even managethe search process?
Secondly, should I have an aggregate for each type of search? The only difference from a domain experts point of view is one type requires media and the other doesn’t.
Any help appreciated.
Kind regards
Sean.