To utilize the RedisPubSubEventBusAdapter, you must install the "ioredis" package and supply a string serde, such as SuperJsonSerde.

import { RedisPubSubEventBusAdapter, SuperJsonSerde } from "@daiso-tech/core";
import Redis from "ioredis";

const dispatcherClient = new Redis("YOUR_REDIS_CONNECTION_STRING");
const listenerClient = new Redis("YOUR_REDIS_CONNECTION_STRING");
const serde = new SuperJsonSerde();
const eventBusAdapter = new RedisPubSubEventBusAdapter({
dispatcherClient,
listenerClient,
serde,
});

Implements

Constructors

Methods