MQTT. Have the broker retain messages that are waiting for you when a connect or reconnect takes place.
Curious if you have similar thoughts about how to update firmware remotely? My original idea was running docker and watchtower but maybe that's not the typical in production way either