Re: [akka-user] [akka-http] How many stream/graph instances will be materialized when binding to Http?

2015-11-27 Thread Akka Team
On Fri, Nov 27, 2015 at 7:15 AM, Leon Ma wrote: > Is it available in 2.0-M1 now? > 2.0-M1 is basically 1.1 so you should update anyway (more likely to M2 which we will release soon). The feature is not yet available as it requires many internal changes that are 90% done now. You won't see the in

Re: [akka-user] [akka-http] How many stream/graph instances will be materialized when binding to Http?

2015-11-26 Thread Leon Ma
Is it available in 2.0-M1 now? 在 2015年11月26日星期四 UTC-8上午1:17:46,Akka Team写道: > > Hi Leon, > > > Just worry about the cost of the materialization, if the stream is > pretty complex which involves a lot of actor creations. > > Yes, this is one reason why Akka Http is not as fast yet as it can be. >

Re: [akka-user] [akka-http] How many stream/graph instances will be materialized when binding to Http?

2015-11-26 Thread Akka Team
Hi Leon, > Just worry about the cost of the materialization, if the stream is pretty complex which involves a lot of actor creations. Yes, this is one reason why Akka Http is not as fast yet as it can be. Luckily, this is exactly what we are working on, as 2.0 will allow fusing graphs into one ac

Re: [akka-user] [akka-http] How many stream/graph instances will be materialized when binding to Http?

2015-11-25 Thread Leon Ma
Just worry about the cost of the materialization, if the stream is pretty complex which involves a lot of actor creations. If it's just "per connection" rather than "per request", then I think it's not a big deal. (Assuming the connection object is reusable across requests) Leon 在 2015年11月25日

Re: [akka-user] [akka-http] How many stream/graph instances will be materialized when binding to Http?

2015-11-25 Thread Akka Team
Ok, then the answer is that one stream will be materialized for each incoming connection sharing the lifecycle of the connection. Why does this matter btw? -Endre On Wed, Nov 25, 2015 at 9:02 AM, Leon Ma wrote: > Hi, Endre > > The code snippet is copied from akka.http.scaladsl.Http.scala > > >

Re: [akka-user] [akka-http] How many stream/graph instances will be materialized when binding to Http?

2015-11-25 Thread Leon Ma
Hi, Endre The code snippet is copied from akka.http.scaladsl.Http.scala 在 2015年11月24日星期二 UTC-8上午6:14:30,Akka Team写道: > > Hi Leon, > > On Tue, Nov 24, 2015 at 2:38 PM, Leon Ma > > wrote: > >> Hi, >> >> Checking below code: >> >> bind(interface, port, settings, httpsContext, log) >> .m

Re: [akka-user] [akka-http] How many stream/graph instances will be materialized when binding to Http?

2015-11-24 Thread Akka Team
Hi Leon, On Tue, Nov 24, 2015 at 2:38 PM, Leon Ma wrote: > Hi, > > Checking below code: > > bind(interface, port, settings, httpsContext, log) > .mapAsyncUnordered(settings.maxConnections) { connection ⇒ > handleOneConnection(connection).recoverWith { > // Ignore inco

[akka-user] [akka-http] How many stream/graph instances will be materialized when binding to Http?

2015-11-24 Thread Leon Ma
Hi, Checking below code: bind(interface, port, settings, httpsContext, log) .mapAsyncUnordered(settings.maxConnections) { connection ⇒ handleOneConnection(connection).recoverWith { // Ignore incoming errors from the connection as they will cancel the binding.