Transient fault handling and retry logic: instant error handling-retry

Source: Internet
Author: User
1. What is transient fault?

Transient fault: I thought about how to translate this phrase for a while. It is also called an instant error. For example, a large number of projects now use WCF. If the connection times out due to transient network interruption or sudden increase in network load, in this case, the most direct way is to tell the customer that the submission failed. But this is not the result we really want. Because these errors are usually short-lived and recoverable, we only need to manually or automatically submit them again, retry again, you can submit the request normally. Another example is that in the SQL Server ha environment, although the high availability of SQL Server Enables automatic server switching and other security measures, the transaction commit exception caused by automatic server switching, we need to handle the exception by ourselves. If no exception is handled well, only crash or data is lost. ForHigh AvailabilityProgramThe retry logic should be implemented at the service call layer (WCF) and database access layer to process the transient fault.

2. Patterns & Framework

Because I am not a good guy, I naturally ask Google to find two available frameworks.

1. SQL fault retry provider

This project provides an example of how to create a high-availability application, especially in the SQL indexing environment. And provides a retry operation.DATA provider.

2. Transient fault handling framework

This framework comes from Microsoft's Windows azure appfabric customer Advisory Team (CAT) team. This framework provides a reusable framework for processing retry logic in different scenarios of a program. Retry is required when you use SQL Azure, Windows azure storage (queues, blobs, tables), Windows azure service bus, and Windows azure caching service.

 

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.