Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Is there some kind of HttpSession server out there?

 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

First of all sorry for my poor English, I would like to create web apps using Servlet technology
running on a large cluster of Tomcat instances.
Performance is what I care the most and as you know session replication across a cluster degrades
system performance significantly since they need to communicate with each other to learn what has
happened to the sessions each stores.
I have an idea to create a kind of centralized session server (or a cluster of it for failover) that stores all the
sessions used for Tomcat instances. What each web server needs when it wants to get access to
a session object is to create a connection to the server and retrieve a session in return. Doing this will also get rid
of the need of sticky session since an Http request can be passed through any web server knowing that it will be using the same
session object.
I think Memcached would be a good candidate but since it lacks replication and fail over thus the sessions
can disappear if a server go down which of course is the last thing you want when handling with precious user sessions.
Is there a kind of this type of server out there so I will not have to reinvent the wheel?

Regards,
Woraphol

 
Saloon Keeper
Posts: 26047
186
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're using Tomcat, there's supposed to be a facility where the different Tomcats in the cluster can share a database for Sessions. I've never tried it, however.

Why don't you ask about it in our Tomcat Forum? We do have people who do major clustering over there. Although you might want to check out the Tomcat docs first so you'll be better equipped to ask the question in a way everyone can understand.
 
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe, using a load balancer, will take care of sessions during failover.
 
To do a great right, do a little wrong - shakepeare. twisted little ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic