Two command doubts

Source: Internet
Author: User
Tags rabbitmq

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.