How do you manage externalized configuration across many services, and what are the trade-offs of centralized versus per-service configuration?
Last updated
Load config at runtime: env vars or ConfigMaps for non-secrets, a secret store (e.g. Vault) for secrets, and a central config server (Spring Cloud Config, Consul) or GitOps repo for shared values.
Centralized config gives one source of truth and easy auditing, but becomes a shared dependency where one bad change breaks many services. Per-service config gives autonomy and isolated blast radius, but risks duplication and drift.
Common pattern: centralize shared values and secrets, keep service-specific tuning local with sensible defaults.