Re: [akka-user] Completing request outside of main controller

2016-12-21 Thread Sid Feiner
Thanks! And by the way, in the migration guide it doesn't mention that the Routing result type has gone from Unit to Future[RouteResult]. I think it'd help a lot of people if you'd mention it and even add a reference to the article written by Johan. It really helped a lot :) On Tuesday, Decembe

Re: [akka-user] Actor creation memory consistency

2016-12-21 Thread Roland Kuhn
The answer lies in UnstartedCell, but beware that this code may be morally challenging: it uses a Lock ;-) Regards, Roland Sent from my iPhone > On 21 Dec 2016, at 08:02, stella wrote: > > I'm trying to understand how actor creating is being performed internally. > So, once we created our A

Re: [akka-user] Strange behavior with unzip when fusing is on

2016-12-21 Thread Endre Varga
On Tue, Dec 20, 2016 at 11:34 PM, Anil Gursel wrote: > I see that unzip does not pull the next element when fusing is on. I > understand that when fusing is on, a message goes through the entire stream > and then the next message goes through. > This is not true, messages are handled concurrent

Re: [akka-user] Strange behavior with unzip when fusing is on

2016-12-21 Thread Roland Kuhn
I think what is happening here is that zip does not pull until the delayed element has come out, meaning that the second (less delayed) element will not overtake it. mapAsync is effectively a buffer, so you'll need a buffer in front of zip.in0 as well to enable parallelism. Regards, Roland Se

Re: [akka-user] Strange behavior with unzip when fusing is on

2016-12-21 Thread Endre Varga
Yes, that might be the case. On Wed, Dec 21, 2016 at 9:39 AM, Roland Kuhn wrote: > I think what is happening here is that zip does not pull until the delayed > element has come out, meaning that the second (less delayed) element will > not overtake it. mapAsync is effectively a buffer, so you'll

Re: [akka-user] Completing request outside of main controller

2016-12-21 Thread Konrad Malawski
Good idea, thanks - I made it a ticket. https://github.com/akka/akka-http/issues/675 If you had some minutes to spare it'd be awesome if you could help us out by writing what you think would be useful here: https://github.com/akka/akka-http/edit/master/docs/src/main/paradox/scala/http/migration-gu

[akka-user] TCP SSl Support in Akka 2.4.16 http://doc.akka.io/docs/akka/current/java/io-tcp.html

2016-12-21 Thread Gaurav Kumar Jayswal
I have found tcp ssl support in akka 2.2 but didn't found how to appy ssl support in current stable version. Can anyone help to know how to apply ssl support like this https://github.com/akka/akka/blob/v2.2.0/akka-docs/rst/java/code/docs/io/japi/SslDocTest.java -- >> Read the doc

Re: [akka-user] Completing request outside of main controller

2016-12-21 Thread Sid Feiner
Done! :) Again, thanks a lot! On Wednesday, December 21, 2016 at 2:30:11 PM UTC+2, Konrad Malawski wrote: > > Good idea, thanks - I made it a ticket. > https://github.com/akka/akka-http/issues/675 > > If you had some minutes to spare it'd be awesome if you could help us out > by writing what you

[akka-user] Re: TCP SSl Support in Akka 2.4.16 http://doc.akka.io/docs/akka/current/java/io-tcp.html

2016-12-21 Thread Rafał Krzewski
You should take a look at Akka Streams. You can combine akka.streams.javadsl.Tcp and akka.streams.javadsl.TLS to create custom SSL/TLS enabled TCP servers and clients. Cheers, Rafał W dniu środa, 21 grudnia 2016 13:59:27 UTC+1 użytkownik Gaurav Kumar Jayswal napisał: > > I have found tcp ssl s

[akka-user] Akka Stream TCP + Akka Stream Kafka producer not stopping not publishing messages and not error-ing out

2016-12-21 Thread Darien Martinez Torres
I have this stream: Source(IndexedSeq(ByteString.empty)) .via( Tcp().outgoingConnection(bsAddress, bsPort) .via(Framing.delimiter(ByteString("\n"), 256, allowTruncation = true)) .map(_.utf8String) ) .map(m => new ProducerRecord[Array[Byte], String](kafkaTopic, m)) .runWith( Producer.pl

Re: [akka-user] Sharding Coordinator don't start from a youger node

2016-12-21 Thread Patrik Nordwall
Thanks for the update. Yes, it should be done at startup. On Wed, Dec 21, 2016 at 9:36 PM, Víctor Martínez wrote: > Hi, > > > > Finally, I have the solution. When the sharding is created in the request > the sharding fail. If I start the cluster in main all work right. > > > > Thanks Patrick for

Re: [akka-user] Strange behavior with unzip when fusing is on

2016-12-21 Thread Anil Gursel
Thanks Endre and Roland! Yes, when I add a buffer just before zip.in0, both tests pass: unzip.out0.buffer(10, OverflowStrategy.backpressure) ~> zip.in0 So, adding the buffer is enabling the parallelism. However, why does not the first test (the one without zip/unzip) need a buffer to enable pa

Re: [akka-user] Strange behavior with unzip when fusing is on

2016-12-21 Thread Roland Kuhn
.zip synchronizes its input streams because it requires one element from each for every output, .merge consumes its inputs independently (as long as there is downstream demand). Regards, Roland > 21 dec. 2016 kl. 22:20 skrev Anil Gursel : > > Thanks Endre and Roland! Yes, when I add a buffer

[akka-user] Re: akka-http route question

2016-12-21 Thread Muthu Jayakumar
For anyone who wants to do something similar here is how i have done with akka-http 10. DebuggingDirectives.logRequestResult(LoggingMagnet(_ => clockHTTPTime(log))) private def clockHTTPTime(log: LoggingAdapter)(req: HttpRequest): (Any) => Unit = { def clockHTTPTimeInternal(log: LoggingAdapte

[akka-user] akka.kafka.KafkaConsumerActor$Internal$Stop$ Stop system

2016-12-21 Thread Arun
Hi, I am using Akka Kafka stream (http://doc.akka.io/docs/akka-stream-kafka/current/home.html) to stream messages from Kafka, if Kafka server is down, I starting getting following error: Consumer interrupted with WakeupException after timeout. Message: null. Current value of akka.kafka.consum

[akka-user] Re: akka.kafka.KafkaConsumerActor$Internal$Stop$ Stop system

2016-12-21 Thread Arun
so far I could able be think create KafkaConsumerActor in Supervisor with supervisor strategy and use same with Consumer.committableExternalSource val consumer: ActorRef = context.actorOf(KafkaConsumerActor.props(consumerSettings)) Thanks Arun On Thursday, December 22, 2016 at 10:59:12 AM UTC