Skip to content

Example project for Spring Boot + Apache Kafka + Docker-compose solution

Notifications You must be signed in to change notification settings

layonez/kafka-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example project for Spring Boot + Apache Kafka + Docker-compose solution

Simple Spring Boot project to send and consume messages with docker compose config to run kafka + zookeeper in containers

Fill with some value YOUR_BROKER_HOST_PUBLIC_IP at KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://YOUR_BROKER_HOST_PUBLIC_IP:9092 in kafka_conf/docker-compose.yml file to call kafka from external hosts.

Prerequisite

Docker-compose and docker required to run stuff from /kafka_directory

Avaliable console params

  • - - consumer-enabled - you can disable/enable consumer if needed. Default is true
  • - -kafka_bootstrap_servers - set your server address here to call kafka from external hosts. Default is localhost:9092
  • - -kafka_username / --kafka_password - you can change default user in kafka_conf/kafka_server_jaas.conf. Default is admin/admin-secret

About

Example project for Spring Boot + Apache Kafka + Docker-compose solution

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages