Dubbo Service Call Timeout problem solution

Source: Internet
Author: User

Dubbo The default is to retry two times when the service is not successfully invoked. In this way, when the server processing time exceeds the set timeout time, there will be repeated requests, such as when the e-mail, may be issued multiple copies of the message, the execution of the registration request, will be inserted multiple duplicate registration data, then how to solve the timeout problem? As follows

1. For the core Service center, remove the Dubbo timeout retry mechanism and re-evaluate the setup time-out.

2. The business processing code must be placed on the server side, the client only does the parameter verification and the service call, does not involve the business process processing

Of course Dubbo's retry mechanism is actually very good QoS guarantee, its routing mechanism, will help you to the time-out of the request to the other machine, rather than the local attempt, so the Dubbo retry machine can also be a certain degree of quality assurance service. However, please be sure to combine the online access and give a comprehensive assessment.

Dubbo Service Call Timeout problem solution

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.