Are CQRS/DDD/Event Sourcing and REST compatible?
- by Robin Green
REST seems to promote the idea of a canonical URL for a resource, and PUTing/POSTing back a modified representation of that resource in order to change it.
However, with CQRS - Command Query Responsibility Segregation - one can theoretically have a completely different "API" for reading and for writing, which seems to conflict with the REST ideal of one URL for a resource, and no RPC-style "verbs inside the request body".
DDD and Event Sourcing sometimes go together with CQRS, which is why I mention them in this question.
So, can CQRS be used together with REST? Or is it against the REST way of doing things?
What about DDD? And Event Sourcing? Can they be used with REST?