1 unstable release
0.1.0 | Nov 29, 2022 |
---|
#1190 in Concurrency
Used in sentinel-tonic
540KB
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 Tower.
See the examples for help.
[http]: https://docs.rs/http
Dependencies
~4.5–6MB
~119K SLoC