These are chat archives for akkadotnet/akka.net

1st
Sep 2017
alexeykap
@alexeykap
Sep 01 2017 08:01
Hi all. Can I set snapshot folder another than %projectFolder%/subFolder?
I need save snapshots not in the projectFolder
Ralf
@Ralf1108
Sep 01 2017 09:18
hi, is it possible to add Logger-Actors to a running akka system?
Ralf
@Ralf1108
Sep 01 2017 09:24
currently it is only possible to set them up via HOCON. how will you supply arguments to the logger actor? or use DI ?
Arjen Smits
@Danthar
Sep 01 2017 09:27
Logging actors are designed to use a static reference to the logger instance. Or create a logger instance themselves based on type information from actor which logged the message. Custom constructor arguments for the logger integration actor is not supported.
Same goes for DI
at least not at this time.
There are plans which potentially enable DI on the logger actors. But dont hold your breath
Ralf
@Ralf1108
Sep 01 2017 09:31
ok thx
Stephen Newman
@goodisontoffee
Sep 01 2017 09:58
I see there is a local snapshot store than writes to disk, is there a similar capability for journal?
Ismael Hamed
@ismaelhamed
Sep 01 2017 10:57
I guess that if I'm trying to persist inside a continuation task, I'm doing it wrong, right?
Arjen Smits
@Danthar
Sep 01 2017 11:45
@goodisontoffee the sqlite store for the journal is the equivalent for that
But i'd hold off on using that for now. We are working to bring some fixes to akka persistence, with the 1.3.1 release
Stephen Newman
@goodisontoffee
Sep 01 2017 11:45
@Danthar thank you for the heads up :)
Arjen Smits
@Danthar
Sep 01 2017 11:45
after the 1.3.1 release we are going to update the sql server store as well
Adam Busch
@booschie
Sep 01 2017 13:59
Hi there. First of all, thanks for developing and maintaining Akka.NET! Now, I want to use a substitution in my HOCON file that refers to a property defined in another HOCON file. Unfortunately, substitutions seem to be resolved once the <hocon> section is read from App.config and the value that is used for substitution is not read from an upstream hocon file (that falls back to the file where I want to use the substitution). Not to mention that not providing a dummy value for the property in the same config file blows up the attempt to read the HOCON. I also tried using the "include" directive, but it seems the AkkaConfigurationSection does not support it. Any advice please?
jameswilddev
@jameswilddev
Sep 01 2017 15:55
Hello. I was wondering if someone could please comment on whether the advice given at http://getakka.net/articles/persistence/event-sourcing.html#safely-shutting-down-persistent-actors (don't use PoisonPill for persistent actors) applies when using Akka.Cluster.Sharding https://petabridge.com/blog/introduction-to-cluster-sharding-akkadotnet/#entities-passivation (PoisonPill is fine to use; presumably because the mailbox handling is smarter with the sharding system)? Thanks.
(i.e. I have a persistent sharded actor, should I use PoisonPill or my own message?)
Adam Busch
@booschie
Sep 01 2017 16:01
Regarding my last question, I managed to use the includeCallback with a custom ConfigurationSection to inject another HOCON config as upstream source of substitution values.
Sean Farrow
@SeanFarrow
Sep 01 2017 23:10
Hi, A quick few questions regarding cluster sharding:
Firstly, does sharding shut down actors after a period of time? In the example there's a SetReceiveTimeout call that doesn't appear to be handled anywhere. If it's not automatic, how would I achieve this as I've a process that could last for days as it something that happens off-line.
Secondly, is there a way to only create an actor when the shard region receives a specific message , there are other messages that will be sent subsequent to this first message, but they should only be handled if the actor has been created. Also, how does cluster sharding generate a unique path within each shard?
Finally, taking the customers example from the docs, how would you say query for all customers that have purchased a specific item using sharding? Should separate query actors be created?
Help apreciated as I'm trying to work out whether to use raw persistence or sharding.