azure-event-hub-kafka-indrection

Motivation: Write integration tests for events without using Azure Event Hub resources

Exploring options

  1. Create a layer on top of azure sdk and pure kafka client. Requires code change in existing application.
  2. Use azure sdk to directly connect to non Event Hub Kafka endpoint
  3. Change client from azure sdk to pure kafka client

See references for readings and sources

Set up

nvm use
pnpm i

if using colima

When running jest if encounter Could not find a working container runtime strategy

source setup-colima.sh

tests

pnpm run test:watch
pnpm run test

Kafka Tools

Kafka UI

docker run -it -p 8080:8080 -e DYNAMIC_CONFIG_ENABLED=true provectuslabs/kafka-ui

Kafka Tool https://kafkatool.com/download.html/