Offloading microservice settings to a configuration server
One thing that quickly adds up when building a microservice-based solution are all the properties that must be managed. It's one thing to manage a single application's application.yml
file, and make tweaks and adjustments. But working with all these services, and having to jump to the correct file underneath each application's src/main/resources
folder quickly becomes daunting. On top of that, when trying to make changes or adjustments, it is easy to overlook the settings of one microservice.
A key piece of the twelve-factor app (https://12factor.net/) is externalizing configuration. We already took a big step using Spring Boot's powerful property support. But Spring Cloud brings another key technology to the table that takes property support to the next level--Spring Cloud Config Server.
The Config Server let's us put all the properties into a centralized location, and feed them via an application to our existing microservices.
To...