In this blog, I have discussed an overview of Azure traffic manager and its different types of traffic-routing methods. I have also covered features of Azure traffic manager and practical demonstration on a traffic manager profile.
Azure Traffic Manager is a global DNS Server hosted in Azure. It is an external DNS solution. It extends the functionality of DNS beyond simple name, IP resolution by adding load balancing and advance features such as geo-fencing, weighted, performance name resolutions. I have discussed all in detail below
Apart from this, you can also check my blog 0n Azure Storage Accounts where I have discussed storage account services, types, practical Hands-on on the creation of storage account, and much more.
The below areas are covered in this blog:
- What is Azure traffic manager?
- Why do we use Azure traffic manager?
- Azure Traffic Manager Routing Methods
- Features Of Azure Traffic Manager
- Hands-on of Traffic manager profile
1. What Is Azure Traffic Manager?
Azure Traffic Manager allows you to regulate the distribution of user traffic by using DNS to direct requests to the most appropriate service endpoint supported on a traffic-routing method and therefore the health of the endpoints.
Azure traffic manager selects an endpoint based on the configured routing method. It supports a variety of traffic-routing methods to suit different application needs. After the selection of endpoints, the client is connected directly to the appropriate service point. It also provides endpoint health checks and automatic failover. It also enables you to build a highly available application that is resilient to failure, including the failure of an entire Azure region.
To know more about [AZ-303] Certification, check our blog on [AZ-303] Microsoft Azure Architect Technologies Certification Exam
2. Why Do We Use Traffic Manager?
Traffic Manager uses DNS to direct client requests to the most appropriate service endpoint based on a traffic-routing method and the health of the endpoints. An endpoint is any Internet-facing service hosted inside or outside of Azure. It provides a range of traffic-routing methods and endpoint monitoring options to suit different application needs and automatic failover models. It is resilient to failure, including the failure of an entire Azure region.
Check out this blog in which we discuss the basics of Azure PowerShell and how it plays a key role in the Microsoft Azure Certification Exam.
3. Azure Traffic Manager Routing Methods
Azure Traffic Manager distributes the traffic based on one of the six traffic-routing methods that determine which endpoint is returned within the DNS response.
These following traffic routing methods which are available:
1.) Priority
When you select the priority routing method, it contains a prioritized list of service endpoints where the primary service endpoint has the highest priority for all traffic. If the primary service endpoint is unavailable, it redirects the traffic to the second priority endpoint and so on.
Also read Private DNS in Azure
2.) Weighted
The weighted routing method is used when you want to distribute traffic evenly or to use pre-defined weights across a set of endpoints. In this traffic-routing method, you allocate a weight which is an integer from 1 to 1000, to each endpoint in the Microsoft Azure Traffic Manager profile configuration.
3.) Performance
This traffic routing method is used when you want to improve the responsiveness of many applications by routing traffic to the location that is closest to the user. The ‘closest’ endpoint isn’t necessarily closest as measured by geographic distance. Instead, the ‘Performance’ traffic-routing method determines the closest endpoint by measuring network latency.
Check Out: Our previous blog post on Azure Automate Deployement.
4.) Geographic
In Geographic routing, each endpoint associated with that profile must have a set of geographic regions assigned thereto. When a region or a set of regions is assigned to an endpoint, any requests from those regions get routed only thereto endpoint.
5.) Multivalue
You can select MultiValue for Azure Traffic Manager profiles which may only have IPv4/IPv6 addresses as endpoints. When a question is received for this profile, all healthy endpoints are returned.
6.) Subnet
Select the Subnet traffic-routing method to map sets of end-user IP address ranges to a specific endpoint within an Azure Traffic Manager profile. When a request is received, the endpoint returned are getting to be the one mapped for that request’s source IP address.
Also Check: What is Azure Entra ID (formally Azure Active Directory)?
4. Features Of Azure Traffic Manager
Some of the features are discussed below:
1) Increase application availability
It provides high availability for your critical applications by monitoring your endpoints and delivering automatic failover when an endpoint goes down.
2) Improve application performance
Azure allows you to run cloud services or websites in data centres located all over the world. It enhances application responsiveness by directing traffic to the endpoint with the lowest network latency for the client.
3) Perform service maintenance without downtime
You can perform planned maintenance operations on your applications without downtime. It can direct traffic to alternative endpoints while the unkeep is ongoing.
4) Combine hybrid applications
Microsoft Azure Traffic Manager supports external, non-Azure endpoints enabling it to be used with hybrid cloud and on-premises deployments, including the “burst-to-cloud”, “migrate-to-cloud,” and “failover-to-cloud” scenarios.
5) Distribute traffic for complex deployments
Using nested Azure Traffic Manager profiles, multiple traffic-routing methods are often combined to make sophisticated and versatile rules to scale to the requirements of larger, more complex deployments.
Also Check: azure interview questions and answers for freshers.
5. Hands-on Of Traffic Manager Profile
Step 1) Log in to Azure Portal (Please make sure you have a subscription before doing all this. If you created a free account for the first time, you’ll already have a FREE TRIAL subscription for 1 month).
Note: If you don’t know how to get a free Azure account then click on Azure Free Trial Account to know more
NOTE: For this quickstart, you’ll need two instances of a web application deployed in two different Azure regions (East US and Central US). Each will serve as primary and failover endpoints for Traffic Manager
If you don’t know how to create an instance or virtual machine then click on Create a Virtual Machine to know more
Create a Traffic Manager profile that directs user traffic based on endpoint priority
Step 2) On the upper-left side of the screen, select Create a resource > Networking > Traffic Manager profile.
Check Out: What is ARM Template in Azure.
Step 3) In the Create Traffic Manager profile, enter, or select these settings
Name: Enter a unique name for your Traffic Manager profile.
- Routing method: Select Priority.
- Subscription: Select the subscription you want the traffic manager profile applied to.
- Resource group: Select your existing Resource Group or Create new
- Location: This setting refers to the location of the resource group. It has no effect on the Traffic Manager profile that will be deployed globally.
Step 4) Select Create and its done now you have created successfully traffic manager profile on Azure
Conclusion: The azure traffic manager is an external DNS that is used to distribute user traffic, its routing methods help to distribute traffic in an effective way that determines which endpoint is returned within the DNS response. The practical Hands-on helps you to understand concepts in more detail.
Frequently Asked Questions
How many endpoint are there in Azure traffic manager?
There are three types of endpoint supported by Traffic Manager: Azure endpoints are used for services hosted in Azure. External endpoints are used for IPv4/IPv6 addresses, FQDNs, or for services hosted outside Azure.
Which routing is supported by traffic manager in Azure?
Priority traffic-routing method. Weighted traffic-routing method. Performance traffic-routing method. Geographic traffic-routing method. Multivalue traffic-routing method. Subnet traffic-routing method.
What is the purpose of traffic manager in Azure?
Traffic Manager can direct your customer traffic and distribute it across multiple locations, such as multiple cloud services or multiple Azure web apps. Traffic Manager can also help you with your geofencing needs, using the geographic routing method.
Which technology is used by Azure traffic manager?
It uses the DNS to direct clients to specific service endpoints based on traffic-routing rules and procedures. Clients can connect to the desired endpoint directly.
References/Related
- Azure Load Balancer : Overview And Steps To Create
- Azure Landing Zone Overview | Architecture | Accelerator
- Azure Firewall : Overview and Concepts
- Microsoft Certified: Azure Solutions Architect Expert
- Azure Firewall vs NSG: Difference Between NSG and Firewall
- Exam AZ-305: Azure Solutions Architect Expert Certification
Next Task For You
Begin your journey toward Mastering Azure Cloud and landing high-paying jobs. Just click on the register now button on the below image to register for a Free Class on Mastering Azure Cloud: How to Build In-Demand Skills and Land High-Paying Jobs. This class will help you understand better, so you can choose the right career path and get a higher paying job.
Sanjana says
Hi,
Can you please assist with how it is worked by using DNS.
Rahul Dangayach says
Hi Sanjana,
Regarding this, please refer to these Microsoft docs for the same:
1. https://docs.microsoft.com/en-us/azure/traffic-manager/traffic-manager-how-it-works
2. https://docs.microsoft.com/en-us/azure/traffic-manager/tutorial-traffic-manager-subnet-routing
Hope this helps.
Thanks and Regards
Rahul Dangayach
Team K21 Academy