Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Question: Separating Commands and Queries #106

Open
lutzh opened this issue Jan 25, 2019 · 0 comments
Open

Question: Separating Commands and Queries #106

lutzh opened this issue Jan 25, 2019 · 0 comments

Comments

@lutzh
Copy link

lutzh commented Jan 25, 2019

It seems in the design of this example, the separation of operations that mutate the persistent entity and the ones that query the state of it, is rather lax. E.g. placing a bid also return the current price.

What is the authors' take on separating commands and queries (CQS) when it comes to Lagom persistent entities?
It seems some CQRS proponents on the internet suggest following this rather strictly, e.g. a command that mutates the state should only result in an acknowledgement, not in business data being returned.

If we were to follow that, to query the state, either the read side or in the Lagom case also ReadOnlyCommands should be used, but not commands that also mutate the state.

Is Lagom opinionated in the same way, or is it considered good practise to return e.g. the updated state from the command handler?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants