Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.36 KB

README.md

File metadata and controls

21 lines (18 loc) · 1.36 KB

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.