Redis Pub/Sub
Redis Pub/Sub implements the messaging system where the publishers sends the messages while the subscribers receive them.
Aside from data storage, Redis can be used as a Publisher/Subscriber platform. In this pattern, publishers can issue messages to any number of subscribers on a channel. These messages are fire-and-forget, in that if a message is published and no subscribers exists, the message evaporates and cannot be recovered.
Installation
Before the usage remember to install required packages.
Overview
The options
property is specific to the chosen transport layer. REDIS exposes the following properties:
Attribute | description |
| Host address of the Redis server |
| Channel name which your microservice will listen to |
| Timeout for RPC-like communication. Defaults to 120 seconds |
| Port of the Redis server |
| If set, client will run Redis auth command on connect. |
Last updated