You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
examples/health: fix markdown formatting and improve content (#8625)
This PR fixes some markdown formatting issues flagged by an internal
tool (when attempting to import recent changes into google3). It also
makes minor improvements to the content.
RELEASE NOTES: N/A
By using the health library, clients can gracefully avoid using servers as they encounter issues.
7
-
Most languages provide an implementation out of box, making it interoperable between systems.
8
+
Clients use the health library to gracefully avoid servers that encounter
9
+
issues. Most languages provide an out-of-box implementation, which makes it
10
+
interoperable between systems.
8
11
9
12
## Try it
10
13
@@ -21,13 +24,17 @@ go run client/main.go
21
24
22
25
### Client
23
26
24
-
Clients have two ways to monitor a servers health.
25
-
They can use `Check()` to probe a servers health or they can use`Watch()` to observe changes.
27
+
Clients have two ways to monitor a server's health. They use `Check()` to probe
28
+
a server's health or `Watch()` to observe changes.
26
29
27
-
In most cases, clients do not need to directly check backend servers.
28
-
Instead, they can do this transparently when a `healthCheckConfig` is specified in the [service config](https://github.com/grpc/proposal/blob/master/A17-client-side-health-checking.md#service-config-changes) and the [health package](https://pkg.go.dev/google.golang.org/grpc/health) is imported.
29
-
The `serviceName` in `healthCheckConfig` will be used in the health check when connections are established.
30
-
An empty string (`""`) typically indicates the overall health of a server should be reported.
30
+
In most cases, clients do not directly check backend servers. Instead, they do
31
+
this transparently when you specify a `healthCheckConfig` in the [service
0 commit comments