[erlang-questions] Use of application environment

Edwin Fine erlang-questions_efine@REDACTED
Tue Dec 2 19:02:10 CET 2008

On Tue, Dec 2, 2008 at 6:51 AM, Christian <chsu79@REDACTED> wrote:

> On Tue, Dec 2, 2008 at 12:36, Adam Kelly <cthulahoops@REDACTED> wrote:
> > I took the decision early in my Erlang learning that individual
> > servers shouldn't know whether or not they are part of a supervision
> > I'm also very interested as to what approach others take to this issue.
> I let my supervisors extract the app configuration items that are
> needed, they are so simple and uninteresting to test. I never let
> workers, gen_servers and other proc_lib:ish, access the app
> configuration.


How do you propagate real-time configuration updates to a running worker?
For example, let's say it is trying to connect to a URL, and that URL is not
working. You get given (by the URL owner) an alternate URL to use and must
now let the worker(s) know. AFAICS you can't shut down the supervision tree
to get new app configuration values (because other workers are running just
fine and you don't want to kill them for nothing), and killing the worker in
question won't help because the supervisor will have the old app
configuration values.


> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081202/faa8b8d4/attachment.htm>

More information about the erlang-questions mailing list