如果后端API(本地)失败,APIM可以将请求重新路由到另一个API(本地) [英] If Back end API(On Premises) Fail Can APIM reroute the request to another API(On Premises)
问题描述
我有两个数据中心(DC).
I have two datacenter(DC) .
DC1(API)和DC2(API)
DC1(API) and DC2(API)
APIM调用DC1(API),但是数据中心1失败.
APIM Calling DC1(API) But the Datacenter 1 is fail .
因此基于数据中心1响应.APIM策略可以将请求重新路由到 DC2(API)
So based on Datacenter 1 response .Can APIM policy reroute the request to DC2(API)
推荐答案
您可以使用入站策略为已发布的API路由请求: https://docs.microsoft.com/zh-CN/azure/api-management/policies/route-requests-based-on-size .您可以根据需要编辑策略.
You could use inbound policy for the published APIs to route the request: https://docs.microsoft.com/en-us/azure/api-management/policies/route-requests-based-on-size. You could edit the policy as per your requirement.
要从Azure API管理服务访问外部服务,您只能使用3如下的政策
这篇关于如果后端API(本地)失败,APIM可以将请求重新路由到另一个API(本地)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!