These are chat archives for akkadotnet/akka.net
What are your strategies for dealing with Persistent Children? Let's say I have a ChatManager actor which controls and supervises all the chats in the system. Actual chat conversations are handled by its children -ChatActors.
When a request for new conversation arrives a new ChatActor is created under the ChatManager supervision. When my system crashes, I would like to restore it to the previous state which includes recreating all the ongoing chat conversations. My strategy, for the time being, was to implement ChatManager as a persistent actor and preserves ChatCreatedEvents and ChatEndedEvents to build the internal list of ongoing conversations. After all the messages are successfully replayed I just create ChatActors respectively.
There are a few problems I see with this implementation:
Am I doing sth wrong? Or it this the right way?