Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

centralized settings with microservices

Microservices are all about decomposing your system into separate components. However, some things in a system seem like centralized in nature. My concern is about the system settings. In a monolith you have one big file / db with all the parameters, settings and preferences. This can be updated, backup, restore, export, import etc (think about Windows registry). More than this, your customers are used to go to this one "place" and set the system. With microservices architecture this "centralism" seems like an anti pattern.

What are the mechanisms/ frameworks to deal with such contradiction?

like image 503
Lior Cohen Avatar asked Apr 11 '16 07:04

Lior Cohen


People also ask

What is centralized configuration in microservices?

Central configuration server provides configurations (properties) to each micro service connected. As mentioned in the above diagram, Spring Cloud Config Server can be used as a central cloud config server by integrating to several environments.

Which is the Centralised configuration management in Spring?

Microservices – Centralized Configurations With Spring Cloud Config. Spring cloud config is provides externalized configurations for a distributed application. Here I'm going to explain how we can set up a spring cloud configuration server and consume that configuration server with a spring boot microservices project.


1 Answers

Have you already looked at projects like ZooKeeper, etcd or Consul? These can provide facilities to manage your configuration settings and service discovery.

like image 143
Daniel Stefaniuk Avatar answered Oct 25 '22 13:10

Daniel Stefaniuk