External Configuration Microservice Design Pattern Tutorial with Example...
External Configuration Microservice Design Pattern Tutorial with Examples for Software Developers
In this video we will learn about External Configuration design pattern for microservices. This is the First design principle in Cross-cutting concern design patterns category for microservices.
External Configuration pattern suggest to move configuration information out of the application deployment package to a centralized location. This pattern suggest to Store the configuration information in external storage, and provide an interface that can be used to quickly and efficiently read and update configuration settings. The type of external store depends on the hosting and runtime environment of the application. In a cloud-hosted scenario it's typically a cloud-based storage service or dedicated configuration service, but could be a hosted database or other custom system.
The backing store you choose for configuration information should have an interface that provides consistent and easy-to-use access. It should expose the information in a correctly typed and structured format. The implementation might also need to authorize users' access in order to protect configuration data, and be flexible enough to allow storage of multiple versions of the configuration such as development, staging, or production, including multiple release versions of each one.
Many built-in configuration systems read the data when the application starts up, and cache the data in memory to provide fast access and minimize the impact on application performance.
Using this pattern allows an application to run in multiple environments e.g., development, test, production without any modifications in the application itself. In microservices architectures, systems are split into several services, each one usually running in a separate process. Each process can be deployed and scaled independently, and this means there may be many instances of the same microservice running at a certain time.
Hence, we need external configuration management to fast track of scaling the instances. Let’s say you want to modify the configuration for a microservice that has been replicated a hundred times. If the configuration for this microservice is packaged with the microservice itself, you’ll have to redeploy each of the one hundred instances.
** Usage of this Design Pattern **
1. Use this pattern to share config between multiple applications and instances.
2. Use this pattern to use config from external storage to easy scaling up of services.
3. Use this pattern to avoid redeployment of applications for any config change.
** Advantage of Design Pattern **
1. Easy to manage configuration at centralized storage
2. Easy scaling of services using external configuration.
3. Easy updating config for multiple services.
4. Update config for multiple services without restarting or redeploy of application.
** Chapter Timestamps **
0:00 Welcome to External Configuration design pattern
1:04 Agenda of tutorial
2:17 Introduction of External Configuration design pattern
6:48 External Configuration Architecture
8:01 Real world examples of External Configuration design pattern
10:25 Usage of External Configuration design pattern
11:16 Advantages of External Configuration design pattern
12:31 Summary of External Configuration design pattern
13:17 Next video on Service Discovery design pattern for microservices
#externalconfiguration #designpattern #microservice
** CHECK OUT OUR OTHER VIDEOS **
Shared Database per Service Design Pattern
• Shared Database P...
Difference between Monolithic and Microservice Architecture
• Difference betwee...
Spring boot project setup:
• Spring boot Proje...
Spring Boot Microservice with postgres database Project:
• Spring Boot Micro...
Prepare Docker file, Container and Build Image:
• Docker Tutorial f...
Deploy Docker Image AWS Elastic Container Service:
• Deploy Springboot...
Solid Principle Tutorial
• Solid Principles ...
** CHECK OUR PLAYLISTS **
Microservice Architecture and Microservice Design Patterns Tutorial
• Microservice Arch...
Spring Boot Complete Tutorial
• Spring Boot Tutor...
Docker Containers Complete Tutorial
• Cloud & Container...
Solid Principles Tutorial
• Solid Principles ...
Java Design Pattern Complete Tutorial with Examples
• Java Design Patte...
** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.
Check out our channel here:
/ @codeonedigest
Don’t forget to subscribe!
** OUR WEBSITE **
https://codeonedigest.wordpress.com/
** GET IN TOUCH **
Email us on codeonedigest@gmail.com
Comments
Post a Comment