@nestjs-yalc/kafka
v1.3.3
Published
Kafka helpers for YALC applications.
Readme
@nestjs-yalc/kafka
Kafka helpers for YALC applications.
The package includes an Avro deserializer, Debezium/configuration interfaces, and a generic controller helper for persisting Kafka-ingested entities through TypeORM repositories.
Installation
npm install @nestjs-yalc/kafkaInstall Kafka, registry, Nest microservices, and TypeORM dependencies required by your application runtime.
Main Exports
KafkaAvroDeserializerfor Confluent Schema Registry Avro payloads.KafkaControllerfor shared entity insert/update/delete helpers.- Debezium and Kafka configuration interfaces.
Example
import { KafkaAvroDeserializer } from '@nestjs-yalc/kafka';
const deserializer = new KafkaAvroDeserializer({
host: process.env.SCHEMA_REGISTRY_URL,
});