Using Redis Edge with IoT Edge

Gibin Francis
1 min readJun 24, 2021

--

Recently we got a chance to work with Redis on azure IoT Edge. So thought to share the same.

Redis on Edge is quite straight forward compared to other modules.

Please find the Manifest portion below

"RedisEdge": {"settings": {"image": "marketplace.azurecr.io/garantiadata/redis-edge","createOptions": {
"HostConfig": {
"PortBindings": {
"6379/tcp": [
{
"HostPort": "6379"
}
]
}
}
}},"type": "docker","status": "running","restartPolicy": "always","version": "1.0"},

Above manifest will install Redis on your edge device from the marketplace module. This will use the default configurations of Redis

Now we have the Redis, we can test the module using below

sudo docker exec -it RedisEdge redis-cli ping

above command will respond “PONG” as response for the command

Now you are good with your module, you can use any Redis library based on the language used in the module and start using the Redis from the Edge Device

--

--

Gibin Francis

Technical guy interested in MIcrosoft Technologies, IoT, Azure, Docker, UI framework, and more