You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/07 09:29:49 UTC

[GitHub] [dubbo] wangchengming666 commented on issue #8710: FAIL_OVER和FAIL_BACK 区别

wangchengming666 commented on issue #8710:
URL: https://github.com/apache/dubbo/issues/8710#issuecomment-914146565


   FAIL_OVER我的理解是,当我们的应用是集群模式,请求当出现失败的时候,会尝试集群中其他节点。用户可以通过retries="2"设置重试次数。这是Dubbo的默认容错机制,会对请求做负载均衡。通常使用在读操作或者幂等性写操作上,但是重试操作会导致接口的延迟增大,在下游机器负载已经到达极限的情况下,重试会增加下游机器的负载。
   
   FAIL_BACK我的理解是请求失败之后,会自动记录失败的请求,并由RetryTimerTask定时重试,适用一些异步或者最终以执行的请求,官方也在javaDoc中写道:Especially useful for services of notification.适合消息通知的场景


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org