comet support with session affinity

45 views
Skip to first unread message

seanc

unread,
Sep 15, 2011, 11:33:57 PM9/15/11
to Lift
hi,

just wondering how to take the next leap forward with lift. i've coded
the timer app, as well as the chat room. then i read about how lift
needs session affinity, and was wondering what were the best practices
around pushing shared state (i.e. not having a singleton chat room on
one webapp that all browsers subscribe to) through lift/comet.
basically, how to solve pub/sub where browser clients need access to
shared state. is akka the preferred route? btw, does lift support non-
browser comet? i.e. a way to open up a long-poll or websocket without
using a browser accessing a lift front-end?

still a bit new to lift. any thoughts would be appreciated.

David Pollak

unread,
Sep 16, 2011, 1:39:54 AM9/16/11
to lif...@googlegroups.com
On Fri, Sep 16, 2011 at 4:33 AM, seanc <sean....@gmail.com> wrote:
hi,

just wondering how to take the next leap forward with lift. i've coded
the timer app, as well as the chat room. then i read about  how lift
needs session affinity, and was wondering what were the best practices
around pushing shared state (i.e. not having a singleton chat room on
one webapp that all browsers subscribe to) through lift/comet.
basically, how to solve pub/sub where browser clients need access to
shared state. is akka the preferred route?

Lift is agnostic as to how objects are materialized into Lift's address space.  I would use a message queue for interprocess communication.  Message queues abstract the transport and the endpoints of the transport is a well known and manageable way.
 
btw, does lift support non-
browser comet? i.e. a way to open up a long-poll or websocket without
using a browser accessing a lift front-end?

Lift supports all manner of servicing HTTP requests.  For an example of using Lift and container continuations, see http://simply.liftweb.net/index-5.4.html#toc-Section-5.4 (note the case "change" :: Nil JsonGet _ => line)
 

still a bit new to lift. any thoughts would be appreciated.

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.




--
Lift, the simply functional web framework http://liftweb.net
Reply all
Reply to author
Forward
0 new messages