akka/akka-http

Support client-side load balancing with the connection pool

Open

#2,828 创建于 2019年11月26日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Scala (598 fork)batch import
1 - triagedhelp wantedt:clientt:coret:docs

仓库指标

Star
 (1,311 star)
PR 合并指标
 (平均合并 1天 10小时) (30 天内合并 2 个 PR)

描述

How it could work:

  • Allow customization of DNS resolution (see also #92) which may return multiple addresses per host
  • Allow overriding of target addresses when creating a connection
  • In the pool, use different target addresses per slot
  • Maybe a custom scheduling is also needed so that sequential requests don't all go the same then-idle connection

One way that users could hack in the first parts without changes to akka-http would be to use a custom ClientTransport returning a Flow that would transparently connect to different addresses each time it is materialized.

See also #1226

贡献者指南