Hello,

I'm wondering if there is a way to use back-pressure mechanism on incoming 
connections with Akka HTTP ? 
The documentation mentions clearly that there is no back-pressure applied 
to the connections Source if we use the startHandlingWith* functions 
(http://doc.akka.io/api/akka-stream-and-http-experimental/1.0-M2/?_ga=1.267496717.2041479737.1421658563#akka.http.Http$$ServerBinding).
 
Therefore, I tried to do something like the following:
val serverBinding = Http(system).bind(interface = "localhost", port = port)
serverBinding.connections.buffer(5, 
OverflowStrategy.dropTail).to(ForeachSink(_ handleWith myFlow)).run()

But, when sending a bunch of concurrent connections to my server, the 
buffer in the above code doesn't seem to have any effect.
Am I doing anything wrong ?

Cheers,
Jean

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to