Flexible Config Center Design

Design Principal:

1. Split control flow with data config.

2. Configurable?in control flow.

3. Extensible in data config.

4. Multi version data support.

Components:

Pipe Filter:

Cacher:? Cache the result config if needed.

VersionSelector:? Select appropriate version handler to deal with configs.

DataVersionSelector: Decide which version handler to process the request according to data version.

VersionHandler: Process request with current version logic

Assembler:? Assemble the configs and produce the “Hierarchy“.

Assemble rule:? Concrete rule/strategy to assemble configs. e.g. rule to assemble midInfo.

Executor: Execute config merge logic and produce result config according to “hierarchy“ and “configs“.

executor instance: Concrete executor instance to bind with concrete assemblerRule.

Validator: Validate the result config and build error when needed.

Data:

Hierarchy: Define and store relationship of related configs.

Configs:? Define and store all kinds of config. e.g. acquirer-setting, merchant-setting, organization-setting, company-setting, store-setting, application-setting, walletAccount-setting.


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關(guān)閱讀更多精彩內(nèi)容

  • Correctness AdapterViewChildren Summary: AdapterViews can...
    MarcusMa閱讀 9,053評論 0 6
  • 我是黑夜里大雨紛飛的人啊 1 “又到一年六月,有人笑有人哭,有人歡樂有人憂愁,有人驚喜有人失落,有的覺得收獲滿滿有...
    陌忘宇閱讀 8,834評論 28 54
  • 信任包括信任自己和信任他人 很多時候,很多事情,失敗、遺憾、錯過,源于不自信,不信任他人 覺得自己做不成,別人做不...
    吳氵晃閱讀 6,364評論 4 8
  • 步驟:發(fā)微博01-導航欄內(nèi)容 -> 發(fā)微博02-自定義TextView -> 發(fā)微博03-完善TextView和...
    dibadalu閱讀 3,415評論 1 3
  • 回這一趟老家,心里多了兩個疙瘩。第一是堂姐現(xiàn)在談了一個有婦之夫,在她的語言中感覺,她不打算跟他有太長遠的計劃,這讓...
    安九閱讀 3,648評論 2 4

友情鏈接更多精彩內(nèi)容