Re: [akka-user] Akka-HTTP: How does backpressure work with Futures and execution contexts?

2017-08-07 Thread Akka Team
Each connection is a stream of Request => Response, having a slow Future inside that stream will backpressure so the same client cannot push another request through that connection. The Akka HTTP server by default limits the number of concurrent connections to 1024 (you can set it using akka.http.

[akka-user] Akka-HTTP: How does backpressure work with Futures and execution contexts?

2017-08-01 Thread Josh F
Hi all, I am just trying out akka-http and haven't been able to find much information about how backpressure works when we use futures and run operations async. For example, if I create a REST API with a route that looks like this: ``` val route = (path("users") & post & entity(as[NewUser]))