[erlang-questions] gen_server vs gen_fsm
Mon Oct 8 21:16:25 CEST 2007
Thanks, one more question inline.
On 10/8/07, Chandru <> wrote:
> > gen_fsm can certainly be used to implement the logic behind an
> > e-commerce site where you'd have one instance of the gen_fsm for each
> > customer you are handling. You'd somehow have to map (Cookie to
> > process-id) your HTTP request to a particular instance of the state
> > machine. If you wanted to keep the state machine persistent, you'd
> > have to save it to some database and resurrect it when your next
> > request comes in and your state machine isn't around for whatever
> > reason.
Interesting - are you saying erlang processes can be serialized to say
Mnesia and revive later? If that's doable it's certainly a very intriguing
technique. Can you point me to some examples/guides on how this is done?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions