I have a child "consumer" actor that connects to some external data stream, parses its messages and forwards them further inside the application. This "producer" system has a pub-sub architecture, but does not restore subscriptions after reconnect. Currently I store these subscriptions in parent actor and resend them in supervisor, but the problem is that while the child is restarting, they get forwarded to dead letter queue. I could have tried scheduling these to parent after some delay, but this may interfere with subscription order, which is important.
So how do I do deliver these "resubscription" messages to the child while it's restarting?