Just put aside these two troublemakers(ItemEntity
and FoodEntity
), let’s say there is only one entity, i.e. UserEntity
. The question degrade into this one: how to make sure the subsequent inner command to be delivered to local entity(UserEntity
) to turn the state into next step?
I’ve found some insights from this answer.(EventSourcedBehavior: send command to self from event handler - #2 by johanandren)