简体   繁体   English

将去往单个端点的流量重定向到Azure Cloud Services中的功能(经典)

[英]Redirecting traffic going to a single endpoint to a function in Azure Cloud Services (classic)

I've got a web api at api.mydomain.com running on Azure cloud services (classic). 我在api.mydomain.com上有一个运行在Azure云服务上的Web api(经典)。

I want a certain endpoint, say api.mydomain.com/end/point, to instead trigger an Azure function, and all the other traffic continue going to the app on api.mydomain.com. 我希望某个终结点(例如api.mydomain.com/end/point)来触发Azure函数,而所有其他流量都继续流向api.mydomain.com上的应用程序。

How do I do that with minimal overhead? 如何以最小的开销做到这一点? This is an extremely highly trafficked endpoint so I'd like to optimize it to be as efficient as possible. 这是一个流量非常高的端点,因此我想对其进行优化以使其尽可能高效。

One thing to consider is an Azure Application Gateway since it supports URL path routing which is what you need to do. 需要考虑的一件事是Azure应用程序网关,因为它支持URL路由,这是您需要做的。 https://docs.microsoft.com/en-us/azure/application-gateway/ https://docs.microsoft.com/en-us/azure/application-gateway/

That might be too much overhead but it would meet your need. 那可能是过多的开销,但可以满足您的需求。

Another option to consider is using the IIS Application Request Routing module on your cloud service. 要考虑的另一个选项是在云服务上使用IIS应用程序请求路由模块。 This support thread and this blog post talk about that approach. 支持线程和此博客文章讨论了这种方法。 (Warning both are a bit dated) (警告都有些过时)

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

相关问题 如何将存储在Azure存储中的cspkg部署到Azure云服务(经典)? - How to deploy an cspkg stored in Azure storage to Azure cloud services (classic)? Azure,具有单个DNS终结点的多种服务 - Azure, multiple services with single DNS endpoint 在Classic Cloud Services中可以使用ActiveDirectoryMembershipProvider,但不能在Azure Web App上使用 - Working ActiveDirectoryMembershipProvider in Classic Cloud Services but do not work on Azure Web App azure 云服务(经典版)有没有自动垂直伸缩的方法? - Is there a way to automatically scale vertically azure cloud services (classic)? 两个Azure云服务单个域 - Two Azure Cloud Services Single Domain Azure-多个云服务,单个存储帐户 - Azure - Multiple Cloud Services, Single Storage Account Azure-单个云服务中的多个角色与多个云服务 - Azure - Multiple roles in a single Cloud service Vs Multiple Cloud services 如何防止Azure云服务(经典)进入睡眠状态(2018年)? - How Do I Prevent An Azure Cloud Service (Classic) From Going To Sleep (In 2018)? Azure流量管理器SSL设置(非经典) - Azure Traffic Manager SSL Setup (not classic) Azure CDN 端点指向 Azure 流量管理器 - Azure CDN Endpoint poiting to Azure Traffic Manager
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM