Forum Moderators: phranque
My idea is to have each html page call a small servlet (cgi app.) that checks the user's session to see if they are logged in. I will call the servlet with a <script src="MyServlet"> tag.
My hope is to use Apache to do most of the work when servering up the static pages and Tomcat very little. This will help me run the site on a smaller box and will let me scale better if I start to get some traffic.
Does this sound like a good plan for handling a lot of taffic without a lot of hardware?
Is there a flaw in my thinking or am I setting myself up for something unforeseen problem?
My client is convinced he will have tens of thousands of hits a day and I would like to be ready should that actually materialize.
From the little bit I do know, your approach sounds OK to me. The less actual server activity the better.