Gen_server and states

Luke Gorrie luke@REDACTED
Wed Oct 27 08:18:34 CEST 1999


Mickael Remond <mikl@REDACTED> writes:

> How would you put up with a server as soon as you get a huge amount of data,
> that cannot fit into your RAM ? Would you use a mnesia table or Dets and use
> the state as an handler to those data ?

Yes, though it might affect your design more than this. For instance,
if you were storing all your state in Mnesia, you might throw the
server away and execute requests in the client process, since you
don't have to worry about serialising access to the state when you're
using transactions.

-- 
"Time flies like an arrow; fruit-flies like a banana." -Groucho Marx




More information about the erlang-questions mailing list