This application is scalable application here we are using kafka for Intermediate Message Broker as well as for socket.io scalablility.
-
Go to aiven cloud and get your credentials and go to
controllers\healsynckafka.js
. -
const kafka = new Kafka({ brokers: [''], ssl: { ca: [fs.readFileSync("./ca.pem", "utf-8")], }, sasl: { username: "", password: "", mechanism: "" } });
-
download ca.pem file and paste it to your backend's root directory.
-
docker build -t apigateway-image -f ./Dockerfile.apigateway .
-
docker build -t fetchservice-image -f ./Dockerfile.fetchService .
-
docker build -t socketservice-image -f ./Dockerfile.socketservice .
-
docker build -t dbinsertionkafka-image -f ./Dockerfile.dbinsertionkafka .
-
docker compose up
We are open For contribution.
- We are having issues in Dockerfile.
- Create Multiple Instances of socketservice.js and implement Ngnix as LoadBalancer