简体   繁体   English

Azure 传统负载均衡器 VS Azure 应用程序网关响应延迟?

[英]Azure Traditional Load Balancer VS Azure Application Gateway response latency?

Environment Details: I have an application hosted in two azure environments for two clients.环境详细信息:我在两个 azure 环境中为两个客户端托管了一个应用程序。 The application contains ASP.NET web API backend and Angular Frontend.该应用程序包含 ASP.NET web API 后端和 ZC31C335EF37283C451B18BA0DD317DE1 前端Both applications hosted on two web servers (Windows VM).这两个应用程序都托管在两台 web 服务器 (Windows VM) 上。 I'm using LB in the first environment (Environment 1) and using AGW in the second environment (Environment 2).我在第一个环境(环境 1)中使用 LB,在第二个环境(环境 2)中使用 AGW。

Problem: The issue that I'm having is, environment 1 API request response time is faster than the environment 2. Below is the screenshot of the browser inspect window for the same request.问题:我遇到的问题是,环境 1 API 请求响应时间比环境 2 快。下面是浏览器检查 window 以获取相同请求的屏幕截图。

According to the timing tab, environment 1 has a fast response time than environment 2.根据时间选项卡,环境 1 的响应时间比环境 2 快。

Question: My question is whether this response time difference due to using LB and AGW?问题:我的问题是这种响应时间差异是否由于使用 LB 和 AGW?

在此处输入图像描述

The biggest difference between Azure load balancer and Azure application gateway is that they works at the different layer at OSI Model. Azure 负载均衡器和 Azure 应用程序网关之间的最大区别在于它们工作在 OSI Model 的不同层。 Azure Load Balancer is a high-performance, low-latency Layer 4 load-balancing service (inbound and outbound) for all UDP and TCP protocols. Azure 负载均衡器是一种高性能、低延迟的第 4 层负载均衡服务(入站和出站),适用于所有 UDP 和 TCP 协议。 This might make a quick request and response relatively.这可能会相对快速地请求和响应。

Application Gateway provides application delivery controller (ADC) as a service, offering various Layer 7 load-balancing capabilities.应用程序网关提供应用程序交付 controller (ADC) 即服务,提供各种第 7 层负载平衡功能。 Use it to optimize web farm productivity by offloading CPU-intensive SSL termination to the gateway.使用它通过将 CPU 密集型 SSL 终端卸载到网关来优化 web 农场生产力。

Azure Load Balancer is a high-performance, low-latency Layer 4 load-balancing service (inbound and outbound) for all UDP and TCP protocols. Azure 负载均衡器是一种高性能、低延迟的第 4 层负载均衡服务(入站和出站),适用于所有 UDP 和 TCP 协议。 It is built to handle millions of requests per second while ensuring your solution is highly available.它旨在每秒处理数百万个请求,同时确保您的解决方案具有高可用性。 Azure Load Balancer is zone-redundant, ensuring high availability across Availability Zones. Azure 负载均衡器是区域冗余的,可确保跨可用区的高可用性。

For more references:更多参考:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM