Wednesday, April 28, 2021

Clojure configuration library - aero

Clojure 的 aero library 有兩個我覺得超欣賞的功能:

  • 隱藏 secrets 的 best practice 
  • 可以自行延申 areo reader ,設計自己需要的 configuration semantic

其中,隱藏 secrets 的這個 idea ,算是挑戰了 12 factor app 裡的,「要把 secrets 放在 environment variables 」的 best practices 。我質疑 12 factor app 的這一項作法很久了,但是卻遲遲沒有找到好的替代方案,終於找到 areo library 了!