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

Azure Traditional Load Balancer VS Azure Application Gateway response latency?

环境详细信息:我有一个应用程序托管在两个客户的两个 Azure 环境中。该应用程序包含 ASP.NET 网络 API 后端和 Angular 前端。两个应用程序都托管在两个 Web 服务器(Windows VM)上。我在第一个环境(环境 1)中使用 LB,在第二个环境(环境 2)中使用 AGW。

问题:我遇到的问题是,环境 1 API 请求响应时间比环境 2 快。下面是浏览器检查 window 相同请求的屏幕截图.

根据计时选项卡,环境 1 的响应时间比环境 2 快。

问题:我的问题是这个响应时间的差异是不是因为使用了LB和AGW?

Azure 负载均衡器和 Azure 应用程序网关之间最大的区别在于它们在 OSI 模型中工作在不同的层。 Azure 负载均衡器是一种高性能、低延迟的第 4 层负载均衡服务(入站和出站),适用于所有 UDP 和 TCP 协议。这样可能会做出相对快速的请求和响应。

Application Gateway provides application delivery controller (ADC) as a service, offering various Layer 7 load-balancing capabilities. Use it to optimize web farm productivity by offloading CPU-intensive SSL termination to the gateway.

Azure Load Balancer is a high-performance, low-latency Layer 4 load-balancing service (inbound and outbound) for all UDP and TCP protocols. 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.

更多参考: