asoul-fanclub / geek-cache

a distributed read-only cache, based groupcache, using etcd as a registry, supports efficient concurrent reading.
MIT License
12 stars 6 forks source link

明确各实体职责划分 #17

Open Makonike opened 1 year ago

Makonike commented 1 year ago

单独将server提出,单例,只负责对外提供服务,负责接收请求,不负责注册。picker负责注册服务和发现服务的其余节点,一个picker负责维护一个哈希环,groups则负责资源的分类,picker与group是一对多的关系。