1. Command and query in CQRS mode
command does not return a value, but changes the state of the object
Query queries have a return value but do not change the state of the user, there is no side effect
2, in today's actual project, the application of RABBITMQ, which also has the concept of command
In practical applications, command has a return value.
For operations that need to change the state of the object, the command is returned, and the return value is succeeded, and the corresponding event handler is called (processing is based on the return value in command)
That's the question, what's the difference between the command in RABBITMQ and the command in CQRS, where one has a return value and one with no return value?
It is possible that the two expressions are not the same concept at all, although they look like names ...
Two command doubts