Best practices: get/put

philip-f@REDACTED philip-f@REDACTED
Tue Jan 24 09:53:54 CET 2006


On 23 Jan, Matheus Degiovani wrote:
> Hello,
> 
> 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?
> 
> Cya.

Hi Matheus,
to my opinion, a process would be the right thing to store information
in erlang. Write data into mnesia if you need persistent states.

greetings
Philip



More information about the erlang-questions mailing list