An open API service indexing awesome lists of open source software.

https://github.com/fajrulaulia/nodejs-pusub

simple publisher suscriber using nodejs and redis server
https://github.com/fajrulaulia/nodejs-pusub

nodejs publisher redis subscriber

Last synced: about 1 month ago
JSON representation

simple publisher suscriber using nodejs and redis server

Awesome Lists containing this project

README

          

# Node JS PubSub

## Instalation
clone this repository and change directory to repository
``` bash
# Install depdencies
$ npm i
# Pull, build and up redis as redis server for serv nodejs
$ docker-compose up -d redis
```

## Usage

use two terminal, this is how to communicate pub sub using redis

terminal A
``` bash
$ node suscriber.js
```

terminal B
``` bash
$ node publisher.js
```

## Author
Fajrul Aulia