Skip to content

brunograna/spring-kafka-pub-sub-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Kafka

Project: Spring Boot Kafka Pub Sub Demo

License: MIT Language: Java Version: 1.0

🚀 Project Features

  • Publish and Subscribe Kafka Messages
  • Docker Compose with Kafka and ZooKeeper configuration

🔍 Download the project and test by yourself.

🎯 Development objective

  • Java 11 with Spring Boot 2.4.5 and Apache Kafka
  • Available endpoint to publish messages to Kafka Topics
  • Subscribe messages from Kafka

📁 Resources

Base Url

Annotations Route

${HOST_URL}/kafka/v1

/producer

Endpoint

HTTP POST - ${HOST_URL}/kafka/v1/producer
  • Available endpoint that sends a message to Apache Kafka Topic
    • You should send the following schema in the body of the request

Json Schema Definition:

type: object
properties:
  title:
    type: string
    description: news title
  location:
    type: string
    enum:
      - brazil
      - us
      - international
    description: news location
required:
  - title

Developed by Bruno Garcia 👋 More about me

About

Kafka Pub Sub Demo Spring Boot Application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages