Henrik--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Henrik--
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
What happens if the power goes out or you have an unexpected failure on one?
On Tuesday, April 30, 2013, Dan Barua wrote:
I have a similar similar scenario where I need to create a new Account and then either register new users or grant existing users access to the new account - I inject the message bus into the command handler and dispatch secondary commands from there. It's easy to test because you can capture and assert on any secondary commands that are issued in response to the primary command.--
On Tuesday, 23 April 2013 21:00:44 UTC+1, Henrik Møller Rasmussen wrote:HiI'm using command and a command queue in my application. I have a screen in which a user can input information to create multiple related aggregates (Company and User).I have a CreateUserAndCompanyCommand with all the form information. How would you handle this situation if you were to follow the rules of only modifying one aggregate per transaction?I guess a SAGA could do the job. But would you find it an acceptable solution to fx create the company in the first command handler and then based on the success of that command create a new command (CreateAndAssignUserToCompanyCommand) - and so on? In other words - are there any drawbacks in handling one command can create new commands?
Thanks for your input.Best regardsHenrik
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.