[akka-user] Re: akka-streams - How to define a Source from an arbitrary event stream?

2015-02-20 Thread Giovanni Alberto Caporaletti
Hi Jim, Simon. What you say is exactly what I did: I have a normal actor on a different dispatcher (but it could be any type of asynchronous code) that sends messages to an actor producer that acts as the Source of the stream. +1 for adding more external interaction recipes on the

Re: [akka-user] Akka streams newbie questions

2015-02-20 Thread Roland Kuhn
Hi George, thanks for the feedback, we know that a proper testkit will be required by users, but we still only have our internal facilities. We are heavily working on finalizing streams themselves, if you want to help out with suggesting a concrete testkit (perhaps even in code, take a look at

Re: [akka-user] Akka threads prevents jvm from existing

2015-02-20 Thread Patrik Nordwall
If an actor is blocking (processing a message) the shutdown will not complete until that is finished. /Patrik On Fri, Feb 20, 2015 at 10:30 AM, Akka Team akka.offic...@gmail.com wrote: Hi there and welcome to akka-user! In general it shouldn't take that long for an actor system to shut down,

Re: [akka-user] Re: Confusing problem whilst testing a PushPullStage implementation of a sliding window

2015-02-20 Thread Endre Varga
Hi Wolfgang, On Thu, Feb 19, 2015 at 7:35 PM, Wolfgang Friedl wolfgang.fri...@hotmail.com wrote: Hi Endre My publisher is quite simple! It is an actor (extending the ActorPublisher) waiting for incoming messages. He puts the messages in the buffer if the totaldemand is 0 I call onNext.

Re: [akka-user] Akka threads prevents jvm from existing

2015-02-20 Thread Akka Team
Hi there and welcome to akka-user! In general it shouldn't take that long for an actor system to shut down, would you mind sharing an outline of the code you're using to shutdown the system? Are you sure shutdown was actually called? Shutting down is progagated as system message, which has higher

Re: [akka-user] akka-streams - How to define a Source from an arbitrary event stream?

2015-02-20 Thread Endre Varga
Hi Simon, One trick I like to use is to define a Source in terms of a PushPullStage. Now this sounds strange, since a PushPullStage is supposed to be someting that transforms incoming element into outgoing elements, how can that be a Source? Well, the trick is this: def mySource =

[akka-user] Re: SSL encryption for actor messages

2015-02-20 Thread carlos Hernandez
I got the answer (and figured out what I was doing wrong) in Stackoverflow: *http://stackoverflow.com/questions/28626917/how-can-i-encrypt-using-ssl-akka-remoting-messages/28629725#28629725* Thank you very much On Thursday, 19 February 2015 19:19:29 UTC+1, carlos Hernandez wrote: Hello, I

[akka-user] Best practice to integrate Akka with Play

2015-02-20 Thread Amir Karimi
(I've asked this question in Play framework mailing list https://groups.google.com/forum/#!topic/play-framework/zjBhdC80VWM but it seems better to be asked here) It's possible to use Play built-in actor system but it seems OK for a few actors (as it said in docs) while I would have a heavy

[akka-user] akka-persistance - nested persist

2015-02-20 Thread Manuel Bernhardt
Hi, I'm in a situation where it would be lovely to be able to do a nested persist, i.e.: persist(SomeEvent)(handle) ... def handle = { case SomeEvent = changeState() stateChangeConsequences().foreach { _ = persist(SomeOtherEvent)(handle) } } According to a quick

Re: [akka-user] ActorSystem disappear [akka 2.3.8 , 2.3.9]

2015-02-20 Thread Elliott Miller
Hi Wolfgang, Partik, Roland I may be seeing a similar problem. I have spent some time, and I believe I can reproduce this most of the time. I start a 2 node cluster (separate JVM's), then periodically restart the second node usually within 5 attempts the ActorSystem on the first node is

[akka-user] Re: backpressure on spray-can (and wandoulab websockets)

2015-02-20 Thread Sam Halliday
To follow up on this, at least for TextFrames, I managed to trick the wandoulabs websockets layer into sending an Ack. Basically, instead of using their recommended API (in the server worker) val Pong = TextFrame(PONG) ... send(Pong) I am bypassing the frame rendering logic and doing

[akka-user] backpressure on spray-can (and wandoulab websockets)

2015-02-20 Thread Sam Halliday
Hi all, I am trying to enable ACK-based backpressure on a websocket server. The Akka IO backpressure is really fantastic and easy to understand[1]. The Spray Can docs mention something about automatic backpressure[2], but I can't find any more information about what this means. I presume this

[akka-user] akka-http port binding disappeared and ActorSystem disappeared as well...

2015-02-20 Thread Luis Ángel Vicente Sánchez
We might have found a potential issue on akka-http / akka. We have an application that is using akka-http hosted on Amazon EC2; we decided to scale horizontally to 2 instances and added a Amazon ELB. The ELB was doing this simple health check every 3 seconds: 1.- Connect to the HTTP port (i.e.

Re: [akka-user] akka-streams - How to define a Source from an arbitrary event stream?

2015-02-20 Thread Luis Ángel Vicente Sánchez
That's quite a nice little trick Endre, way better that writing an ActorPublisher if you don't need to communicate with the Producer. I did something similar to create an infinite stream from Amazon SQS (using an infinite Iterator[Unit] and mapAsyncUnordered) but this seems a much better approach.