littlemanco / the-golden-path.net

A template for writing a new tool or service.
0 stars 0 forks source link

Clients #19

Open andrewhowdencom opened 4 years ago

andrewhowdencom commented 4 years ago

Clients should poll something to see whether they're out of date and show a notice every ${PERIOD} (perhaps with exponential backoff && jitter).

andrewhowdencom commented 4 years ago

They should also have a fairly aggressive default timeout. Maybe 100ms.

andrewhowdencom commented 4 years ago

Implement keep-alive:

https://github.com/grpc/grpc-go/blob/master/Documentation/keepalive.md

Allows detecting a peer failure early and cycling the connection. Maybe ~60 seconds?