Kafka streams
equivalent to kafka-streams 🐙 for nodejs ✨🐢🚀✨
npm install --save kafka-streams
const { KafkaStreams } = require("kafka-streams");
const config = require("./config.json");
const factory = new KafkaStreams(config);
const kstream = factory.getKStream("input-topic");
const ktable = factory.getKTable(/* .. */);
kstream.merge(ktable).filter(/* .. */).map(/* .. */).reduce(/* .. */).to("output-topic");