Best practices: get/put
Tue Jan 24 09:53:54 CET 2006
On 23 Jan, Matheus Degiovani wrote:
> The best practices document says that one should avoid using get/put do
> store data in the process dictionary. I'm guessing that in gen_servers,
> that information should actually be stored in the various State
> parameters/returns, right?
> So, my question is: what is the best (or maybe, what's the usual) data
> structure used for storing state information? Trees? Records?
to my opinion, a process would be the right thing to store information
in erlang. Write data into mnesia if you need persistent states.
More information about the erlang-questions