You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "z1cheng (via GitHub)" <gi...@apache.org> on 2023/06/06 13:32:36 UTC
[GitHub] [dubbo] z1cheng commented on issue #10596: 统一路由配置(mesh rule方式)兜底策略
z1cheng commented on issue #10596:
URL: https://github.com/apache/dubbo/issues/10596#issuecomment-1578779392
@AlbumenJ Not sure if anyone is working on this issue, so want to try implementing this one.
My implementation:
1. Add an enum `FallbackPolicy`, which contains `RANDOM`, `EXCEPTION`. `RANDOM` will be the default policy to ensure that the existing logic is not changed.
2. Add `fallbackPolicy` as a field to [DubboRoute](https://github.com/apache/dubbo/blob/3.2/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/mesh/rule/virtualservice/DubboRoute.java).
3. Extend the original fallback logic: https://github.com/apache/dubbo/blob/3.2/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/mesh/route/MeshRuleRouter.java#LL216C1-L222C10
Please let me know if you have any suggestions.
--
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