connection-refresh

command
v0.1.10-0...-786caa0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

Connection Refresh Example

This is a simple example of how a Cloud Bigtable connection could be managed to mitigate the periodic connection refreshes that occur in normal operation. The principle is to start up a new connection in the background at some interval and run some RPCs on it before swapping it into the serving path.

Note that this works best for short reads. A single scan will use just one connection. The lameduck time should be larger than any single RPC you perform, and the refresh interval should be low enough that an existing connection should not be close enough to the maximum life + duration of an RPC (or the serving connection will hit the cutoff and be reset).

The maximum life is here considered to be about an hour.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL