1 unstable release
0.1.0 | Nov 29, 2022 |
---|
#8 in #sentinel
545KB
13K
SLoC
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.
lib.rs
:
This crate provides the sentinel middleware for tonic. The are two kinds of middlewares in tonic.
SentinelInterceptor
based ontonic::service::interceptor::Interceptor
SentinelService
andSentinelLayer
based ontower::Service
Dependencies
~9–16MB
~213K SLoC