File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
standalone-apis/node-kafka-producer-consumer Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ These are the microservices and server side developments with Nestjs and Nodejs
40
40
| nestjs PM2 | [ Source] ( ./standalone-apis/nest-pm2 ) | Nodejs Worker Threads & PM2 |
41
41
| nestjs kafka sample | [ Source] ( ./standalone-apis/nest-kafka-sample ) | Nestjs Kakfa sample |
42
42
| nestjs kafka microservices sample | [ Source] ( ./standalone-apis/nest-kafka-microservices ) | Nestjs Kakfa Microservices |
43
+ | node kafka producer & consumer | [ Source] ( ./standalone-apis/node-kafka-producer-consumer/ ) | Nodejs kafka producer consumer |
43
44
44
45
## Tips & Tricks
45
46
Original file line number Diff line number Diff line change
1
+ # Nodejs Kafka Producer & Consumer
Original file line number Diff line number Diff line change
1
+ version : " 3"
2
+ services :
3
+ zookeeper :
4
+ image : ' bitnami/zookeeper:latest'
5
+ ports :
6
+ - ' 2181:2181'
7
+ environment :
8
+ - ALLOW_ANONYMOUS_LOGIN=yes
9
+ kafka :
10
+ image : ' bitnami/kafka:latest'
11
+ container_name : ' kafka'
12
+ ports :
13
+ - ' 9092:9092'
14
+ environment :
15
+ - KAFKA_BROKER_ID=1
16
+ - KAFKA_LISTENERS=PLAINTEXT://:9092
17
+ - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
18
+ - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
19
+ - ALLOW_PLAINTEXT_LISTENER=yes
20
+ depends_on :
21
+ - zookeeper
You can’t perform that action at this time.
0 commit comments