Expand description
WAE Resilience - 弹性容错模块
提供微服务架构中的弹性容错能力,包括熔断器、限流器、重试、超时和舱壁隔离。
深度融合 tokio 运行时,所有 API 都是异步优先设计。 微服务架构友好,支持分布式系统的高可用性保障。
Structs§
- Bulkhead
- 舱壁隔离
- Bulkhead
Config - 舱壁配置
- Bulkhead
Permit - 舱壁许可
- Circuit
Breaker - 熔断器
- Circuit
Breaker Config - 熔断器配置
- Resilience
Pipeline - 弹性管道
- Resilience
Pipeline Builder - 弹性管道构建器
- Resilience
Pipeline Config - 弹性管道配置
- Retry
Config - 重试配置
- Retry
Context - 重试上下文
- Sliding
Window - 滑动窗口限流器
- Sliding
Window Config - 滑动窗口配置
- Timeout
Config - 超时配置
- Token
Bucket - 令牌桶限流器
- Token
Bucket Config - 令牌桶配置
- WaeError
- 中心化错误类型
Enums§
- Circuit
State - 熔断器状态
- Retry
Policy - 重试策略
Traits§
- Rate
Limiter - 限流器 trait
Functions§
- retry_
async - 执行带重试的异步操作
- retry_
async_ if - 执行带重试的异步操作 (带条件判断)
- with_
timeout - 为异步操作添加超时
- with_
timeout_ raw - 为异步操作添加超时 (返回原始错误类型)
Type Aliases§
- Resilience
Result - 弹性容错操作结果类型
- WaeResult
- WAE 结果类型