kafka-retry
Version:
Handle kafka non-blocking retries and dead letter topics for nestjs microservice
19 lines (18 loc) • 847 B
TypeScript
export declare const KAFKA_DEFAULT_CLIENT = "nestjs-consumer";
export declare const KAFKA_DEFAULT_GROUP = "nestjs-group";
export declare const NO_MESSAGE_HANDLER = "There is no matching message handler defined in the remote service.";
export declare const KAFKA_DEFAULT_BROKER = "localhost:9092";
export declare const NO_EVENT_HANDLER = "There is no matching event handler defined in the remote service.";
export declare enum TopicSuffixingStrategy {
RETRY_SUFFIX = "-retry",
DLT_SUFFIX = "-dlt"
}
export declare enum RetryTopicConstants {
DEFAULT_PARTITIONS = 1,
MAX_ATTEMPTS = 9,
REPLICATION_FACTOR = 3
}
export declare const KAFKA_DEFAULT_DELAY = 10000;
export declare const KAFKA_DEFAULT_MULTIPLIER = 2;
export declare const ERROR_RETRY_MESSAGE = "ERROR_RETRY_MESSAGE";
export declare const AUTO_CREATE_RETRY_TOPIC = true;