title: Akka Http Client + Load Balancer
body: <p>What is the correct way to fire a load-balancer using akka http? Currently I’m using the follow piece of code:</p>
  
  <pre><code>val poolClientFlow = Http().cachedHostConnectionPool[String](host, port)
  
  source
    .map(url =&gt; HttpRequest(uri = url) -&gt; url)
    .via(poolClientFlow)
    .to(Sink.actorRef(myActor, IsDone))
    .run()
  </code></pre>
  
  <p>Since I open the connection before, the load balancer understand I want to send to the same machine, so the roundrobin does not work properly.
  Should I move the <code>poolClientFlow</code> to the <code>.via</code>, open and closing it every time?</p>