[erlang-questions] Is a process necessary in front of mnesia?

Moritz Ulrich <>
Thu Oct 14 20:07:16 CEST 2010


On Thu, Oct 14, 2010 at 7:40 PM, Woody Peterson
<> wrote:
> Are we right to assume we can have possibly tens of thousands of
> processes sending write messages to mnesia directly as opposed to a
> gen_server in front of it?

I'm not very experienced with mnesia, but according to my
understanding: Yes, you could get rid of the gen_server.
Think of it: You have a powerful, distributed database as your
backend, but you tunnel *all* you writes through a single gen_server
instance. Every read, every write gets pushed through the message
queue of a single bottleneck, just to forward it to mnesia.


-- 
Moritz Ulrich
Programmer, Student, Almost normal Guy

http://www.google.com/profiles/ulrich.moritz
BB5F086F-C798-41D5-B742-494C1E9677E8


More information about the erlang-questions mailing list