Redirecting Visitors Primarily based On Precedence Utilizing Azure Visitors Supervisor

For any internet software to work there must be an related finish level, which implies each time customers sends a request, endpoint is the very first thing which will get hit. If I say in easy time period, endpoint is an web going through service which may very well be hosted both in Microsoft Azure or exterior of Azure.


What’s Azure Visitors Supervisor 


Now what’s Visitors Supervisor? Because it’s identify suggests, it manages the visitors. It distributes the visitors throughout varied Azure areas together with well being monitoring capabilities. So, in case you are planning for a multi-region help with excessive availability, it may very well be an ideal service for you.


Now, you have to be pondering, what’s the core which is making this occur? Truly it makes use of the DNS to route visitors to endpoints primarily based on the chosen visitors manger profile and the configured routing mechanisms. I’ll shortly point out about what all routing strategies can be found however earlier than that permit’s take a fast have a look at a number of the main advantages which we will obtain utilizing Visitors Supervisor.


Advantages of utilizing Azure Visitors Supervisor

  • Visitors Supervisor gives automated failover each time endpoint goes down because it retains monitoring the tip factors.
  •  In case of deliberate upkeep exercise, Visitors Supervisor redirects the visitors to different finish factors that are configured. So, we want to not fear about any downtime home windows.
  • Visitors Supervisor has the power to carry out calculation to know which finish level will present lowest latency to the person. In a means, Visitors Supervisor improves the responsiveness by redirecting the visitors to such finish factors.
  • One other vital functionality of Visitors Supervisor is, it not solely helps Azure finish factors, but it surely additionally go hand-in-hand with exterior non-Azure endpoints.
  • And lastly, Visitors Supervisor permits to mix a number of routing strategies to attain any advanced enterprise situations utilizing nested profiling mechanism.

Methods to handle visitors


Presently, there are 6 methods as soon as can handle DNS routing.




This methodology is helpful, when endpoints are configured in numerous geographic areas and one needs to pick the closet one, when it comes to lowest community latency.




On this methodology, one can create endpoints with designated weights, ranging between 1 and 1000 and primarily based on the load, visitors is redirected accordingly.




This methodology route customers primarily based on the geo location or say, it really works primarily based on the geography their DNS question originates from. It might look just like efficiency however truly it’s completely different. The perfect use case, I can consider is, let’s say attributable to some compliance and authorities rules one needs all of the visitors from EAST US to be redirected to WEST US endpoint. So, this may be achieved by deciding on the geo primarily based profile.




Because it’s identify says, it really works on the idea of assigned precedence. So, whichever endpoint is having increased precedence, visitors can be redirected to that one. By any likelihood, if endpoint having highest precedence is down or not wholesome, request will mechanically be redirected to the endpoint which is assigned as 2nd highest precedence and it retains occurring. Such routing methodology could be very helpful in catastrophe restoration situations.




In the sort of routing methodology, there exists a number of endpoints for a single shopper request. One caveat right here is, one cannot go along with server identify mappings and has to mandatorily go along with IPv4 or IPv6 one. Sadly, I couldn’t discover any real-time use case right here.




This methodology permits to map vary of IP addresses to particular endpoints. Say, you need sure customers or to be particular sure IP addresses to all the time use WEST US endpoint and relaxation all can use different finish factors then this routing methodology can be utilized.


Effectively sufficient of idea. Let’s take a look at sensible instance of how precedence primarily based DNS routing works.


Precedence primarily based endpoint routing utilizing Azure Visitors Supervisor


Let’s begin by opening the Azure portal utilizing this and seek for the Visitors Supervisor Profiles. Click on on that and a brand new web page will open as proven beneath,



Click on on Create visitors supervisor profile and provide all the required parameters. Most of those parameters are self-explanatory, so I am not going to dig deep into these. However make sure that to pick the Routing methodology as Precedence.


Redirecting Traffic Based On Priority Using Azure Traffic Manager


When you click on on Create button, Visitors Supervisor profile will get created beneath the chosen Useful resource Group as can be listed as proven beneath,


Redirecting Traffic Based On Priority Using Azure Traffic Manager


Now choose the lately created profile and create teh endpoint as proven beneath,


Redirecting Traffic Based On Priority Using Azure Traffic Manager


As Goal useful resource kind, I’ve chosen App Service as the net app I’ve created to load right here is deployed as App Service.



For this endpoint I’ve assigned the precedence as 1 and my internet app is hosted in West US.


Equally we’ll create one other endpoint with precedence set as 2 and internet app hosted in Central US area as proven beneath,


Redirecting Traffic Based On Priority Using Azure Traffic Manager


Now if you’ll return to Visitors Supervisor profile, you will note each these endpoint listed over there as proven beneath,


Redirecting Traffic Based On Priority Using Azure Traffic Manager


Subsequent comes is verification half. For that, let’s attempt to run the appliance in a browser by hitting the URL talked about for DNS identify http://demochannel.trafficmanager.web. You will note that software is up and operating with endpoint set as precedence 1.


Redirecting Traffic Based On Priority Using Azure Traffic Manager


Let’s go to App Providers and and cease the one which is hosted in West US. Right here we try to make precedence 1 endpoint down and need to examine if failover occurs and precedence 2 endpoint picks up.


Redirecting Traffic Based On Priority Using Azure Traffic Manager


As above screenshot says that we’ve stopped the app which was hosted in West US area. 


Now go and run the identical URL once more and you’ll discover that internet software continues to be up and operating and this time, it’s operating from Central US area, which was assigned precedence 2. Right here is the net app operating from endpoint 2,


Redirecting Traffic Based On Priority Using Azure Traffic Manager


If you’re desirous about video tutorial of this text, you’ll be able to consult with my channel


Hope you loved studying this visitors redirection utilizing precedence primarily based routing of Azure Visitors Supervisor.

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button