Skip to content

feat(common): domain failover via HTTP interceptor with circuit breakers#278

Open
sesky4 wants to merge 1 commit into
TencentCloud:masterfrom
sesky4:endpoint-failover
Open

feat(common): domain failover via HTTP interceptor with circuit breakers#278
sesky4 wants to merge 1 commit into
TencentCloud:masterfrom
sesky4:endpoint-failover

Conversation

@sesky4

@sesky4 sesky4 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Add EndpointFailoverInterceptor that selects healthy API hosts using per-host circuit breakers and TLD rotation (.com → .cn → .com.cn).

  • Supports backupEndpoint opt-in mode and default TLD family rotation
  • Matches hosts into families (ai, internal, normal) most-specific-first
  • Re-signs requests (TC3-HMAC-SHA256, HmacSHA1/256, SKIP) for new host
  • Circuit breaker: Closed → Open → HalfOpen with configurable BREAKER_TIMEOUT_MS
  • Gate: disableRegionBreaker in ClientProfile
  • No same-request retry (API calls may be non-idempotent)

@sesky4 sesky4 force-pushed the endpoint-failover branch from bd793d0 to 87c205b Compare June 19, 2026 09:24
@sesky4 sesky4 force-pushed the endpoint-failover branch from 87c205b to f4c8f56 Compare June 19, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant