#grpc #health-check #tonic #async #rpc

tonic-health

Health Checking module of tonic gRPC implementation

23 releases (12 breaking)

0.13.0 Mar 25, 2025
0.12.3 Sep 26, 2024
0.12.2 Aug 26, 2024
0.12.1 Jul 17, 2024
0.2.0 Jul 23, 2020

#356 in Network programming

Download history 66958/week @ 2024-12-23 157921/week @ 2024-12-30 351173/week @ 2025-01-06 388903/week @ 2025-01-13 184338/week @ 2025-01-20 208406/week @ 2025-01-27 229713/week @ 2025-02-03 392881/week @ 2025-02-10 402538/week @ 2025-02-17 470162/week @ 2025-02-24 812646/week @ 2025-03-03 743779/week @ 2025-03-10 987014/week @ 2025-03-17 1135577/week @ 2025-03-24 612383/week @ 2025-03-31 640552/week @ 2025-04-07

3,403,622 downloads per month
Used in 62 crates (38 directly)

MIT license

520KB
11K SLoC

A tonic based gRPC healthcheck implementation.

Example

An example can be found here.


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);

Dependencies

~4–10MB
~95K SLoC