arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.26404cs.DC
收藏

配置驱动的动态API路由用于弹性服务集成

From Conventional Multi-Vendor Failover to Adaptive API Routing: An Industrial Experience Report on Resilient Third-Party Service Integration

eBay Inc.(eBay公司)

Nataraj Agaram Sundar, Tejas Morabia

AI总结:

提出一种基于可插拔因子列表、实时遥测、断路器、舱壁隔离和闭环决策引擎的配置驱动动态API路由架构,用于弹性第三方服务集成,并通过匿名短信验证案例展示其有效性。

摘要:

现代在线服务依赖第三方API进行身份验证、支付、通信、身份验证、欺诈检测、可观察性和订单履行。这些依赖关系不在应用程序所有者的直接操作控制范围内,可能会经历区域中断、限流、延迟峰值、配额耗尽或行为变化,从而表现为用户可见的故障。本文提出了配置驱动的动态API路由,一种基于可插拔因子列表、实时遥测、断路器、舱壁隔离和闭环决策引擎的弹性第三方服务集成架构。因子列表定义了操作特定的硬门控和加权评分函数,使用实时指标、区域策略约束、配额状态、延迟、成本和事件信号评估候选提供商。路由器将路由策略与应用程序代码分离,允许操作员在运行时调整供应商选择而无需重新部署应用程序。我们形式化了因子列表模型,描述了请求时路由算法,介绍了计算滑动窗口提供商健康指标的事件管道,并分析了降级提供商场景下的故障转移行为。我们还描述了一个匿名的短信验证案例研究,其中手动供应商切换被由完成率遥测驱动的自动路由所取代。

英文摘要:

High-scale online services often rely on third-party APIs in user-facing flows such as authentication, messaging, payments, fraud detection, and identity verification. Integrating alternate providers and operating conventional failover controls is a common resilience baseline, but redundancy alone does not make provider selection adaptive, explainable, or policy-aware. This paper reports an anonymized industrial experience evolving a conventional multi-vendor SMS-provider failover arrangement in a large marketplace setting into configuration-driven adaptive API routing. The report emphasizes practical motivation, industrial context, design rationale, rollout path, operational challenges, lessons learned, and transferability conditions. The approach uses operation-specific pluggable factor lists to separate routing policy from application code, combines hard eligibility gates with weighted provider scoring, and closes the loop with business-outcome telemetry, decision logs, traffic-shift controls, and recovery safeguards. We explain why conventional mechanisms such as timeouts, retries, circuit breakers, static priority lists, dashboards, alerts, and incident runbooks remain necessary but insufficient for partial, regional, quota-related, or business-outcome degradation. A supporting synthetic replay evaluation examines complete outage, latency spike, regional failure, quota exhaustion, partial degradation, and stale telemetry scenarios without disclosing production data. The experience suggests that adaptive provider routing can reduce dependence on incident-time interpretation when the operation is critical, telemetry volume is sufficient, and organizational controls exist for policy ownership, explainability, and safe traffic movement. The paper concludes with practitioner guidance and cautions for teams considering similar architectures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑