« SLA monitoring | Main | IPS/IDS for heavy content site »

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.

Reader Comments (1)

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: together with a load balancer. These type of products should probably be able to work fine with application servers like websphere.

November 29, 1990 | Unregistered Commenterjab

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>