Skip to content

pavankjadda/SpringCloudStream-Kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringCloudStream-Kafka

Kafka with Spring Cloud Stream on Spring Boot

Introduction

Kafka helps you to build fast, high through put, fault tolerance, scalable microservices and applications. Kafka Streams stores data in Kafka Clusters (Kafka State Stores) and gets data wicket fast.

This repository demonstrates Kafka with the help of Spring Cloud Stream

How to Run?

  1. Download and install Kafka either from Confluent or follow instructions from here first. I recommend Confluent as it combines all the servers into one package with additional tools. start kafka with the following command
  2. Unzip the zip file and navigate to it
  3. Start the zookeeper using following command
    <path-to-confluent>/bin/zookeeper-server-start <path-to-confluent>/etc/kafka/zookeeper.properties
    
  4. Start the kafka using the following command
    <path-to-confluent>/bin/kafka-server-start <path-to-confluent>/etc/kafka/server.properties
    
    
  5. Clone this repository and open in IntelliJ or Eclipse as maven project and run SpringCloudStreamKafkaApplication class. This will bring up producer class.