简体   繁体   中英

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).

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.

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. 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. This support thread and this blog post talk about that approach. (Warning both are a bit dated)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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