Distributed configuration

Configuration management with Zookeeper is pretty similar to that described for Spring Cloud Consul Config. By default, all the property sources are stored in the /config folder (or znode in Zookeeper nomenclature). Let me point it out one more time. Assuming we have the spring.application.name property set to order-service in the bootstrap.yml file, and the spring.profiles.active running argument set to zone1, it tries to locate the property sources in the following order: config/order-service,zone1/, config/order-service/, config/application,zone1/, config/application/. Properties stored in the folder with the prefix config/application in the namespace are available for all applications that use Zookeeper for distributed ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.