简体   繁体   English

Node.js中的Kafka Consumer

[英]Kafka Consumer in Node.js

Currently i'm implementing the Kafka Queue with Node.js. 目前,我正在使用Node.js实现Kafka队列。 I can able to create the simple API in Express and push the data into Kafka(producer). 我可以在Express中创建简单的API并将数据推送到Kafka(producer)中。

I'm currently struck with the fetching the data from Kafka and I'm using the Kafka-node library for node.js. 目前,我对从Kafka提取数据感到吃惊,并且我正在将Kafka-node库用于node.js。

I need to expose the consumer as API or backend service. 我需要将使用者公开为API或后端服务。

So anyone please help me out. 所以有人请帮帮我。

这是使用kafka-node的消费者的示例: https : //blog.mimacom.com/blog/2017/04/07/apache-kafka-with-node-js/

试试这个“入门和的NodeJS海边的卡夫卡” - https://nodewebapps.com/2017/11/04/getting-started-with-nodejs-and-kafka/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM