| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 12-Mar-2025 | - | ||||
| README.md | H A D | 12-Mar-2025 | 741 | 16 | 11 | |
| server.rs | H A D | 12-Mar-2025 | 1.9 KiB | 68 | 52 |
README.md
1# Health checks 2 3gRPC has a [health checking protocol](https://github.com/grpc/grpc/blob/master/doc/health-checking.md) that defines how health checks for services should be carried out. Tonic supports this protocol with the optional [tonic health crate](https://docs.rs/tonic-health). 4 5This example uses the crate to set up a HealthServer that will run alongside the application service. In order to test it, you may use community tools like [grpc_health_probe](https://github.com/grpc-ecosystem/grpc-health-probe). 6 7For example, running the following bash script: 8 9```bash 10while [ true ]; do 11./grpc_health_probe -addr=[::1]:50051 -service=helloworld.Greeter 12sleep 1 13done 14``` 15 16will show the change in health status of the service over time.