Hello @ambharesh venkatraman ,
as mentioned above, offline support is already built-in into Azure IoT Edge.
Messages are persisted on disk until the internet connection comes back.
The location the messages are stored is adjustable as seen in here.
This is also part of ruggedizing your edge device.
Give both the edgeHub and edgeAgent access to a folder using an Environment variable and Container Create options.
In Linux, this an example for both modules:
{
"HostConfig": {
"Binds": [
"/etc/iotedge/storage/:/iotedge/storage/"
]
}
}
(merge this with the already existing edgeHub container create options)
and the environment variable: storageFolder = /iotedge/storage/
Make sure the folder "etc/iotedge/storage" exists on disk and has enough access rights.
There are extra capabilities like priority messages and TTL on the edge routing configuration also.