Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 606 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 606 Bytes

Motivation

Simple Kafka "Hello world" application using Spring Boot 2.0 with Kotlin

Launch (and build) application

docker-compose up

Execute http request (using httpie)

http :8080/person/john

Alternative manual approach

Run Kafka

docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=localhost --env ADVERTISED_PORT=9092 spotify/kafka

Run the producer

./gradlew producer:bootRun

Run the consumer

./gradlew consumer:bootRun

Inspiration/Credits