Centralized Configuration
In this chapter, we will learn how to use Spring Cloud Config Server to centralize managing the configuration of our microservices. As already described in Chapter 1, Introduction to Microservices, an increased number of microservices typically comes with an increased number of configuration files that need to be managed and updated.
With Spring Cloud Config Server, we can place the configuration files for all our microservices in a central configuration repository, which will make it much easier to handle them. Our microservices will be updated to retrieve their configuration from the configuration server at startup.
The following topics will be covered in this chapter:
- Introduction to Spring Cloud Config Server
- Setting up a config server
- Configuring clients of a config server
- Structuring the configuration repository
- Trying out Spring Cloud Config Server