1 个不稳定版本
| 0.1.0 | 2022年11月29日 |
|---|
#9 in #sentinel
545KB
13K SLoC
Sentinel 在 Tower 中
在 example 目录中,我们提供了一个 tonic 的示例。
为什么选择 Sentinel?
虽然 tonic::transport::channel::Endpoint 提供了如 rate_limit() 方法来构建中间件,如 tower::limit::rate::RateLimitLayer(),但 Sentinel 提供了更通用和灵活的高可靠性服务。
Sentinel 将成为 OpenSergo 标准的默认流量治理实现。
lib.rs:
依赖项
~9–12MB
~209K SLoC