banner



How To Send Data To Kafka Using Node-kafka

Getting started with NodeJS and Kafka

What is Kafka?

Prototype from http://kafka.apache.org/

Setting upward Kafka locally

          $ tar -xzf /path/to/kafka_2.eleven–ane.0.0.tgz cd kafka_2.11–1.0.0
$ tar -xzf /path/to/kafka_2.eleven–i.0.0.tgz
          $ bin/zookeeper-server-start.sh config/zookeeper.properties
$ bin/zookeeper-server-showtime.sh config/zookeeper.backdrop
          $ bin/kafka-server-start.sh config/server.properties
$ bin/kafka-server-start.sh config/server.properties
          $ bin/kafka-topics.sh — create — zookeeper localhost:2181 — replication-factor 1 — partitions 1 — topic webevents.dev
$ bin/kafka-topics.sh — create — zookeeper localhost:2181 — replication-factor 1 — partitions i — topic webevents.dev
          $ bin/kafka-topics.sh — listing — zookeeper localhost:2181 webevents.dev
$ bin/kafka-topics.sh — listing — zookeeper localhost:2181

Writing a Kafka Producer in JavaScript

Writing a Kafka Consumer in JavaScript

          node kafka-consumer.js        

How To Send Data To Kafka Using Node-kafka,

Source: https://tilomitra.medium.com/getting-started-with-nodejs-and-kafka-36b174853cf8

Posted by: simmssestell1948.blogspot.com

0 Response to "How To Send Data To Kafka Using Node-kafka"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel