Publishes shopping cart events(simulated fake messages) onto 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 on general
- Publish messages on to Kafka
- docker setup and use with ease
- Building NodeJS worker/task runner design pattern for processing long running tasks
- Test cases for quality check
- Introduce AVRO for serialization
- Introduce publishing key to control the partition the message needs to land
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 reaching kafka
docker exec -it <container_name> kafka-console-consumer --bootstrap-server localhost:9092 --topic shopping-cart-events --from-beginning ```