聊聊dubbo-go的failbackCluster
序 本文主要研究一下dubbo-go的failbackCluster failbackCluster dubbo-go-v1.4.2/cluster/cluster_impl/failback_cluster.go type failbackCluster struct{} const failback = "failback" func init() { extension.SetCluster(failback, NewFailbackCluster) } // NewFailbackCluster ... func NewFailbackCluster() cluster.Cluster { return &failbackCluster{} } func (cluster *failbackCluster) Join(directory cluster.Directory) protocol.Invoker { return newFailbackClusterInvoker(directory) } failbackCluster的join方法执行newFailbackClusterInvoker newFailbackClusterInvoker dubbo-go-v1.4.2/cluster/cluster_impl/failback_cluster_invoker