| From: Parham, Clinton [mailto:[EMAIL PROTECTED] | Sent: Wednesday, 27 June, 2007 08:41 | | How do I keep my web application responsive for users already half way | through an enrollment process when traffic volume is high?
I'd recommend setting a "registration-in-progress" session cookie. Then, add a check on the first page of your process; obviously anyone requesting pages 2-5 already has completed page 1 (I assume you have some kind of check that assures this, and redirects them to page 1 if they haven't). If the load is low, set the cookie and continue processing; otherwise redirect to the "Server busy -- try again later" page. Not being a Tomcat expert, I don't know how you can get the current session count, but I'm guessing it'd be more efficient to set some kind of indicator, and use that instead of re-querying it with every request. Either have a separate thread that re-checks every N minutes, or just keep a request counter of some sort and re-check every N requests. Hmmm, I seem to be pointing out the obvious now, so I'll be quiet.... ----------------------------------------- ------------------------------------------------------------ The information contained in this message is confidential proprietary property of Nelnet, Inc. and its affiliated companies (Nelnet) and is intended for the recipient only. Any reproduction, forwarding, or copying without the express permission of Nelnet is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this e-mail. ------------------------------------------------------------ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]