Thanks to visit codestin.com
Credit goes to lib.rs

1 unstable release

0.1.0 Nov 29, 2022

#12 in #reliability

Apache-2.0

545KB
13K SLoC

This crate provides the sentinel middleware for tonic. The are two kinds of middlewares in tonic.


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