akka.net-persistence

Can I Read/Write from separate actors with same PersistenceId?

馋奶兔 提交于 2020-01-07 03:40:29
问题 The Petabridge blog's Akka.Persistence intro makes it clear that you can't have multiple actors with the same PersistenceId: The PersistenceId field is important - it uniquely identifies an entity that is persisting its state using Akka.Persistence, and there should be exactly one persistent actor at any given time for a single PersistenceId . [...] so imagine if you have two actors with the same PersistenceId but different sequence numbers writing to the same store. It will be chaos and will

Akka.Net and In memory peristence

巧了我就是萌 提交于 2019-12-11 07:28:32
问题 I am trying to get my head around persistence and I am yet to be able to recover an actor. My intention is to get an Actor by its persistenceId (Same way we we get an Entity using GetById in DDD). I can get the reference to List and add it to a variable in List Manager but what I am looking for is that once the Actor dies how to get the Actor with its current state (Revovery By Events) so that modification can be done. Let me know if my question is not clear This is what I have done so far: *