April 2018
Intermediate to advanced
432 pages
10h 38m
English
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 ...