Skip to content

celalaygar/Nodejs-apache-kafka-and-rabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Node js & Apache Kafka And Node js & RabbitMQ Example

Node js and Apache Kafka

Docker Commands

docker run --name zookeeper -p 2181:2181 zookeeper
docker run --name kafka 
           -p 9092:9092 
           -e KAFKA_ZOOKEEPER_CONNECT=[ip_adress]:2181  
           -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://[ip_adress]:9092 
           -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1  
            confluentinc/cp-kafka

Node

npm init
npm install --save kafkajs

Node js and RabbitMQ

Docker Commands

docker run -d --hostname my-rabbit --name some-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3-management
or
docker run -d --hostname my-rabbit --name some-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3

Node

npm init -y
npm install --save amqplib

About

Nodejs RabbitMQ and Nodejs Apache Kafka with Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published