首页 > 解决方案 > 应用程序网关在我的场景中是正确的选择吗?

问题描述

在我的本地服务器上,我们有两组 Web api:

  1. service.xxxx.net/chartdata/data
  2. service.xxxx.net/chartimage/image

我们正在将我们的网站迁移到 azure(作为两个 Web 应用程序)。大佬想把 url 结构保持在 azure 上。我做了一些研究,似乎应用程序网关可以实现这一点。

但是,在设置应用程序网关时,我需要提供 vnet 和子网信息。因为它只是两个网络应用程序,我真的没有 vnet。

所以这让我想知道应用程序网关是否确实是正确的选择?也许还有别的东西?

标签: azureazure-application-gateway

解决方案


App gateway is the right solution for a single region.

You need to create Vnet for the App Gateway not for the web apps. You can check this tutorial: https://docs.microsoft.com/en-us/learn/modules/load-balance-web-traffic-with-application-gateway/

https://docs.microsoft.com/en-us/learn/modules/load-balance-web-traffic-with-application-gateway/5-exercise-create-configure-application-gateway

For multiple regions, Azure Front Door is a the right one: https://azure.microsoft.com/en-us/services/frontdoor/


推荐阅读