0

I am planning to use consul for storing key/value(configuration) for microservices, Now initially we stored the configuration(key and value) in JSON file, however since i am moving the value to consul , what is the best practice to store keys in microservices config, since the micorservices needs to be aware of which keys to access.
Also what key format should i use to differentiate between global setting in consul(the settings shared between different microservices) and private settings of individual microservices.

4

1 回答 1

0

在“全局”键下创建一个 JSON,使用它需要的 JSON 数据为其名称下的每个服务创建一个键。为每项服务使用这两个密钥。

于 2019-11-23T10:00:33.660 回答