3 ms·
Commands that return data are called queries. You shouldn't change the state when running a query, so there's no reason to call them commands.
by fagnerbrack 9y ago
Commands that return data are called queries. You shouldn't change the state when running a query, so there's no reason to call them commands.
- fallous 9y agoI've already stated that a query shouldn't necessarily result in a change of state, but a command to return data is still a command and there's every reason to call them that because they result in work performed.
- fagnerbrack 9y agoI guess at this point we're just arguing about etymology. The important bit is to differentiate between read/command/queries and write/commands, whatever those names may be. Anyway, I just didn't touch queries in this post cause it would make it longer than 5 minutes. I have a follow-up draft.