Skip to content

feat: add client side max connection age for http/2 #1319

Description

@pjfanning

Server side is #1316.

Online search says Akka has added these configs but Pekko has no equivalent.

Useful for better load balancing in clusters. Connections can be pinned to existing server instances and new instances can be underutilized if we don't encourage clients to seek new connections from time to time.

akka.http.client.http2 {
  persistent-connection-max-age = 10m      # 0s = disabled (default)
  persistent-connection-max-requests = 0   # also available
}

We should implement a clean room Pekko solution without looking at Akka's impl due to licensing issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions