-1

Spined up Kafka producer successfully with the help of Docker images but unable to make the consumer live

The github links for my producer and consumer applications are as below;

producer: https://github.com/csra-reddy/mailingproducer.git consumer: https://github.com/csra-reddy/mailingconsumer.git

I could successfully start my producer application, ping the end point over postman and also the Kafka and zookeeper images got created in the docker desktop application.

While I try to start my consumer application, my IDE is asking me to define compose.yaml file. Is it mandatory that I should create yaml for consumer application. If yes, what should be the details inside this compose.yaml file.

Request someone to check my github code files and guide as I started learning recently and trying to understand the Kafka while programming with simple applications. Thanks in advance

Aryan
  • 11
  • Your IDE warning doesn't matter. You can use the same compose file in both projects, but you shouldn't start kafka twice. And it's unclear why you have two compose files in the consumer repo, and SPRING_KAFKA_CONSUMER_BOOTSTRAP_SERVERS is not a valid environment variable for Zookeeper image (and Kafka no longer requires Zookeeper) – OneCricketeer Aug 31 '23 at 10:42

0 Answers0