SpringOne2GX 2014 Replay: Centralized Application Configuration with Spring and Apache ZooKeeper
Join the DZone community and get the full member experience.Join For Free
Recorded at SpringOne2GX 2014.
Speaker: Ryan Gardner, Dealer.com
Core Spring Track
Application configuration is an evolution. It starts as a hard-coded strings in your application and hopefully progresses to something external, such as a file or system property that can be changed without deployment. But what happens when other enterprise concerns enter the mix, such as audit requirements or access control around who can make changes? How do you maintain the consistency of values across too many application servers to manage at one time from a terminal window? The next step in the application configuration evolution is centralized configuration that can be accessed by your applications as they move through your various environments on their way to production. Such a service transfers the ownership of configuration from the last developer who touched the code to a well-versed application owner who is responsible for the configuration of the application across all environments. At Dealer.com, we have created one such solution that relies on Apache ZooKeeper to handle the storage and coordination of the configuration data and Spring to handle to the retrieval, creation and registration of configured objects in each application. The end result is a transparent framework that provides the same configured objects that could have been created using a Spring configuration, configuration file and property value wiring. This talk will cover both the why and how of our solution, with a focus on how we leveraged the powerful attributes of both Apache ZooKeeper and Spring to rid our application of local configuration files and provide a consistent mechanism for application configuration in our enterprise.
Published at DZone with permission of Pieter Humphrey, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
How To Use Geo-Partitioning to Comply With Data Regulations and Deliver Low Latency Globally
Manifold vs. Lombok: Enhancing Java With Property Support
Hiding Data in Cassandra
Docker Compose vs. Kubernetes: The Top 4 Main Differences