From the course: Microservices: Design Patterns
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
External configuration
From the course: Microservices: Design Patterns
External configuration
- Externalized configuration in a microservices architecture isn't a hard and fast requirement like it is for cloud native, but its value becomes operationally important when load and movement of services occurs. The value proposition in externalized configuration in microservices is more about the operations than distribution. When you have systems running and issues occur, having a clear spot to see configuration outside of code can greatly impact the meantime to resolution. Externalization of your configuration varies based on your runtime as well as the frameworks being used. Runtimes like Kubernetes and frameworks like Spring have sophisticated models to inject configuration into your application, but many other tools do as well. The key here is to use tooling that makes external environment variables easy to find, as well as manipulate. While it may not seem like a huge deal, consistent naming is also very helpful. Again, always look at operational patterns from the perspective…