如果后端API(本地)失败,APIM可以将请求重新路由到另一个API(本地) [英] If Back end API(On Premises) Fail Can APIM reroute the request to another API(On Premises)

查看:114
本文介绍了如果后端API(本地)失败,APIM可以将请求重新路由到另一个API(本地)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个数据中心(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆