FailMode

    rpcx has three fail modes to handle invocation failures and you can set it when create XClient.

    FailMode is meaningful only for sync call ().

    Example:failfast

    Example:

    In this mode, rpcx will try another nodes if it gets a failure. it will try retries until the service returns normal response. The retries is defined in and it is 3 in the defaultOption.

    Example:failtry

    Example:

    In this mode, rpcx will send another request to one of servers if the first request has not returned in a given time. rpcx uses the the fastest returned response of the two requests. The given time is configured in .

    If you want to learn more details about backup request pattern, you can read Jeff Dean's Achieving Rapid Response Times in Large Online Services