[akka-user] Re: Akka sensible design choice for a stateless server

2015-11-09 Thread Guido Medina
The analogy of the JMM for Akka is also very interesting, it is an important aspect of Akka to be aware of http://doc.akka.io/docs/akka/2.4.0/general/jmm.html On Monday, November 9, 2015 at 9:02:08 PM UTC, Stuart Reynolds wrote: > > In a highly concurrent system, it seems to me that the major be

[akka-user] Re: Akka sensible design choice for a stateless server

2015-11-09 Thread Guido Medina
I think you are looking at it from a very simplistic perspective without taking into account many details that happen behind the scene, people tend to use concurrent execution wrong where at the end of the day you still have a finite set of processors -and small amount- so concurrent IMHO or at

Re: [akka-user] Re: deserializing ActorRef's after jvm restart, will it point to the correct actor?

2015-11-09 Thread Guido Medina
Hi Kostas, I have few micro-services and some supervisor actors which inherited from an AbstractSupervisor template which uses local caches per microservices with an optimistic approach, example with requirements: 1) There is a uniform pattern where each micro-service is an independent categor

[akka-user] code that will block for some time, part of an actor or should I wrap it inside a Feature?

2015-11-09 Thread Kostas kougios
I have some code that will take some time to execute. This code runs in a few steps with each step "blocking" for some time to store data into files. I am thinking in creating a new actor which can receive 1 message for each step. Will the block part affect only that actor or will other actors b

[akka-user] Akka sensible design choice for a stateless server

2015-11-09 Thread Stuart Reynolds
In a highly concurrent system, it seems to me that the major benefit of using Akka is not in allowing concurrent computation (Futures work more simply), but in ensuring correct execution of things that should not happen concurrently (e.g. serializing access to state). (from reading this: Don't u

[akka-user] Re: Does akka 2.4 persistent actor cluster sharding Supervisor combination works on multi node cluster?

2015-11-09 Thread sd d
I noticed one subtle thing in my cassandra entity persistence. In my Subscriber class. If I use the "ActorRef myEntity = ClusterSharding.get(getContext().system()).shardRegion("MyEntity");" then I see the persistence_id='counter-worker-MyEntity123'. Where as, if I use the previously mentioned

[akka-user] Does akka 2.4 persistent actor cluster sharding Supervisor combination works on multi node cluster?

2015-11-09 Thread sd d
*Source code github link:* https://github.com/sdab75/akka-cluster-sharding-example/tree/master I am struggling to get the persistent actor and akka cluster sharding “supervisor” combination work. The cluster sharding ‘without’ akka supervisor works fine i.e. in my Subscriber if I get the

[akka-user] Replacing Remoting Protocol?

2015-11-09 Thread Rob Crawford
I'm looking at Akka as a possible framework for an application that's distributed, stateful, and message-oriented, but have an odd roadblock -- I can't use a straight TCP connection to communicate with the remote nodes. I have to use a hybrid approach, where messages to and from the central sys

[akka-user] Akka-Remoting Field Serialization

2015-11-09 Thread robinmoss
Hi, Just wondering if there is a way to specify a serializer for a specific class (not specific message)? For instance in my case i have a tree and instead of passing an actual node of the tree i'd rather pass just the path of that node. This would save a lot of additional serialization headac

[akka-user] Unable to manage Exception akka-stream 2.0-M1

2015-11-09 Thread Richard Grossman
Hi I've define a flow like this: def makeAST = Flow[String].log("Parse Json") map { json => Try { val jsonMessage = parse(json) val jsonNode = asJsonNode(jsonMessage) val report = validator.validate(jsonSchema, jsonNode) if (!report.isSuccess) throw new Exception("Vali

[akka-user] Delaying recovery?

2015-11-09 Thread Brice Figureau
Hi, I have a ClusterSharding whose remembered entries are PersistentActors, using the cassandra journal. The problem is if one of the node fails over (or if the cluster is fully restarted), then all those entries try to recover at the exact same time, overloading the persistence backend which so

[akka-user] Re: Cluster Sharding and File Descriptor Leak

2015-11-09 Thread Hengky Sucanda
My Bad, it turns out i didn't close the NingWs on play framework in case of failure. On Monday, November 9, 2015 at 12:31:45 PM UTC+7, Hengky Sucanda wrote: > > Hi all, > > Recently my system has been hit with a "too many open files" error. > Attached is the result of running netstat -apn . > >

Re: [akka-user] Source.queue completion signal

2015-11-09 Thread Viktor Klang
Happy hAkking! On Mon, Nov 9, 2015 at 9:14 AM, Francesco Di Muccio < francesco.dimuc...@gmail.com> wrote: > Nice, I didn't think about it. The failure can be implemented using an > Either, anyway I got the point, thank you very much. > > Il giorno domenica 8 novembre 2015 20:53:35 UTC+1, √ ha scr

Re: [akka-user] Re: Can't see Content-Type in HttpRequest's header list

2015-11-09 Thread Viktor Klang
Happy hAkking! On 9 Nov 2015 03:57, "Akira Hayakawa" wrote: > With some fixes on the client side explicitly adding Content-Type now > works. Thanks Viktor. > > On Sun, Nov 8, 2015 at 9:28 PM, Viktor Klang > wrote: > >> >> http://stackoverflow.com/questions/5661596/do-i-need-a-content-type-for-ht

Re: [akka-user] Source.queue completion signal

2015-11-09 Thread Francesco Di Muccio
Nice, I didn't think about it. The failure can be implemented using an Either, anyway I got the point, thank you very much. Il giorno domenica 8 novembre 2015 20:53:35 UTC+1, √ ha scritto: > > Hi Francesco, > > You could emulate what you want using this: > > scala> val (q, f) = Source.queue[Optio