Managing configuration in Erlang application

前端 未结 5 1621
日久生厌
日久生厌 2020-12-23 17:50

I need to distribute some sort of static configuration through my application. What is the best practice to do that?

I see three options:

  1. Call ap
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 18:14

    Another approach is to transform your configuration data into an Erlang source module that makes the configuration data available through exports. Then you can change the configuration at any time in a running system by simply loading a new version of the configuration module.

提交回复
热议问题