@logistically/events
Version:
A production-ready event-driven architecture library for NestJS with Redis Streams, comprehensive batching, reliable consumption, and enterprise-grade features.
10 lines (9 loc) • 427 B
TypeScript
import { BatchingStrategy, BatchingTypeStrategy } from '../batching-strategy';
export type TransportType = 'redis' | 'console' | 'kafka' | 'rabbitmq';
export interface StrategyFactoryOptions {
typePrefix?: string;
batchingTypeStrategy?: BatchingTypeStrategy;
}
export declare class BatchingStrategyFactory {
static createStrategy(transportType: TransportType, options?: StrategyFactoryOptions): BatchingStrategy;
}