When the System is restarted, the context.children() call returns zero children for a particular parent. Before restart, context.children() returned the actual count of children that parent had.
Can someone please let me know how can we get the children ActorRef for a parent after restart?
My use case is:
Before restart, there are let say 5 children of a parent. Now, i wish to calculate performance and to calculate performance i need participation from all these 5 children. So, after restart, i could just send the same message to all children, after which children will work and respond to parent. However, after restart, i am not even aware of who the children were. So, what's the best way to solve these type of problems?