These are chat archives for akkadotnet/akka.net
Akka.Persistence.Sql.Common? I didn't touch publishing NuGet packages before.
PostStoplooks good but: 1) if your VM or actor system will crash (i.e. out of memory exception), PostStop won't be called 2) it could cause a "tricky" behavior, because persistent actor won't wait for snapshot store to ACK the snapshot before restarting - in result when recovering it could probably get earlier version of a snapshot than the one it tried to save last time (is is described in #789 and on JVM akka in akka/akka#17139 )
System.Uri.EscapeUriStringgives similar feature
issue is that if counter itself was not stored, there is possibility that snapshot could be never made for huge X, because after restarting an actor counting would start from the beginning.
Why do you need to store the counter? Actor always has enough information to know how many events it had after the latest snapshot.
var system = ActorSystem.Create("Test"); system.AwaitTermination();
system.Shutdown()between these two lines
Context.GetLogger().Log(LogLevel.InfoLevel, "Your debug message");
ImmutableTreeMap... they were saying that shit like that ends with the university :P