天天看点

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)

继续阅读