What is the Externalized Configuration Pattern? In simple terms the Externalized Configuration pattern consists of defining a dedicated secure data store in charge of handling of the values we need for our application in a secure way, those values typically include things such as credentials, keys or tokens that must not be made available in plain text.
In Go there are multiple ways to define configuration, some examples include:
■ Using CLI Parameters or Flags,
■ Using Property or Configuration Files, or
■ Using Environment Variables (my recommendation)
Using Environment Variables is the recommended way to define configuration values because it allows you to clearly separate the configuration from the application and the way it's being executed.
== Relevant links
■ Blog Post: Secure Configuration with Environment Variables and AWS SSM: https://mariocarrion.com/2019/11/20/g...
■ Golang Microservices: Configuration, Environment Variables and Vault • Golang Microservices: Configuration, ...
■ Example code: https://github.com/MarioCarrion/video...
■ Software Architecture in Go/Golang: • Software Architecture and System Desi...
■ Golang Microservices: Events Streaming using Apache Kafka: • Golang Microservices: Events Streamin...
== All Go/Golang Playlists
■ Building Microservices in Go/Golang: • Building Microservices in Golang/Go
■ Go/Golang Tools and Packages: • Golang/Go Tools and Packages
■ Learning Concurrency Patterns in Go/Golang: • Learning Go/Golang Concurrency Patterns
■ Learning Go/Golang : • Learning Go/Golang
■ Learning Relational Databases in Go/Golang: • Learning Go/Golang: Relational Databases
■ Software Architecture in Go/Golang: • Software Architecture and System Desi...
■ Testing in Go/Golang: • Testing in Golang/Go
== Socials
■ / mariocarrion
■ / mario.carrion
■ / mariocarrion
00:00 - Introduction to the Externalized Configuration Pattern in Golang
00:43 - Configuration using Parameters or Flags in Golang (Externalized Configuration Pattern)
02:24 - Configuration using Properties Files in Golang (Externalized Configuration Pattern)
04:15 - Configuration using Environment Variables in Golang (Externalized Configuration Pattern)
05:42 - Configuration using HashiCorp Vault in Golang (Externalized Configuration Pattern)
08:33 - External Layer Configuration in Golang (Externalized Configuration Pattern)
10:53 - Conclusion of the Externalized Configuration Pattern in Golang
=== Who am I?
Hello👋🏼! I'm Mario, a Hands-on Software Architect and Lead Backend Engineer with decades of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.
The content I share includes different topics I've learned while working for small startups and large companies including the processes I've followed over the years for successfully delivering complex enterprise systems from start to end.
Subscribe if you like Software Development, Software Architecture and Systems Design!
Keep it up. Don't give up!
#golang #tutorial #microservices
=== Our Vlog Channel
/ rubycarrion
=== Our affiliate links below
■ My Amazon Storefront: https://www.amazon.com/shop/rubycarrion
■ Shop my IG posts on my shopLTK page: https://www.shopltk.com/explore/RubyC...
■ Vlog camera: Sony RX100 VII https://amzn.to/3qQfvMc
■ Other vlog cameras and gear: https://rubycarrion.com/vlogcamerasan...
■ Shop through my links to support the channel: https://rubycarrion.com/shop-my-links/
■ Get a 30 day FREE Trial of Epidemic Sound: https://www.epidemicsound.com/referra...
■ Join Rakuten for FREE and get $30 when you spend $30: https://www.rakuten.com/r/RUBYRA132?e...
DISCLAIMER: Some of the links shared in the description are affiliate links. As a member of these affiliate programs, I earn a small commission from your purchases at no additional cost to you. I appreciate your support! 💖
Смотрите видео Software Architecture in Golang: Externalized Configuration Pattern онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Mario Carrion 26 Август 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,72 раз и оно понравилось 11 людям.