Skip to content

jeroneemou/redis_pubsub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of Redis publish / subscribe model

Prerequisities

  1. Redis instance. Run docker-compose up
  2. Node installed. Run nvm use && npm install

Run subscriber

Run REDIS_HOST=localhost REDIS_PORT=6379 CHANNEL=channel npm run sub

Run publisher

Run REDIS_HOST=localhost REDIS_PORT=6379 CHANNEL=channel npm run pub <message>

About

Example of redis implementation of publish / subscribe event

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published