You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2019. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: