Design centralized configuration for microservices: key-value and hierarchical settings with environment dimensions (dev/stage/prod), versioning, and rollback. Clients pull config on startup and subscribe to changes for hot reload where safe.
Functional requirements
- Store namespaces of config keys with typed values
- Version each change with author and diff; roll back to prior version
- Scope values by application, environment, and optional region
- Push or poll notifications to clients when values change
Non-functional requirements
- High read availability; writes are less frequent
- Access control so only authorized services read secrets
- Encryption for secret material at rest and in transit