A super simple, instant pubsub messaging library, using
redis-messaging-manager
is designed to help you implement a pubsub
messaging protocol between your systems services. After installing the
library as a dependency, simply use the PubsubManager
object provided
by the library to setup a connection to a redis broker instance.
The two core functions for messaging are publish
and consume
import {PubsubManager} from 'redis-messaging-manager';
let messenger = new PubsubManager({
host: 'localhost'
});
export default messenger;
Additional parameters can be passed to the instance, such as the broker port, and reconnect strategy (Defaults to reconnecting).
Examples for using the library are provided here
consume
method returns an Rx Observable for convenient event processinggetServerEventStream
methodPubsubManager
instance can be passed for alternative configPlease check out the extended documentation for more information
Generated using TypeDoc