Dubbo集群容错源码分析

2019-04-04  本文已影响0人  蜗牛DWade

简介

时序图

image.png

服务字典

  1. 继承体系


    Directory的继承图.jpg
  2. 源码分析
public List<Invoker<T>> doList(Invocation invocation) {
....
 List<Invoker<T>> invokers = null;
        try {
            // 从缓存中获取调用器,只执行运行时路由器
            invokers = routerChain.route(getConsumerUrl(), invocation);
        } catch (Throwable t) {
            logger.error("Failed to execute router: " + getUrl() + ", cause: " + t.getMessage(), t);
        }
   return invokers == null ? Collections.emptyList() : invokers;
....
}
上一篇 下一篇

猜你喜欢

热点阅读