News for hackers. Stuff that matters.
Re:The Idempotency-Key HTTP header field by chrismorgan on Sunday July 04, 2021 @01:31PM (#27731237)
> 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.

Re:The Idempotency-Key HTTP header field by joshribakoff on Sunday July 04, 2021 @04:04PM (#27732215)
Yes you’re right. I meant to write that abstinence from CQ[R]S doesn’t prevent race conditions.