Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jahredhope/basic-pub-sub-example
Example usage of Redis PUBSUB capabilities
https://github.com/jahredhope/basic-pub-sub-example
Last synced: 16 days ago
JSON representation
Example usage of Redis PUBSUB capabilities
- Host: GitHub
- URL: https://github.com/jahredhope/basic-pub-sub-example
- Owner: jahredhope
- Created: 2020-06-18T07:07:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T08:39:29.000Z (over 2 years ago)
- Last Synced: 2024-10-19T02:00:29.893Z (29 days ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# basic-pub-sub-example
Example usage of Redis PUBSUB capabilities
- Publish/Subscribe behaviour with [Redis Pub/Sub](https://redis.io/topics/pubsub)
- Subscribe by pattern behaviours with [PSUBSCRIBE](https://redis.io/commands/psubscribe)
- Example value generation with [Faker](https://www.npmjs.com/package/faker)## Usage
Prerequisites
- yarn
- node
- docker```bash
$ yarn install
```In multiple terminals run:
```
$ yarn server
``````bash
$ yarn publisher
``````bash
# For all messages:
$ yarn subscribe# For specific messages:
$ yarn subscribe {category}
```