Running pub sub using node and Redis

Running pub and sub using node with Redis as backend

https://gist.github.com/jignesh88/db0229865ad124c13891bd9fe9c34f1a.js

https://gist.github.com/jignesh88/9ea69cfdbba14157421f0b58ad555f31.js

Advertisements

Running redis using docker container

docker run -it -d –name redis -p 6379:6379 -v $PWD/data:/data redis redis-server –appendonly yes

-v – to map local volume to container for persistence
–appendonly – for persistance

accessing container

docker exec -it redis /bin/bash