These are chat archives for akkadotnet/akka.net

18th
Oct 2017
Joshua Garnett
@joshgarnett
Oct 18 2017 00:02
@Aaronontheweb not sure if you’ve seen this, proto3 is going to add support for unknown field preservation again, probably not a huge impact on Akka.net, but worth keeping in mind especially with future upgrades https://docs.google.com/document/d/1KMRX-G91Aa-Y2FkEaHeeviLRRNblgIahbsk4wA14gRk/view#heading=h.w8dtggryroj4
Thomas Tomanek
@thomastomanek
Oct 18 2017 16:48
persistence question. In AsyncWriteJournal.cs during replay a check is made to see if the rehydrated event has IsDeleted true, which seems reasonable enough. However there is a comment on the line saying 'old records pre 1.0.7 may still have the IsDeleted flag', which suggests there is a new way to be doing this, anyone have any idea what that is?
Joshua Garnett
@joshgarnett
Oct 18 2017 17:42
I believe that is mainly an implementation detail of the underlying persistence plugin?
The system expects the journal counter to not be reset to 0 when you delete all journal entries.
Jessie Wadman
@JessieWadman
Oct 18 2017 19:54
What's your favorite method of automatically reviving stateful actors in a child per entity scenario when a node fails, shard migrates or entire cluster restarts?
Aaron Stannard
@Aaronontheweb
Oct 18 2017 19:55
if the node's state can be reliably covered from a database, usually just migrating it to a new shard and having it recover from Akka.Persistence or a hand-rolled system
the Akka.Persistence vs. hand-rolled thing really comes down to how much legacy stuff you have and if you want to also use the actor's state for reporting purposes
IMHO, conflating operational state and reporting data usually ends poorly
you end up with a slow system that sucks at both
especially if your reporting requirements change often
so I'd go with the Akka.Persistence model usually
Jessie Wadman
@JessieWadman
Oct 18 2017 19:57
I mean, how do you tell it to wake up?
Aaron Stannard
@Aaronontheweb
Oct 18 2017 19:57
in cluster-sharding you can turn on remember-entities or whatever that setting is called
Jessie Wadman
@JessieWadman
Oct 18 2017 19:57
Ah!
Aaron Stannard
@Aaronontheweb
Oct 18 2017 19:58
otherwise I'll just lazily wait for someone to request that state again
and not worry about recovering the actor in the meantime
Jessie Wadman
@JessieWadman
Oct 18 2017 20:02
That's ideal, of course