Class EventBusFactory<TAdapters, TEvents>

import { EventBusFactory } from "@daiso-tech/core";
import Redis from "ioredis"

const eventBusFactory = new EventBusFactory({
drivers: {
memory: new MemoryEventBusAdapter(),
redis: new RedisPubSubEventBusAdapter({
dispatcherClient: new Redis(),
listenerClient: new Redis(),
}),
},
defaultDriver: "memory",
});

Type Parameters

Implements

Constructors

Methods

Constructors

Methods