Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Re: nginx load balance

Perrin Harkins

2008-06-29

Replies: Find Java Web Hosting

Author LoginPost Reply
On Sat, Jun 28, 2008 at 9:48 AM, Jeff Peng <peng.kyo@(protected):
> But I have a question, does nginx support for session-keeping?
> A user's request, should go always to the same original backend server.
> Otherwise the user's session will get lost.

I would advise you not to do this. It's a non-scalable design. If
you need to keep session data beyond what will fit in an encrypted
cookie, you'd be better off storing it in a shared database. That
way, if you lose one of your web servers, the session won't get lost.

- Perrin
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.