天天看點

bilibili/discovery 介紹與源代碼分析 (一)

bilibili/discovery

github 位址: https://github.com/bilibili/discovery

該庫定性為: 使用 golang 複刻了下 euerka

介紹該庫前,先看下 euerka

euerka

euerka 一個服務發現中間件

與市場上其他産品的比較如下 (摘自 https://www.liangzl.com/get-article-detail-12683.html ) :

Feature Consul zookeeper etcd euerka
多資料中心 支援
kv存儲服務 支援 支援 支援
一緻性 raft paxos raft
cap ca cp cp ap
使用接口(多語言能力) 支援http和dns 用戶端 http/grpc http(sidecar)

繼續閱讀