Although Ugo pointed Cedric to the Cocoon flow layer, Cedric (probably not seeing Ugo's hint) still wonders about the use of continuations.
So here is my take: Continuations are very usefull in the realm of webapps. Since the browser ist stateless, the server has to maintain state for him. That's what sessions are for. However sessions are only half the way (sessions would be enough to circumvent the statelessness of HTTP but awkward to circumvent the statelessness of the browser). Continuations allow you to make your webapp with several request-response-cycles look like a single thread. That way you no longer need to describe your page flow with some kind of FSM but you can simply script it. Some say, continuations will revolutionize the way webapps are written. And this actually might hold true (until the day when state returns to the client :-)
10:33:04 AM
|