Handling of Session for a site running from more than 1 data center

If using a DB to store session(used by some app server, ex.. websphere), how would an enterprise class site that is housed in 2 different data centers(that are live/live) maintain the session between both data centers.

The problem as I see it is that since each data center has their own session database, if I was to flip the users to only access Data Center 1(by changing the DNS records for the site or some other Load balancing technique) then that would cause all previous Data Center 2 users to lose their session. What would be some pure hardware based solutions to this that are being used now? That way the applications supporting the web site can be abstracted from this.

As I see now, a solution is to possibly have the session databases in both centers some how replicate the data to each other. I just don't see the best way to even accomplish this you are not even guraunteed that the session ID's will be unique since it's 2 different Application Server tiers(again websphere). Not to mention if the 2 data centers are some distance apart this could be difficult to accomplish as well.

jab's picture

Re: Handling of Session for a site running from more than...

Wouldn’t replicating the session DB between different data centers be the least of your challenges? Since you want to share the session between different locations I assume that you want to be able to switch the user seamlessly from one location to another. I might be looking at this from the wrong angle but that would mean that you would also need to synchronously replicate all the actual application data between the data centers.

It would probably be better to let customer stick to one of your data centers like i believe Salesforce do with their customer and then implement som asynchronous replication of data between the data centers. Alternatively what you might need is a global traffic manager (example: http://www.f5.com/products/big-ip/product-modules/global-traffic-manager...) together with a load balancer. These type of products should probably be able to work fine with application servers like websphere.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><div ?=?><p ?=?> <img ?=?><h1 ?=?><h2 ?=?><h3 ?=?>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions
  • You may link to webpages through the weblinks registry

More information about formatting options

To combat spam, please enter the code in the image.