I have deployed my
JSP application in
tomcat instances. The load between two tomcat instances is balanced by a load balancer. Due to heavy traffic, session handling is a overhead for me. I am thinking of redesigning my sesion handling. So, I am planning to get rid of session object, and use cookies based session handling, which can save memory.
So, in this model, I have to store the session shared data in the database side, is that right? I mean, cookie values are sent to browser and same values are tracked server side by storing them in database. Here also, there is a overhead of database calls while checking cookie values.
Is there any other alternative way, how I can keep track the cookie value across pages in server side?