- Mastering Spring Cloud
- Piotr Minkowski
- 143字
- 2021-08-27 18:57:01
Apache Zookeeper
The next popular solution within this area supported by Spring Cloud is Apache Zookeeper. Following its documentation, it is a centralized service for maintaining configuration, naming, which also provides distributed synchronization, and is able to group services. Everything that has previously applied to Consul regarding support in Spring Cloud is also true for Zookeeper. I'm thinking here about simple common annotations, which have to be used to enable integration, configuration though properties inside settings files and auto-configuration for interacting with Ribbon or Zuul. To enable service discovery with Zookeeper on the client side we need not only include spring-cloud-starter-zookeeper-discovery, but also Apache Curator. It provides an API framework and utilities to make integration easy and more reliable. It is not needed for distributed configuration clients where we only have to include the spring-cloud-starter-zookeeper-config for our project dependencies.