A simple producer-consumer that is intended to try out beta versions of KafkaJS.
See custom-environment-variables.json for environment variables that you can set.
# Copy the example environment variables and load them
$ cp .env.example .env
$ source .env
$ npm install
# Run Kafka locally
$ docker-compose up -d
$ npm start
$ docker build . -t kafkajs-canary-app:latest
$ docker run -p 3000:3000 --rm kafkajs-canary-app:latest
See infrastructure/README.md for instructions on how to deploy the app to AWS. In general, you need to:
- Build a new Docker image
- Tag it
- Push it to ECR
- Deploy the CDK AppStack with the image tag as the
version
parameter.