The following diagram shows the updated implementation of Microservice A and Service Consumer with Spring Cloud Config. In the following diagram, we will integrate Microservice A with Spring Cloud Config in order to retrieve its configuration from the local Git repository:
Implementing Spring Cloud Config entails the following steps:
- Set up the Spring Cloud Config server.
- Create a new service in Microservice A to return some information from the application configuration. We would use this service to test whether we are able to pick up configuration from the Spring Cloud Config server.
- Set up a local Git repository and connect it to the Spring Cloud Config server.
- Update Microservice A to use the configuration from Cloud Config Server by using Spring Cloud Config Client.