When you change hosting providers, you get new a IP for your servers.If you change your DNS configuration for your site to the new IP, it takes about four days to propagate through all the ISPs. During this time, users will hit the old IP, get no response, and assume the site is down.So,we need a way to redirect users to the new IP when they go to the old one.
Problem: Changing hosting providers threatens the user experience and costs you money.
Solution: Redirect traffic to an intermittent subdomain.
At Pageflakes,we had all sorts of problems with our hosting providers and,at one point, had changed hosting providers almost once every four months.So, we had to come up with a solution that works transparently and without any downtime.Here’s what we do:
Setup a Redirector web site on an old server that forwards users to the new server
Configure ASP.NET to receive all requests including requests for .html files
In Global.asax,theApplication_BeginRequest intercepts all calls and redirects users to the new serverThe Redirector keeps the query string and logical path intact.So, complicated URLs like www.sometagetdomain. com/something/ somefile.html? someparam= somevalue are converted nicely.
So, users that still have the old IP in their DNS cache go to the old server and are redirected to the new server.But after a while, when their DNS cache is refreshed and they get the new IP, their requests go to the new server and no redirection is required. After four or five days, you can safely bring down the old server.
ASP.NET Related Interview Questions
|VB.NET Interview Questions||C#. NET Interview Questions|
|ASP.NET Interview Questions||ADO.Net Interview Questions|
|Windows Presentation Foundation(WPF) Interview Questions||Windows CE .NET Interview Questions|
|Dot Net Framework Interview Questions||Asp Dot Net Mvc 4 Interview Questions|
|Asp Dot Net Mvc Interview Questions|
Introducing Web Portals And Dropthings.com
Architecting The Web Portal And Widgets
Building The Web Layer Using Asp.net Ajax
Building The Data And Business Layers Using .net 3.5
Building Client-side Widgets
Optimizing Asp.net Ajax
Creating Asynchronous, Transactional, Cache-friendly Web Services
Improving Server-side Performance And Scalability
Improving Client-side Performance
Solving Common Deployment, Hosting, And Production Challenges
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.