LD is tigger forever,CG are not brothers forever, throw the pot and shine forever.
Modesty is not false, solid is not naive, treacherous but not deceitful, stay with good people, and stay away from poor people.
talk is cheap, show others the code and KPI, Keep progress,make a better result.
Survive during the day and develop at night。
目录
概 述
1、Apollo配置中心总体设计
备注:一个 Namespace 对应一个 RemoteConfigRepository 。多个 RemoteConfigRepository ,注册到全局唯一的 RemoteConfigLongPollService 中
1.Client初始化后没5分钟定时向Config-Service同步配置;
2.同时向RemoteConfigLongPollService 注册长轮循,向Config-Service发起长轮循(长轮循参考)
3.用户更新发布配置后通知Admin-Service(入库)
4.Admin-Service每秒500条获取更新配置,推送Config-Serivce(监听者们),监听者设置第2步的返回值结束长轮循,Client接收到通知实时查询Config-Serivce变更的配置,放入内存
小结
主要根据Spark 面试问题总结问题。
参考资料和推荐阅读
1.链接: 参考资料.