0. 背景
- 遠端緩存 + 遠端熱更新:分佈式的配置中心,從 MySQL 中讀取最新配置;
- 區分環境
- MySQL 讀取配置信息
1. 調研分析
分析,拍着腦袋,猜一下,有幾種方向:
- Spring Cloud 的配置中心,採用 MySQL 中配置,進行更新
- 百度的分佈式配置中心
- 阿里的分佈式配置中心
- 美團的分佈式配置中心
- 其他公司的分佈式配置中心
1.1. 方案彙總
名稱 | 來源 | 原理 | 備註 |
---|---|---|---|
Disconf | 百度開源 | MySQL + ZK | https://github.com/knightliao/disconf |
Apollo | 攜程開源 | HTTP 長輪詢 | https://github.com/ctripcorp/apollo |
Diamond | 阿里開源 | https://github.com/takeseem/diamond | |
diablo | 個人-輕量級 | HTTP 長輪詢 | https://github.com/ihaolin/diablo |
xxl-conf | 點評開源 | MySQL + ZK | https://github.com/xuxueli/xxl-conf |
antelope | 個人 | ZK | https://github.com/believeyrc/antelope |
1.2. 常見問題:diablo
疑問彙總:
- Maven 插件 assembly:assemble.xml 文件的作用?如何使用? http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
- maven-assembly-plugin,Maven 的打包插件
- package-info.java 文件: http://www.cnblogs.com/jiangxinnju/p/5146768.html
Maven 中,插件配置,導致 debug 失效:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--<configuration>-->
<!--<mainClass>me.hao0.diablo.server.DiabloServer</mainClass>-->
<!--<fork>true</fork>-->
<!--<executable>true</executable>-->
<!--</configuration>-->
</plugin>
2. 附錄
2.1. 附錄 A:HTTP polling vs long polling
參考:
- https://www.pubnub.com/blog/2014-12-01-http-long-polling/
- http://www.cnblogs.com/hoojo/p/longPolling_comet_jquery_iframe_ajax.html
- https://www.quora.com/What-is-the-difference-between-polling-and-long-polling-in-simple-terms
- https://community.intersystems.com/post/websockets-vs-long-polling-vs-short-polling
http long polling:
- http://www.cnblogs.com/hoojo/p/longPolling_comet_jquery_iframe_ajax.html
- http://blog.csdn.net/huang9012/article/details/8096561
3. 參考資料
AB Test:
- 點評大規模並行 AB test 框架: http://www.csdn.net/article/2015-03-24/2824303
- 美團推薦系統整體框架和關鍵工作: http://blog.csdn.net/a936676463/article/details/50211693
- 美團如何對產品做 AB test: http://blog.csdn.net/weiguang_123/article/details/49203239
- Google 如何通過 AB 測試驅動產品優化: http://www.pmcaff.com/article/index/302521404167296
- 分層實驗架構: http://blog.jqian.net/post/exp-sys.html
- 十分鐘瞭解分層實驗: https://yq.aliyun.com/articles/5837
- Google 重疊實驗框架:更多,更好,更快地實驗: http://www.csdn.net/article/2015-01-09/2823499
- 微博廣告分層實驗平臺(Faraday)架構實踐: http://www.infoq.com/cn/articles/weibo-ad-layered-experiment-platform-faraday
配置中心:
- 開源分佈式配置中心選型
- 百度開源 Disconf:分佈式配置管理平臺: http://disconf.readthedocs.io
- 阿里 Diamond:http://jm.taobao.org/2016/09/28/an-article-about-config-center/
- 服務化體系之-配置中心,在ZK或etcd之外: http://calvin1978.blogcn.com/articles/serviceconfig.html
- 說說配置中心那點事
其他驚喜:
- http://www.pmcaff.com/ 產品、項目管理、風險管控流程,一個很不錯的社區
- http://www.liaoqiqi.com/resume 有意思的人,而且是 Disconf 的作者
微服務資料: