Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Distributed Configuration

Central, dynamic configuration for services.

The idea

A config service lets many instances read and update settings without redeploying.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Service AService BCoordination se…Service C
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A small, strongly consistent cluster stores configuration, locks and membership.

step:
1/4
at:
Coordination service (ZooKeeper / etcd)
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Store config centrally
  2. 2Services fetch on start
  3. 3They watch for changes
  4. 4Apply updates safely

Where it is used

Feature flags and settings.

Watch out for

A bad config pushed everywhere is an outage. Roll out gradually.

Related