0
0
Microservicessystem_design~12 mins

Dynamic configuration updates in Microservices - Architecture Diagram

Choose your learning style9 modes available
System Overview - Dynamic configuration updates

This system enables microservices to receive configuration changes dynamically without restarting. It ensures services always use the latest settings for features, limits, or behavior, improving flexibility and uptime.

Architecture Diagram
User
  |
  v
+----------------+
| Load Balancer  |
+----------------+
        |
        v
+----------------+       +-------------------+
| API Gateway    |<----->| Configuration     |
+----------------+       | Management Service|
        |                +-------------------+
        v                        |
+----------------+              v
| Microservice A |<------------+ Cache (Config)   |
+----------------+              |
        |                       v
+----------------+       +-------------------+
| Microservice B |<----->| Configuration DB  |
+----------------+       +-------------------+
Components
Load Balancer
load_balancer
Distributes incoming requests evenly to API Gateway instances
API Gateway
api_gateway
Routes client requests to microservices and handles authentication
Configuration Management Service
service
Manages configuration updates and pushes changes to cache and services
Cache (Config)
cache
Stores latest configuration for fast access by microservices
Configuration DB
database
Persists configuration data reliably for recovery and audit
Microservice A
service
Consumes configuration from cache to adjust behavior dynamically
Microservice B
service
Consumes configuration from cache to adjust behavior dynamically
Request Flow - 8 Hops
UserLoad Balancer
Load BalancerAPI Gateway
API GatewayMicroservice A
Microservice ACache (Config)
Configuration Management ServiceConfiguration DB
Configuration Management ServiceCache (Config)
Configuration Management ServiceMicroservice A
Microservice AMicroservice A
Failure Scenario
Component Fails:Cache (Config)
Impact:Microservices experience slower config fetches as they fallback to Configuration DB; possible increased latency
Mitigation:Microservices retry cache and fallback to DB; Configuration Management Service rebuilds cache from DB; add cache replication for high availability
Architecture Quiz - 3 Questions
Test your understanding
Which component ensures microservices get configuration updates without restarting?
AAPI Gateway
BLoad Balancer
CConfiguration Management Service
DConfiguration DB
Design Principle
This architecture uses a centralized configuration management service with caching and push notifications to enable microservices to update their settings dynamically without downtime, improving system flexibility and responsiveness.