Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Continuity: Continuation-Based Web Applications

by awwaiid (Friar)
on Jan 21, 2005 at 15:16 UTC ( [id://423997]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Continuity: Continuation-Based Web Applications
in thread Continuity: Continuation-Based Web Applications

You are absolutely right -- and I would end up putting the shopping cart data into a DB or similar. I think in that case it might even be better because they could log out, go away, and a long time later come back to the same shopping cart, without me having to save their continuations the whole time.

Another idea is to have a per-session store for this sort of thing. Right now I have, for a given session, a set of continuations for all the states they've been in. So if we want we could bring back a general session storage area for this sort of cross-continuation storage.

I personally prefer the DB storage, but this would work too. Either way We still get the benefits of the control-flow using the continuations.

  • Comment on Re^4: Continuity: Continuation-Based Web Applications

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://423997]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-19 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found