[erlang-questions] gen_server vs gen_fsm

YC yinso.chen@REDACTED
Mon Oct 8 21:16:25 CEST 2007


Hi -

Thanks, one more question inline.

On 10/8/07, Chandru <chandrashekhar.mullaparthi@REDACTED> 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?

Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20071008/1a40f217/attachment.htm>


More information about the erlang-questions mailing list