[akka-user] Akka http and Play json

2015-05-05 Thread Guillaume Breton
Hi all, I just wrote a small example of akka-http (RC1) with play-json library (2.3.8). It might be useful to somebody, so I published it here : https://github.com/guillaumebreton/akka-http-play-json Cheers, Guillaume -- Read the docs: http://akka.io/docs/ Check the FAQ:

Re: [akka-user] Requester 1.0 -- An Actor-friendly Version of ask

2015-05-05 Thread Justin du coeur
On Mon, May 4, 2015 at 5:46 AM, Akka Team akka.offic...@gmail.com wrote: This looks like a really nice tool! I think some of these ideas could go well with the new typed actors in the upcoming 2.4 version. Yeah -- I haven't played with typed actors yet, so I'm not sure of the best way to glue

Re: [akka-user] Cluster Sharding and Roles

2015-05-05 Thread Patrik Nordwall
On Tue, May 5, 2015 at 12:41 PM, Chanan Braunstein chanan.braunst...@pearson.com wrote: Hi Patrik, No I haven't tried that approach yet. Will ClusterSharding know which nodes have the Persistent actors on them and which the views. I assumed that I need to tell ClusterSharding which nodes

Re: [akka-user] Akka http and Play json

2015-05-05 Thread Konrad Malawski
Looks good! Always useful to show how to use various styles of app :-) If you’d like to contribute your PlayJsonSupport to Akka I think we’d like to include it, as we currently do for spray-json. Here’s the related ticket:  https://github.com/akka/akka/issues/15917 --  Cheers, Konrad 'ktoso’

Re: [akka-user] Akka http and Play json

2015-05-05 Thread Roland Kuhn
Great, thanks! 5 maj 2015 kl. 14:36 skrev Guillaume Breton breton...@gmail.com: Sure, I will do this tonight :) Thanks for the issue link. Cheers, Guillaume On Tuesday, May 5, 2015 at 2:13:33 PM UTC+2, Konrad Malawski wrote: Looks good! Always useful to show how to use various

Re: [akka-user] Akka ZMQ hello-world cannot receive any message at all

2015-05-05 Thread Akka Team
Hi, Which version of ZeroMQ are you using? Btw, please note that Akka zeromq support was deprecated in 2.3, and it is already removed in 2.4. See this ticket for further details: https://github.com/akka/akka/issues/16636 -Endre On Mon, May 4, 2015 at 8:46 PM, Houwu Bai bai.ho...@gmail.com

Re: [akka-user] Akka http and Play json

2015-05-05 Thread Guillaume Breton
Sure, I will do this tonight :) Thanks for the issue link. Cheers, Guillaume On Tuesday, May 5, 2015 at 2:13:33 PM UTC+2, Konrad Malawski wrote: Looks good! Always useful to show how to use various styles of app :-) If you’d like to contribute your PlayJsonSupport to Akka I think we’d

[akka-user] using Akka with Kamon...

2015-05-05 Thread TS
I just started using Kamon. I am getting an error while weaving (This happens when my tests run. My surefire plugin has argLine with javaagent pointing to aspectjweaver.jar Any words of wisdom would be appreciated. Thanks in advance, TS java.lang.Exception: Unexpected exception,

Re: [akka-user] akka.testkit.TestEventListener works only in application.conf and not in another configurations?

2015-05-05 Thread Harit Himanshu
Hi Endre Thanks for your inputs. I just tried the following and this seems to work. I will mention steps of what I did, may be others find it useful *src/main/resources/application.conf* akka { event-handlers = [akka.event.slf4j.Slf4jEventHandler] loglevel = INFO }

Re: [akka-user] Akka ZMQ hello-world cannot receive any message at all

2015-05-05 Thread Houwu Bai
For zmq version, the print out of the statement: val zmq = ZeroMQExtension(system) println(sZMQ ${zmq.version} ) shows: ZMQ 4.0.5 On Tuesday, May 5, 2015 at 4:38:34 AM UTC-7, Akka Team wrote: Hi, Which version of ZeroMQ are you using? Btw, please note that Akka zeromq support was

Re: [akka-user] Akka ZMQ hello-world cannot receive any message at all

2015-05-05 Thread Akka Team
Hi, The docs say (http://doc.akka.io/docs/akka/2.3.10/scala/zeromq.html): The currently used version of zeromq-scala-bindings is only compatible with zeromq 2; zeromq 3 is not supported. You are trying to use ZeroMQ 4. -Endre On Tue, May 5, 2015 at 5:26 PM, Houwu Bai bai.ho...@gmail.com wrote:

Re: [akka-user] Requester 1.0 -- An Actor-friendly Version of ask

2015-05-05 Thread Justin du coeur
On Tue, May 5, 2015 at 4:33 AM, Patrik Nordwall patrik.nordw...@gmail.com wrote: Would you be interested in adding a small section to the documentation, pointing to your repository? Perhaps in the How To http://doc.akka.io/docs/akka/2.3.10/scala/howto.html section, or in the External

Re: [akka-user] High Quaratine Frequency of akka-remote

2015-05-05 Thread Zhuchen Wang
Upgrading to akka 2.3.10 doesn't help a lot. As I mentioned in https://groups.google.com/forum/#!topic/akka-user/NGLi9GTZ42o, we do not actually rely on akka to form the cluster. We use Zookeeper to do cluster management and partition allocation but use akka-remote to communicate between

Re: [akka-user] High Quaratine Frequency of akka-remote

2015-05-05 Thread Endre Varga
What is the actual log message when the quarantine happens? Can you show snippets of your logs around the quarantine event? Can it be that your system message redelivery buffer gets filled because of Terminated messages? Without seeing a log snippet it is impossible to say anything more concrete.

Re: naming actors [was Re: [akka-user] Akka best practices.]

2015-05-05 Thread Michael Frank
On Mon, May 4, 2015 at 11:04 PM, Roland Kuhn goo...@rkuhn.info wrote: Hi Michael, 5 maj 2015 kl. 00:24 skrev Michael Frank syntaxjoc...@gmail.com: thank you konrad for the detailed explanation! i have implemented this in various ways in the past, and thought it would be nice to have a

Re: [akka-user] High Quaratine Frequency of akka-remote

2015-05-05 Thread Endre Varga
Also, are you sure that you are backpressuring the sender properly and not overwhelming remoting itself? If remoting is building up buffer size due to it not being able to send messages fast enough, then heartbeats can get delayed arbitrarily long (although we take some measures to mitigate that).

Re: naming actors [was Re: [akka-user] Akka best practices.]

2015-05-05 Thread Roland Kuhn
Hi Michael, 5 maj 2015 kl. 00:24 skrev Michael Frank syntaxjoc...@gmail.com: thank you konrad for the detailed explanation! i have implemented this in various ways in the past, and thought it would be nice to have a unified, 'blessed' mechanism. however, i understand how the

Re: [akka-user] Cluster Sharding and Roles

2015-05-05 Thread Patrik Nordwall
On Mon, May 4, 2015 at 1:01 PM, Chanan Braunstein chanan.braunst...@pearson.com wrote: Sorry, I didn't explain it correctly. I have 3 roles not two. Frontend Command (Backend insert of data with Persistent Actors) Query (Backend query with views) I guessed so. So, for now, sounds

Re: [akka-user] Requester 1.0 -- An Actor-friendly Version of ask

2015-05-05 Thread Patrik Nordwall
Very nice! Would you be interested in adding a small section to the documentation, pointing to your repository? Perhaps in the How To http://doc.akka.io/docs/akka/2.3.10/scala/howto.html section, or in the External Contributions http://doc.akka.io/docs/akka/2.3.10/contrib/index.html It could

[akka-user] How to do ExceptionHandling in Akka HTTP (Java)

2015-05-05 Thread Thomas Jäckle
Hi there. I am currently trying to implement a RESTful api with akka-http in Java and I cannot figure out how to do ExceptionHandling properly. The Scala documentation for Akka HTTP also doesn't help. Could anyone give me a hint in the right direction? return path(PATH_PREFIX,

Re: naming actors [was Re: [akka-user] Akka best practices.]

2015-05-05 Thread Roland Kuhn
5 maj 2015 kl. 21:32 skrev Michael Frank syntaxjoc...@gmail.com: On Mon, May 4, 2015 at 11:04 PM, Roland Kuhn goo...@rkuhn.info mailto:goo...@rkuhn.info wrote: Hi Michael, 5 maj 2015 kl. 00:24 skrev Michael Frank syntaxjoc...@gmail.com mailto:syntaxjoc...@gmail.com: thank you

Re: [akka-user] High Quaratine Frequency of akka-remote

2015-05-05 Thread Zhuchen Wang
Here is the log. 2015-05-05 09:51:15,029 WARN [channelservice-akka.actor.default-dispatcher-4] Association with remote system [akka.tcp://system@host2] has failed, address is now gated for [3000] ms. Reason: [Disassociated] 2015-05-05 09:51:17,697 WARN

Re: [akka-user] Cluster Sharding and Roles

2015-05-05 Thread Chanan Braunstein
Hi Patrik, No I haven't tried that approach yet. Will ClusterSharding know which nodes have the Persistent actors on them and which the views. I assumed that I need to tell ClusterSharding which nodes have what. But, I can try it and see how goes. On a similar matter, any chance you can tell

Re: [akka-user] How to do ExceptionHandling in Akka HTTP (Java)

2015-05-05 Thread Akka Team
Hi Thomas, On Tue, May 5, 2015 at 9:59 AM, Thomas Jäckle thjaec...@gmail.com wrote: Hi there. I am currently trying to implement a RESTful api with akka-http in Java and I cannot figure out how to do ExceptionHandling properly. The Scala documentation for Akka HTTP also doesn't help.

Re: [akka-user] akka.io.tcp

2015-05-05 Thread Akka Team
Hi, On Fri, May 1, 2015 at 8:39 PM, TS test.tester1...@gmail.com wrote: This stackoverflow post seems to suggest the Actors need to build a layer over Akka.io.tcp to provide complete JSON to the actors that parse JSON. Is that still the case? Yes, since that is not the point of the Akka

Re: [akka-user] Beginner: Supervisor not receiving exception thrown

2015-05-05 Thread Akka Team
Hi, It seems like you are not creating the actor which throws the exception from the actor that is supposed to monitor it. Supervision always needs a proper child-parent relation, only parents can supervise their children. -Endre On Fri, May 1, 2015 at 8:43 PM, Harit Himanshu

Re: [akka-user] [java 2.3.x] Cluster response not working

2015-05-05 Thread Akka Team
Hi Chanan, Without looking at the code it is impossible to see what goes wrong. Please package up a small, self-contained reproducer so we can see if there is any issue. -Endre On Sun, May 3, 2015 at 1:14 AM, Chanan Braunstein chanan.braunst...@pearson.com wrote: Hello, I have a cluster

Re: [akka-user] akka.testkit.TestEventListener works only in application.conf and not in another configurations?

2015-05-05 Thread Akka Team
Hi Harit, By default the config library only looks for files named application.conf or reference.conf files, see details here: https://github.com/typesafehub/config#standard-behavior You can either put a reference.conf in your test classpath that is only resolved in test scope, or alternatively,