This example built on Nest framework TypeScript starter repository.
It integrates with kafkajs and simplified to subscribe and publish message to kafka topics.
Find more in - https://dev.to/rajeshkumarbehura/kafkajs-nestjs-with-typescript-simplified-example-35ep
$ yarn install
Make sure docker & docker-compose is installed.
# Run kafka server in local machine, go to docker folder
$ docker-compose -f kafka.yml up
# To run kafka drop UI to monitor kafka in local machine, go to docker folder
$ docker-compose -f kafka-drop-ui.yml up
After running Kafka Server & Kafka Drop UI successuflly, access kafka-drop monitoring UI http://localhost:9000
More on kafka drop Application - https://github.com/obsidiandynamics/kafdrop https://raw.githubusercontent.com/obsidiandynamics/kafdrop/master/docs/images/overview.png
Run the application
# development
$ yarn start
Send message to Kafka & receive message by consumer testing.
When you call above api, application console log will print " [KAKFA-CONSUMER] ...." .
Nest is MIT licensed.