#rpc #grpc #async #healthcheck

tonic-health

Health Checking module of tonic gRPC implementation

14 releases (8 breaking)

0.9.2 Apr 17, 2023
0.9.0 Mar 31, 2023
0.8.0 Nov 28, 2022
0.7.0 Jul 29, 2022
0.2.0 Jul 23, 2020

#1037 in Network programming

Download history 35472/week @ 2023-02-09 32985/week @ 2023-02-16 40835/week @ 2023-02-23 45414/week @ 2023-03-02 53162/week @ 2023-03-09 58268/week @ 2023-03-16 60890/week @ 2023-03-23 52578/week @ 2023-03-30 50397/week @ 2023-04-06 58378/week @ 2023-04-13 55776/week @ 2023-04-20 53035/week @ 2023-04-27 60086/week @ 2023-05-04 54459/week @ 2023-05-11 45844/week @ 2023-05-18 42030/week @ 2023-05-25

214,032 downloads per month
Used in 13 crates (12 directly)

MIT license

480KB
10K SLoC

tonic-health

A tonic based gRPC healthcheck implementation. It closely follows the official health checking protocol, although it may not implement all features described in the specs.

Please follow the example in the main repo to see how it works.

Features

  • transport: Provides the ability to set the service by using the type system and the NamedService trait. You can use it like that:
    let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
    let client = HealthClient::new(conn);

lib.rs:

A tonic based gRPC healthcheck implementation.

Example

An example can be found here.

Dependencies

~4.5–10MB
~157K SLoC