How to configure processes, (and applications)

Anders Nygren anders.nygren@REDACTED
Mon Feb 21 17:05:27 CET 2005

I am pondering the question of how to best get configuration data to
to processes and/or
applications in an OTP based system.

So far I have as a precondition that
1 - Useful default values are in the application resource file
2 - Installation specific values are in the sys.config file

But my question is, "How do I best get the data into the processes
that need it?"

In my first OTP based system I had the processes do application:env/1
whenever they
needed the data, but I am not very happy with this.

Now I am considering having the main supervisor of the application
read the configuration
data and pass it in the start_link calls to the different processes.

More information about the erlang-questions mailing list