The difference between MQ and WebService, the difference between MQ

Source: Internet
Author: User

Webservice and MQ (MessageQueue) are common means of solving cross-platform communication, what are the differences between them?

personally, the most essential difference is that webservice near real-time communication, while MQ is usually delayed communication. What do you mean? Because WebService is actually the local server program calls the method on the remote server, the interaction between the two, the request needs to wait for the requested server to respond, the other end will be the action, that is, if you request the service server shut down, or interrupted, Then you certainly will not have the answer, your request even if it is lost. And MQ is the equivalent of a middleware I send a request must first be communicated to the Message Queuing component, and then by the Message Queuing component to another server to request, have a response and then return to the original requestor, because the MessageQueue component will persist the message on the local, So even if the sudden crash, the request message is not lost. For example, we have a complex request to generate a report, to generate a report can be quite complicated, so for a few minutes, then we certainly can not wait there, this time using MQ, according to the request report to the requirements of MQ, wait until the receiver processing return, I will receive notification, so it is better. Common MQ components include MSMQ, Apache ACTIVEMQ, and some open source MQ. What is MQ's role in shaving and decoupling?

The difference between MQ and WebService, the difference between MQ

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.