【问题标题】:Can we customize or change the routing method for APIM?我们可以自定义或更改 APIM 的路由方法吗?
【发布时间】:2020-10-23 03:52:25
【问题描述】:

this link 可以看出,API 管理默认使用 Performance 路由方法。有什么方法可以改变 APIM 的方法吗?我的意思是,如果我想采用基于 优先级 的路由而不是性能或地理路由怎么办?我们可以为 APIM 自定义路由方法吗?

【问题讨论】:

    标签: azure azure-api-management apim


    【解决方案1】:

    就像你提到的,API 管理默认使用性能路由方法。

    含义,它尝试连接到可能更近(延迟更低)的区域!

    没有办法覆盖它。但是,要使用自定义路由方法(如基于优先级的路由),您可以使用 Azure Traffic Manager

    Azure 流量管理器支持以下路由方法

    1. 优先级(您的要求)
    2. 地理
    3. 性能
    4. 多值
    5. 子网
    6. 加权

    偶然发现以下文章详细解释了 APIM 与流量管理器和自定义路由方法的配置:

    1. https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-deploy-multi-region#-use-custom-routing-to-api-management-regional-gateways

    2. http://techtrainer.me/configure-highly-available-multi-region-azure-apis-using-traffic-manager/

    【讨论】:

    • @girish - 以上对您的要求有帮助吗?
    • 是的,这很有帮助。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-06-01
    • 1970-01-01
    • 2019-03-10
    • 2022-12-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多