how to design REST API to ask server to wait for resource version to arrive on GET requests?
Solution 1:
Since a PATCH
request allows a response body, to my mind there's nothing wrong with the response including the object after patching. The requestor who sent the PATCH
can use the response in lieu of a GET
; for others, the eventual consistency delay for the GET
isn't observable (since they don't know when the PATCH
was issued).
CQRS means to not contort your write model for the sake of reads. If there's a read that is easily performed based on the write model, that read can be done against the write model.