This is a sample application to play with Kafka clients
- Go to https://confluent.cloud and create API key
- Create "kafka-sandbox" topic if you haven't
- Copy properties into
resources/client.properties
in each module
producer
: Producer application using KafkaProducerconsumer
: Consumer application using KafkaConsumerspring-producer
: Producer application using Spring's KafkaTemplatespring-consumer
: Consumer application using Spring's KafkaListener
# Apply formatter % linter
./gradlew spotlessApply
# Run producer application
./gradlew :producer:run
# Run spring-producer application
./gradlew :spring-producer:run
# Run consumer application
./gradlew :consumer:run
# Run consumer-application:run
./gradlew :spring-consumer:run