@logistically/events
Version:
A production-ready event-driven architecture library for NestJS with Redis Streams, comprehensive batching, reliable consumption, and enterprise-grade features.
27 lines (26 loc) • 746 B
TypeScript
import { Server, CustomTransportStrategy } from '@nestjs/microservices';
export interface RedisStreamsServerOptions {
host: string;
port: number;
stream: string;
group: string;
consumer?: string;
password?: string;
tls?: any;
blockTimeoutMs?: number;
verbose?: boolean;
deadLetterStream?: string;
}
export declare class RedisStreamsServer extends Server implements CustomTransportStrategy {
private client;
private options;
private consumerName;
private isRunning;
private blockTimeoutMs;
private verbose;
private consumer;
constructor(options: RedisStreamsServerOptions);
listen(callback: () => void): Promise<void>;
private pollLoop;
close(): Promise<void>;
}