Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can we use load balancer on a two app services in azure

I am creating a network with 2 app services, containing 2 slots each I know the load balancers are designed to work with VM's, but I am wondering if it is possible to place a load balencer on these 2 app services to balance the load between them, Is it possible to do so??

like image 315
SwapnilKumbhar Avatar asked Nov 29 '22 22:11

SwapnilKumbhar


2 Answers

When you Scale your Web App you add instances of your current pricing tier and Azure deploys your Web App package to each of them. There's a Load Balancer over all your instances, so, traffic is automatically load balanced between them. You shouldn't need a Virtual Machine for this and you don't need to configure any extra Traffic Manager.

You may want to refer: scale your app in Azure App Service for more details.

like image 75
AshokPeddakotla-MSFT Avatar answered Dec 01 '22 11:12

AshokPeddakotla-MSFT


but I am wondering if it is possible to place a load balencer on these 2 app services to balance the load between them, Is it possible to do so??

According to your description, maybe you are looking for Azure application gateway(layer 7).

Azure application gateway works at the application layer (Layer 7 in the OSI network reference stack). It acts as a reverse-proxy service, terminating the client connection and forwarding requests to back-end endpoints.

Azure application gateway support HTTP, HTTPS and Websockets. enter image description here

Here is the features offered by each service:

enter image description here

More information about Application gateway, please refer to this article.

like image 43
Jason Ye Avatar answered Dec 01 '22 12:12

Jason Ye