Re: Validation in CQRS Journey Conference project
"wonderfulworldofpingpong" <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
The conflict will happen if two users create the same conference. --- In [email protected], Mauro Servienti <mauro@...> wrote: > > What you are describing is a workflow/saga, that is async, and works pretty fine in your scenario. > The only scenario where things get complicated is when, as you noticed, validation involves more BCs. > In this case is the entry point BC that can take a decision: > > - Create Conference: Is there already a conflicting create conference process? > > o Yes: fail immediately; > > o No: start the creation process; > > ? ValidateRequest; > > ? ....and so on; > > .m ------------------------------------