advanced
Configuration
Управляйте environment-specific settings, secrets references, feature flags и rollout controls без rebuild service images.
Microservices нуждаются в environment-specific settings, secrets references и feature flags без rebuild images. Central config stores, Kubernetes ConfigMaps и Secrets или dedicated systems (Spring Cloud Config, Consul) push/pull configuration на runtime.
Компромисс: runtime flexibility против auditability и риска нетестированных config combinations в production.
На интервью: отделите config от code; secret rotation без downtime; безопасный feature flag rollout.
Типовые ошибки: secrets в images или git; нет schema для config keys; смена prod config без version control.
Чеклист:
- Externalize config и secrets per environment.
- Validate config при startup с ясными errors.
- Audit changes и rollback.
- Feature flags для risky toggles.