akka/akka-http

Support client-side load balancing with the connection pool

Open

#2828 aperta il 26 nov 2019

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Scala (598 fork)batch import
1 - triagedhelp wantedt:clientt:coret:docs

Metriche repository

Star
 (1311 star)
Metriche merge PR
 (Merge medio 1g 10h) (2 PR mergiate in 30 g)

Descrizione

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

Guida contributor