[erlang-questions] gen_server vs gen_fsm

YC <>
Mon Oct 8 22:37:23 CEST 2007


On 10/8/07, Chandru <> wrote:
>
> > It isn't quite what  you are imagining it to be :-)
>
> > Assuming you identify a user's HTTP session by means of a cookie and
> > you start a state machine to guide the customer through a payment
> > process. Each time your state machine's State gets updated, you could
> > save it mnesia with the Cookie as the key. The next time another
> > request comes along, you can spawn a new state machine process which
> > initialises itself with the state in mnesia and then handles the
> > request.


Haha - I see.  That's a much more familiar process for me, although if
process can be serialized that would be quite interesting indeed.

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


More information about the erlang-questions mailing list