Project in development yo can send improvments and ideas to sendoamoronta@gmail.com
- docker
- docker-compose
- docker-machine
- node
- VirtualBox and VBoxManage
export KAFKA_HOST=#your local ip
export KAFKA_PORT=9092 #default
docker-machine create --driver virtualbox --virtualbox-memory 6000 ap-kafka
eval $(docker-machine env ap-kafka)
docker-compose up -d
Add more brokers
docker-compose scale kafka=3
Stop Kafka and zookepper
docker-compose down
npm run app
npm run processor
npm run location
npm run post_deliver
npm run mail_deliver
Get the broker IP:
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' kafka_kafka_1
First install librdkafka
git clone https://github.com/edenhill/librdkafka
cd librdkafka
./configure
make
make install
ldconfig
Show event types in mongo
sudo docker exec -i -t d02e27b58e5c /bin/bash #container id
mongo
use reach-engine
db.EventTypes.find()
- Refactor/clean/test code and improvments
- Metrics of deliver (time, count, ...)
- Dockerize all node components