On Tue, Nov 25, 2008 at 4:57 AM, Mazen Harake <span dir="ltr"><<a href="mailto:mazen.harake@erlang-consulting.com">mazen.harake@erlang-consulting.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Resending...<br>
<font color="#888888"><br>
/Mazen<br>
</font><div><div></div><div class="Wj3C7c"><br>
Mazen Harake wrote:<br>
> Personally I think in terms of isolation and how long the worker is<br>
> going to live.<br>
><br>
> If the worker is short lived and doesn't depend on that the app env is<br>
> the same in several places... then I tend to use application:get_env.<br>
> If the worker is a more heavy worker and depends on more rigid values<br>
> then I tend to copy the configuration to the state so that I can<br>
> control when a good time to update it is..<br>
><br>
> Magically updating all the workers is not always a good thing... and<br>
> yes, applicationg:get_env is the same as using global variables.<br>
></div></div></blockquote><div><br>Hi Mazen,<br><br>I was holding off from replying and hoping to receive more opinions and thank everyone at once, but I guess no more are forthcoming. Many thanks to you and wde for your input.<br>
<br>Regards,<br>Edwin Fine<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c"><br>
> /Mazen<br>
><br>
> Edwin Fine wrote:<br>
>> Hi all,<br>
>><br>
>> Is it considered bad practice to use application environment<br>
>> variables (i.e. application:get_env/2,3) in workers, as opposed to<br>
</div></div></blockquote></div><snip><br><br>