4 ms·
CQRS doesn’t obviate race conditions. Especially if multiple commands can be in flight at the same time (the response can still be received out of order), or if
by joshribakoff 5y ago
CQRS doesn’t obviate race conditions. Especially if multiple commands can be in flight at the same time (the response can still be received out of order), or if there are multiple clients mutating the same resource.
- chrismorgan 5y ago> CQRS doesn’t obviate race conditions. I think you may be talking at cross purposes with me here. I’m saying that command–query separation¹ causes race conditions. Having the mutating API return state is the only way to obtain the value of the resource at the time of mutation. — ¹ CQS; CQRS, where you use different representations for command and query, is not necessarily applicable here.
- joshribakoff 5y agoYes you’re right. I meant to write that abstinence from CQ[R]S doesn’t prevent race conditions.