[akka-user] Streams M4: Reasons behind the new MAT type parameter/why does .to default to Keep.left?

2015-03-02 Thread Giovanni Alberto Caporaletti
I'm trying to better understand the new api. If I got it right, the new type parameter of the various stream components represents the type of what's materialized by that component when the stream is run (materialized). E.g.: A Source(actorProducerProps) has the actorRef as its

[akka-user] [Streams 1.0-M4] Using Balance to partition to independent sinks

2015-03-02 Thread rmarsch
Hi, I have a use case that I believe Akka Streams may be well suited for, but I'm not clearly seeing how to implement part of it from reading the documentation. I have a single, finite input source from an iterator stream. I want to use Balance to split this stream into N partitions and then

[akka-user] GSOC(2015)

2015-03-02 Thread adam kozuch
Hello, I would like to ask if anyone from Akka Team would like to be Google Summer of Code mentor this year? Cheers, Adam Kozuch -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives:

Re: [akka-user] [Streams 1.0-M4] From Source[Future[T], Unit] to Source[T, Unit]?

2015-03-02 Thread Jim Hazen
I think the answer is in the {Scala, Java}Docs of mapAsync: Transform this stream by applying the given function to each of the elements as they pass through this processing step. The function returns a Future and the value of that future will be emitted downstreams. As many futures as

[akka-user] [Streams 1.0-M4] Compatibility with Akka-2.4-SNAPSHOT?

2015-03-02 Thread Jim Hazen
Are these 1.0-M4 modules intended to be compatible with akka-2.4-SNAPSHOT? I'm having trouble passing a custom materializer to an IncommingConnection.handleWithAsyncHandler(). The default materializer seems to work fine, but I wanted to play with buffer sizes. implicit val materializer =

Re: [akka-user] Dead letter JournalProtocol#WriteMessageSuccessful

2015-03-02 Thread Björn Antonsson
Hi Anders, How are you stopping your actor. There is a difference between system.stop(actorRef) and actorRef ! PoisonPill. Calling stop is more direct and will as you say send a message, but that is an internal system message that will cut the line and be processed before normal actor

Re: [akka-user] [Java 1.7.0_60][Play 2.3.5][AKKA 2.3.4] Suggestions for AKKA clustering approach in auto-scaled system.

2015-03-02 Thread Björn Antonsson
Hi Anupam, Have you looked at the Reactivve Maps, Activator Tutorial  http://typesafe.com/activator/template/reactive-maps ? It has the Play web front end talking to the back end using akka clustering. B/ On 27 February 2015 at 16:20:11, Anupam Sharma (anu.lnmiit.1...@gmail.com) wrote: Could

Re: [akka-user] Advice on connecting spark-shell to a containerized standalone master

2015-03-02 Thread Björn Antonsson
Hi Simeon, What you are experiencing is this the issue where the local address used to bind the akka actor system inside the docker container doesn't match up with the external address that is exposed by the host running docker, and that you are trying to connect to. Akka will then refuse to

[akka-user] Re: unstashAll() not queuing messages until actor death

2015-03-02 Thread Sam Halliday
Grr, so it seems that TestActorRef really is incompatible with Stash. http://stackoverflow.com/questions/18335127 This is a real shame. On Monday, 2 March 2015 12:35:22 UTC, Sam Halliday wrote: Wow, I think I figured this out... and it's quite scary. Stash needs an unbounded mailbox. I

Re: [akka-user] [Streams 1.0-M4] From Source[Future[T], Unit] to Source[T, Unit]?

2015-03-02 Thread Luis Ángel Vicente Sánchez
You should use mapAsync instead of map. On 2 Mar 2015 18:03, kermitas kermi...@gmail.com wrote: Hello, as an input I have Source[PageDetails, Unit] and I also have method which transform PageDetails to Future[CategoryVector]: def categorizePage(page: PageDetails): Future[CategoryVector]

[akka-user] [Streams 1.0-M4] From Source[Future[T], Unit] to Source[T, Unit]?

2015-03-02 Thread kermitas
Hello, as an input I have Source[PageDetails, Unit] and I also have method which transform PageDetails to Future[CategoryVector] : def categorizePage(page: PageDetails): Future[CategoryVector] By using map method I can change Source[PageDetails, Unit] to Source[Future[ CategoryVector], Unit]:

[akka-user] Re: Akka Cluster (and Cluster Client) on Kubernetes

2015-03-02 Thread Jim Hazen
Might want to look at this thread. https://groups.google.com/forum/#!topic/akka-user/wyA4xNfM5LM -- 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 ---

[akka-user] Re: Akka Cluster (and Cluster Client) on Kubernetes

2015-03-02 Thread Jim Hazen
Lol. Or not, since you're the OP. Oh well, need more coffee. On Monday, March 2, 2015 at 10:52:29 AM UTC-8, Jim Hazen wrote: Might want to look at this thread. https://groups.google.com/forum/#!topic/akka-user/wyA4xNfM5LM -- Read the docs: http://akka.io/docs/ Check the FAQ:

[akka-user] Akka Cluster (and Cluster Client) on Kubernetes

2015-03-02 Thread Ashley Aitken
Howdy All, Has anyone had any experience getting an Akka Cluster and Cluster Client running on Kubernetes, e.g. on Google Container Engine (GCE)? I note the problem with Akka dropping messages when the host IP address doesn't match the container virtual IP address. I note the solution in

Re: [akka-user] [Streams 1.0-M4] From Source[Future[T], Unit] to Source[T, Unit]?

2015-03-02 Thread kermitas
THANK YOU Luis!! :) That is what I needed. Let's imagine that I have just one stream run in one JVM. Do you know how many futures will be evaluated and wait for completion? You know, I can not have billion of futures in memory :/. Will this be auto-regulated by back pressure of if not then