Consume shopping cart events from Kafka
yarn install
Note: To install yarn globally:
npm install yarn --global
yarn run build
yarn run start
yarn build followed by `yarn test` to execute the unit tests via [Mocha](https://www.npmjs.com/package/mocha) with coverage [nyc](https://www.npmjs.com/package/nyc).
- Understanding of Kafka in general
- Consuming messages from Kafka topic
- docker setup and use with ease
- Building NodeJS consumner/worker/task runner design pattern for processing and monitoring long running tasks
- Test cases for quality check
- Introduce AVRO for deserialization
Windows: https://docs.docker.com/docker-for-windows/
Mac: https://docs.docker.com/docker-for-mac/install/
Once you have installed docker
Run docker -v
to confirm docker is running
docker-compose up
to start all the docker images required for setup
To see the messages on kafka
docker exec -it <container_name> kafka-console-consumer --bootstrap-server localhost:9092 --topic shopping-cart-events --from-beginning ```