1 unstable release
| 0.1.0 | Nov 29, 2022 |
|---|
#12 in #reliability
545KB
13K
SLoC
This crate provides the sentinel middleware for tonic. The are two kinds of middlewares in tonic.
SentinelInterceptorbased ontonic::service::interceptor::InterceptorSentinelServiceandSentinelLayerbased ontower::Service
Sentinel in Tower
Implement Sentinel as a service in Tower.
In the example directory, we provide an example for tonic.
Why Setinel?
Though tonic::transport::channel::Endpoint does provide methods like rate_limit() to construct middleware like tower::limit::rate::RateLimitLayer(),
Sentinel provides more general and flexible high-reliability services.
And Sentinel will be the default traffic governance implentation for the OpenSergo standard.
Dependencies
~14–18MB
~251K SLoC