I\'m a real Erlang newbie (started 1 week ago), and I\'m trying to learn this language by creating a small but efficient chat server. (When I say efficient I mean I have 5 serve
I'm also kind of new to Erlang (a couple of months), so I hope this can put you in the correct path :)
First of all, since you're a "newbie", you should know about these sites:
Well, thinking about a non persistent database, I would suggest the sets
or gb_sets
modules (documentation here).
If you want persistence, you should try dets
(see documentation above), but I can't state anything about efficiency, so you should research this topic a bit further.
In the book Learn You Some Erlang there is a chapter on data structures that says that sets
are better for read intensive systems, while gb_sets
is more appropriate for a balanced usage.