node kafka
Start kafka host
docker-compose -up -d
How to run normal Producer
- run consumer
yarn ts-node src/consumer.ts
- run producer
yarn ts-node src/producer.ts
How to run High Level Producer
- run consumers
yarn ts-node src/consume-spacific-partition/consumer-topic2-p0.ts
yarn ts-node src/consume-spacific-partition/consumer-topic2-p1.ts
yarn ts-node src/consume-spacific-partition/consumer-topic2-p2.ts
- run producer
yarn ts-node src/highlevel-producer.ts