[akka-user] Messages are lost on node failure while shard is moving to another location.

2015-07-11 Thread Danny Lesnik
I've created POC with three nodes in the cluster and have the following scenario: I have modified Counter scala example from Cluster Sharding docs. and have two shards one of odd number and second for even number and persistent shard Actor Counter which sums messages it receives and persists

[akka-user] SprayJsonSupport implicits in scope for routes if defined in Main, but not if defined elsewhere

2015-07-11 Thread Austin Guest
Hi all. Jumping on the akka-streams/akka-http bandwagon and very excited! However, I've got a couple of puzzlers that stopped me short at the door. Quick context: * I'm making the server for a location-sharing app for activists

[akka-user] Re: [akka-http] akka-http-session project: client-side sessions, remember me, csrf

2015-07-11 Thread Magnus Andersson
Hi I recommend just keeping cookies out of the equation, that makes CSRF issues go away which gives you a simpler implementation. Some answers below, hope you don't mind the long answers :) Where possible I tried to base the impl on what's in Play, as I trust them to do the right thing

[akka-user] Re: [akka-http] akka-http-session project: client-side sessions, remember me, csrf

2015-07-11 Thread Adam Warski
You have something similar in concept to what Play Framework uses for sessions today. Nothing wrong with that per say, but writing secure protocols (session serialization and shared trust) is hard for non trivial implementations. That's exactly my intention, that is to extract the

[akka-user] Re: Is there any akka contrib or pattern which can split and join large payload messages?

2015-07-11 Thread john . vieten
actually I realised that some work has been done: like https://github.com/sourcedelica/akka/blob/wip-3842-message-sequence-pattern-ericp/akka-contrib/src/main/scala/akka/contrib/pattern/MessageSequence.scala but as I get deeper into akka I think the best way is not to slice messages (since the

[akka-user] Re: [akka-http] akka-http-session project: client-side sessions, remember me, csrf

2015-07-11 Thread Adam Warski
I recommend just keeping cookies out of the equation, that makes CSRF issues go away which gives you a simpler implementation. I had the impression that cookies are still the way things are done, and to be honest didn't really consider not using them at all. But it seems I should revise

[akka-user] Re: [akka-http] akka-http-session project: client-side sessions, remember me, csrf

2015-07-11 Thread Magnus Andersson
Hi again I had the impression that cookies are still the way things are done, and to be honest didn't really consider not using them at all. But it seems I should revise that :) I agree it is still very common and if you wish you can combine different methods. But the newer

[akka-user] Re: An updated tutorial for 2.3 version API?

2015-07-11 Thread Shauli Antar
Based on the code found in the akka tutorial' i've create an updated 2.3.11 version code, so you can download it and give it a try. https://github.com/Shaulian/Actors-Pi-Calc-using-2.3.11-akka-java-version Shauli On Monday, January 26, 2015 at 3:57:28 AM UTC+2, Atom Cong wrote: Hi, guys,

[akka-user] scaladoc artefact in sbt updateClassifiers

2015-07-11 Thread Sam Halliday
Hi all, I often find myself wanting to read the scaladocs for Akka using the built-in ENSIME documentation browser (e.g. show me docs of the symbol at point). But the doc artefact that comes with Akka, via the standard sbt `updateClassifiers` call, seems to be the Javadocs, not the Scaladocs.

[akka-user] Re: SprayJsonSupport implicits in scope for routes if defined in Main, but not if defined elsewhere

2015-07-11 Thread Jason Martens
Hello, I too had this problem, and I solved it by switching to objects with an apply method that takes an implicit parameter. My Main object extends App and Service: trait Service { implicit val system: ActorSystem implicit def executor: ExecutionContextExecutor implicit val

Re: [akka-user] scaladoc artefact in sbt updateClassifiers

2015-07-11 Thread Konrad Malawski
Hi Sam, Yes, interesting catch - we do not publish scaladocs as a jar. I guess we did not bump into this previously since many Scala devs (including us) use IDEs which understand Java = understand JavaDoc (or they use source jars, I think IntelliJ does). I don't know the initial reasoning about