Re: [akka-user] cluster sharding failover

2014-02-18 Thread Patrik Nordwall
Hi again, I have found the problem and have a solution. Ticket herehttps://www.assembla.com/spaces/akka/tickets/3880. Pull request tomorrow. /Patrik On Tue, Feb 18, 2014 at 2:57 PM, Patrik Nordwall patrik.nordw...@gmail.comwrote: Hi James, Thanks for reporting. I'm still investigating your

[akka-user] Case studies, Recommendations, Experiences with Live Load Distribution?

2014-02-18 Thread kraythe
Greetings, I am new to Akka and I am looking for articles, case studies or just user experiences with distribution of live load and how to handle it. Are there patterns that are accepted or tech in Akka to help out? Basically the use case is as follows: I am developing a system that will run

[akka-user] akka.persistence, snapshots and deleting messages from journal

2014-02-18 Thread dpennell
I would assume that a common scenario is to periodically snapshot state and keep 1 or more snapshots. In this case, I assume that as you delete older snapshots, you would also delete messages older than the snapshot from the journal in order to keep the journal from growing indefinitely. Is

[akka-user] Re: Actor Polymorphism

2014-02-18 Thread Konrad Malawski
Hello Peter, One idea you might give a spin is to extract actor behaviors into traits, and compose behavior of a concrete actor using those. This can work because `receive` is basically just a `PartialFunction[Any, Unit]`, and those have a nice method called

Re: [akka-user] Re: Actor Polymorphism

2014-02-18 Thread Jonas Bonér
Thanks Konrad. This pattern is somehow documented here: http://doc.akka.io/docs/akka/snapshot/scala/actors.html#Extending_Actors_using_PartialFunction_chaining Could perhaps be improved though. On Tue, Feb 18, 2014 at 9:52 PM, Konrad Malawski ktos...@gmail.com wrote: Hello Peter, One idea you

[akka-user] Re: Actor Polymorphism

2014-02-18 Thread Peter Wolf
Thank you Konrad. That's perfect. I was afraid that I'd asked a dumb obvious question. But I'm glad, I did because I would not have found that on my own -- Read the docs: http://akka.io/docs/ Check the FAQ: http://akka.io/faq/ Search the archives:

Re: [akka-user] Re: Actor Polymorphism

2014-02-18 Thread Konrad Malawski
There's far less dumb questions than there are dumb answers :-) @Jonas: Cool! Perhaps an example like the above would showcase the feature better - will think about a simple PR for it :-) -- Cheers, Konrad Malawski blog.project13.pl | java.pl | geecon.org | gdgkrakow.pl | krakowscala.pl

[akka-user] Passing a reference of LookupServiceImpl into an Untyped Actor and then publish the message to the subscribers

2014-02-18 Thread Sree
Hi, I am trying to look into the EventBus functionality in Akka and I started off with looking at the documentation provided. I started with - http://doc.akka.io/docs/akka/2.3.0-RC3/java/event-bus.html#Lookup_Classification I extended the base class as stated in the example and I was

[akka-user] Confusion about [default dispatcher]

2014-02-18 Thread zicun
Hi All, I've search sites a bit for help sloveing my confusion, but haven't found anything very clear. So I tought I'd post my problems and see if anyone could shed some light. I hava a question about the number of default-dispatcher created by the actor system. I have read that

Re: [akka-user] akka.persistence, snapshots and deleting messages from journal

2014-02-18 Thread Patrik Nordwall
You can use deleteMessages to delete all messages up to a specified sequence number. I would not use it too eagerly, since the information in the history can be valuable in itself, but that is of course depending on the application. /Patrik On Tue, Feb 18, 2014 at 9:39 PM,