Azure Load Balancer and Application Gateway

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
or

Already have an account? Sign In »

Time
3 hours 51 minutes
Difficulty
Beginner
CEU/CPE
4
Video Transcription
00:01
Welcome back to Microsoft Azure Fundamentals.
00:05
This is Module eight,
00:07
as your networking services
00:10
in this module will learn about what as your virtual networks are and how you can use them in your application designs.
00:16
How to provide high availability and resiliency using azure load balancers and application Gateway
00:23
and how to reduce latency for your global customers. Using Azure Traffic manager,
00:29
we will also discuss a few of the network and concepts like subnets and DNS and how you can use them in Azure.
00:37
Let's get started
00:40
in this video. We'll take a look at two more network services in Azure that allow you to deploy highly available applications.
00:48
Load balancer and application Gateway.
00:51
We've talked about availability and resiliency before
00:55
in our video about zealous, we discussed how you can increase the availability of your application by adding an additional VM to serve Web requests. Well, how do you configure those two VMS to respond to the user's requests without the user knowing anything about them,
01:11
you use a device called a load balancer.
01:15
A load balancer is a device that distributes the traffic between systems in a pool or cluster.
01:21
In our particular case, we have two identical Web servers and use the load balancer to distribute the traffic between them.
01:26
This is very helpful because if one of the machines fails, the other one can continue to serve the traffic to the users.
01:34
You can have as many machines as you want behind a load balancer. They don't even have to be identical, although having identical machines is the most common approach, as we saw when we discuss the VM scale sets,
01:47
there are also different algorithms to distribute the traffic. But the one that you'll see most often is called round Robin, where each new request is sent to the next machine in the pool.
01:57
Then, once all the machines are iterated, the request is sent to the first one in the pool, and it starts all over again.
02:02
The load balancer is a very specialized device that does one simple thing
02:07
switches traffic.
02:09
This allows it to handle high traffic, load and connect many servers behind it.
02:14
The load balancer can be exposed to the Internet with a public IP address,
02:19
then users request to get forwarded to it. Then the load balancer forwards the request to the Web server using their private IP address.
02:27
This is called the public load balancer.
02:30
You can replicate the same approach for the other tiers of your application.
02:35
The only difference is that the load balancers for the application and data tears do not have public IP addresses, but private. Only
02:43
those are called private load balancers.
02:46
One important thing to know about the load balancers is that you can specify the port for the traffic you want to balance.
02:52
For instance, for the public Web to your load balancer,
02:55
you can configure Port 80 for the application tier Port 80 80 and Port 3306 for the data tier.
03:02
Then, lastly, you can use another service called Domain Name Service, or DNS, to map friendly names to the IP addresses.
03:12
Using the DNS, you can map the IP address of the Web to your load balancer to a friendly name.
03:16
This way, the users don't need to remember numeric ip addresses, but use the friendly DNS name to access your application.
03:24
Azure has two services that you can use for balancing traffic.
03:28
The first is as your load balancer
03:30
as your load balancer is a fully managed service that you can use to balance transmission control protocol TCP or user data Gram protocol. UDP traffic.
03:42
This means that you can balance not only Web traffic, but other traffic like database traffic, Ssh traffic and so on
03:49
as your load balancer supports both inbound scenarios where you balance traffic sent to your application, as well as outbound scenarios where you balance traffic sent from your application to external systems.
04:00
It also provides low latency and high throughput and scales. With your needs,
04:08
you can support millions of user requests with azure load balancer.
04:12
The most important part is that you don't need to maintain any infrastructure.
04:15
You just configure the service, define the rules and, as your manages the rest.
04:23
The other service that you can use to balance traffic in azure is called Application Gateway.
04:28
As your application, Gateway is designed for Web applications only, which means that you can load balance only http or https traffic.
04:38
However,
04:39
the APP Gateway provides additional functionality that is very useful for Web applications.
04:45
This includes building Web application firewalls that monitor and lock traffic and protects your application from malicious attacks like SQL injections, cross site scripting and denial of service attacks.
04:57
You can terminate SSL on the application gateway level to reduce encryption overhead or configure it to provide end to end encryption for highly secure applications.
05:08
You could configure customer routes based on your l paths and add, remove or rewrite the http headers of the request.
05:15
You can also configure a session affinity and send the request from the same client to the same server and maintain the session.
05:23
Keep in mind, though, that this may impact the performance of your application,
05:27
and it is typical for legacy applications but discouraged for the modern ones.
05:30
Now you know how you can scale your application and provide availability and resiliency, using the load balancing services from azure.
Up Next
AZ-900 Microsoft Azure Fundamentals

In this online Microsoft Azure Fundamentals training course, students will learn basic cloud computing concepts and how these concepts are applied specifically to Microsoft Azure. Upon completion, students will be prepared to take the AZ-900 certification exam.

Instructed By