Are CQRS/DDD/Event Sourcing and REST compatible?
Posted
by
Robin Green
on Programmers
See other posts from Programmers
or by Robin Green
Published on 2013-09-04T11:43:09Z
Indexed on
2013/11/03
16:10 UTC
Read the original article
Hit count: 500
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?
© Programmers or respective owner