1.

How will you use config-server for your development, stage and production environment?

Answer»

If you have 3 different ENVIRONMENTS (develop/stage/production) in your project setup, then you need to create three different config storage projects. So in total, you will have four projects: 

  • config-server 

It is the config-server that can be deployed in each environment. It is the Java Code WITHOUT configuration storage. 

  • config-dev 

It is the git storage for your development configuration. All configuration related to each MICROSERVICES in the development environment will FETCH its config from this storage. This project has no Java code, and t is meant to be used with config-server.

  • config-qa 

Same as config-dev but its meant to be used only in qa environment.

  • Config-prod
    • Same as config-dev, but meant for production environment.
    • So depending upon the environment, we will use config-server with either config-dev, config-qa or config-prod.


Discussion

No Comment Found