Reputation: 703
In the current v.1.0 version of Akka.NET it is not possible to combine a FSM approach with persistency from the F# API. I was wondering if it is possible to use a functional approach like this http://bartoszsypytkowski.com/blog/2014/07/05/fsharp-akka-net/ and at the same time hook into the prestart method of actors. That would be one way of implement some kind of "custom" persistency if one can read from persistent storage during the execution of the prestart method.
Any other suggestion on how to use a custom persistent solution are more than welcome.
Upvotes: 0
Views: 384
Reputation: 7542
At the moment (Akka.Persistence.FSharp v0.8) there is no way to create an equivalent of the pre started actor execution block. You can read from persistent storage right by defining custom apply method - it automatically receives the most recent snapshots (within SnapshotOffer
message) and events from persistent stores.
Upvotes: 1