@debasishg a question about what comes first, Command or Event.
In the current code the service operations are mapped to a single Event which, in turn is mapped to a Command.
Seems this would not support a functionality where a service operation (logically a Command) would need to generate multiple Events to different Aggregates.
Scenario: funds transfer would update Account balances and update Customer net worth.
Then there is the question of whether the Interpreter is per Aggregate or can work with more than one.
@debasishg a question about what comes first,
Command
orEvent
.In the current code the service operations are mapped to a single
Event
which, in turn is mapped to aCommand
. Seems this would not support a functionality where a service operation (logically aCommand
) would need to generate multipleEvent
s to differentAggregate
s.Scenario: funds transfer would update
Account
balances and updateCustomer
net worth.Then there is the question of whether the
Interpreter
is perAggregate
or can work with more than one.Please advise.