These are chat archives for akkadotnet/akka.net

22nd
Feb 2018
Kris Schepers
@schepersk
Feb 22 2018 14:00
Hi @Horusiath , are there any decent examples on how PersistenceQuery can be used? Or better, can it be used for just simply creating a deserialized list of events (to use in a read model rebuild scenario)?
Or am I better of doing this myself?
Aaron Stannard
@Aaronontheweb
Feb 22 2018 14:33
@/all Akka.NET v1.3.5 is now live on NuGet https://twitter.com/AkkaDotNET/status/966682237201731586
Bartosz Sypytkowski
@Horusiath
Feb 22 2018 15:51

@schepersk afaik the simplest form is just:

akka.persistence.query.journal.sql {
  write-plugin="akka.persistence.journal.sql-server"
}

You can leave the HOCON, then read journal will automatically try to connect to the default journal.

var readJournal = system.ReadJournalFor<SqlReadJournal>("akka.persistence.query.journal.sql");
// query using Akka.Streams
readJournal.CurrentPersistenceIds().RunForeach(Console.WriteLine, materializer);
Maciek Misztal
@mmisztal1980
Feb 22 2018 20:49
hey all

can anyone elaborate on :

    /// <summary>TBD</summary>
    /// <param name="fsmEvent">TBD</param>
    /// <param name="state">TBD</param>
    /// <returns>TBD</returns>
    public delegate PersistentFSM.State<TState, TData, TEvent> StateFunction(FSMBase.Event<TData> fsmEvent, PersistentFSM.State<TState, TData, TEvent> state = null);

specifically what is 'state' in this case? right now it always seems to be null for me

Martin Clode
@MClode
Feb 22 2018 21:59
Is Sql server the current best option for Akka Persistence?
Maciek Misztal
@mmisztal1980
Feb 22 2018 23:36
@Horusiath I'm assuming that each message received by a persistent FSM is persisted? Can I tell the FSM not to persist an event that was received? For instance due to the event causing an exception in a given state?