• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What's the best way to handle the session in clustered environment?

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic