Created
April 19, 2019 19:57
-
-
Save drochgenius/a16e389757fcb7c833ecee00e5cc7aab to your computer and use it in GitHub Desktop.
Create Kafka Client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { KafkaClient as Client } from 'kafka-node'; | |
| const kafkaHost = 'localhost:9092'; | |
| const client = new Client({ kafkaHost }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment