Dubbo service is degraded and failed. How to retry?

Alibaba cloud Q & A 2022-02-13 07:49:49 阅读数:43

dubbo service degraded failed. failed

Dubbo service degradation , Fail to try again how to do ?

Take the answer 1:

Can pass dubbo:reference Set in mock=“return null”.mock The value of can also be changed to true, Then implement one in the same path as the interface Mock class , The naming rule is “ The name of the interface +Mock” suffix . And then in Mock Class to implement their own degradation logic

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130749487201.html