On Sat, Feb 28, 2009 at 2:37 PM, Ikai Lan <[email protected]> wrote:
> > Hi, > > I'm looking to learn Lift coming from working with Ruby on Rails for a > while and I've been voraciously consuming the documentation and > tutorials that are available on the internet. There are a few things I > really like about Lift so far: > > - Out of the box Comet support > - Rapid development (incremental compiles are awesome) > - Being able to design without having to think of the request/response > cycle* > > I'm putting an asterisk on the last item because I'm a bit confused > how this will work in a production application running two or more > load balanced Lift instances of the same application. You need a load balancer that's either JSESSIONID aware or can be tuned to work with Lift's feature that re-writes URLs in such a way that it's easy to have a load balancer send the requests back to the specific server that houses the Lift session. > The fact that > form processing can happen without inspecting GET/POST params or > dealing with data that needs to life longer than a standard request > cycle is pretty neat, but it raises questions about horizontal > scalability. Where is the session data stored? In the app server where the session was initialized. > If it is in-memory by > default, are there any best practices for sharing session data across > application servers, or is the recommended solution to use load > balancer affinity? The latter. With all this being said, I have significant operational experience with the highest volume RoR powered site. A quad-core Intel/AMD box running Lift could have handled all of its traffic. So, unless you're expecting to have significantly more traffic than Twitter... unless you're site is saturating a gigabit ethernet card, you can run it on a single server with Lift. Thanks, David > > > Ikai > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
