Question : Round Robin DNS and Session Cookies- Will this work on a web server?

Hi there,

We are looking for a simple way to add redundancy to a web app.
We are concerned about session cookies.

If we just put each server on a round robin DNS service, will that be sufficient at least for our beta release or will session cookies be a big issue?

I'm guessing that the user caches the DNS of the server and in such a case I would expect that problems are rare. But I could imagine that when they are on the site for over 15 minutes (assuming the DNS refresh is set to 15 minutes) then it will cause big problems.

IDEALLY: Is there a round robin DNS service that is designed for failover and will always redirect the same IP to the same server?

As a work-around, we are thinking: Since we have a centralized database, we centrally save all session data. Then, when a user without a session cookie is found, we check if it exists and log them in.

Answer : Round Robin DNS and Session Cookies- Will this work on a web server?

Hi,

In the Microsoft world what you're looking for is called NLB cluster (Network Load Balancing). That's the way I would reach the goal if the Web servers are Miscrosoft IIS servers.

I don't know much about non-microsoft worl but surely DNS round robin will not do the job because when you DNS client cache expires you could be routed to a web server that doesn't know anything about you current session (except if you have a process inside your application that can replicate session contexte between web servers).

When you configure NBL cluster you can do thing so that one client IP address will always be routed to one NLB cluster node.

Have a nice day
Random Solutions  
 
programming4us programming4us