Add support for server side connection management:MAX_CONNECTION_AGE
#752
Labels
enhancement
New feature or request
MAX_CONNECTION_AGE
#752
Is your feature request related to a problem? Please describe.
gRPC has an implemented proposal for server side connection management.
It providers options to configure a gRPC server to manage connections. One very useful option is the
MAX_CONNECTION_AGE
.This is a rather specific implementation so maybe this would make sense to be an option in
connect
, instead of having to have users implement it in each server.As an example implementation, this is in grpc-js as
grpc. max_connection_age_ms
, with the following documentation.Having this setting available is great as by setting it, it can allow us to force connections to be cleaned up, this also helps tremendously with load balancing.
Describe the solution you'd like
I would like the max connection age to be a configurable option when creating a connect adapter for Node, as this is a server setting.
In an ideal world, all of sensible connection management options in the above linked proposal would be implemented, however the
MAX_CONNECTION_AGE
would be a fantastic start.Describe alternatives you've considered
An alternative is to let the users of connect implement their own http2 session tracking and management.
This is definitely doable, but given the specific implementation details, with jitter etc, it would be great to centralise this in the connect package.
Additional context
A brief thread about this on your public slack.
The text was updated successfully, but these errors were encountered: