Skip to content

Kafka Producer and consumer implementation with Spring boot

Notifications You must be signed in to change notification settings

navneetprabhakar/kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Producer & Consumer Implementation using Spring Boot

This repository is implementation of Kafka Producer & Consumer with Spring Boot Application with REST API to push message to topic

Introduction:

Apache Kafka is a framework implementation of a software bus using stream-processing. It is an open-source software platform developed by the Apache Software Foundation written in Scala and Java. The project aims to provide a unified, high-throughput, low-latency platform for handling real-time data feeds. Kafka can connect to external systems (for data import/export) via Kafka Connect and provides Kafka Streams, a Java stream processing library. Kafka uses a binary TCP-based protocol that is optimized for efficiency and relies on a "message set" abstraction that naturally groups messages together to reduce the overhead of the network roundtrip.

Approach

  1. Add maven dependecies for kafka
  2. Create a Kafka Producer to push message in Kafka Topic
  3. Create a Kafka Consumer to read message from Kafka Topic
  4. Create REST API to push message

API Description:

{
    "name":"Navneet",
    "stage":"STAGE2",
    "value":2
}

Steps to setup Kafka

https://kafka.apache.org/quickstart

Releases

No releases published

Packages

No packages published

Languages