/pub-sub-redis

Primary LanguageTypeScriptMIT LicenseMIT

How to use Redis as a Pub/Sub system with NestJS

How to run ?

First run the Redis server with the following command:

cd ./docker && docker compose up -d

Then run both NestJS applications with the following commands:

npm run start:dev

Publisher runs on port 3000 and subscriber runs on port 3001.

Publisher exposes a POST endpoint at http://localhost:3000/ and subscriber listens to the channel events.

Subscriber exposes: