rabbitmq-enterprise-toolkit
Version:
🚀 Enterprise-grade RabbitMQ wrapper for Node.js & TypeScript - High-throughput messaging with automatic retry, DLQ, batch processing & graceful shutdown. Production-ready AMQP client with zero message loss guarantee.
33 lines • 1 kB
TypeScript
import { RetryOptions } from '../types';
/**
* Retry mekanizması için delay hesaplama
*/
export declare function calculateDelay(retryCount: number, options: RetryOptions): number;
/**
* Mesaj idempotency kontrolü için unique ID oluşturma
*/
export declare function generateMessageId(): string;
/**
* Graceful shutdown için promise wrapper
*/
export declare function createGracefulShutdown(timeoutMs: number): {
shutdown: () => Promise<void>;
isShuttingDown: () => boolean;
};
/**
* Hata mesajlarını formatla
*/
export declare function formatError(error: unknown): string;
/**
* Queue adını normalize et
*/
export declare function normalizeQueueName(queueName: string): string;
/**
* Dead letter queue adını oluştur
*/
export declare function createDLQName(originalQueueName: string): string;
/**
* Retry queue adını oluştur
*/
export declare function createRetryQueueName(originalQueueName: string, retryCount: number): string;
//# sourceMappingURL=helpers.d.ts.map