Skip to content

Produce and Consume Kafka messages via any HTTP client

Notifications You must be signed in to change notification settings

zhukovheorhii/kafka-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka producer / Kafka consumer

Easy create templates using POSTMAN

Curl example to produce a message:
curl --location --request POST 'http://localhost:5000/topics/TOPIC_NAME/keys/KEY?bootstrapServer=PLAINTEXT://localhost:9092' \ --header 'Content-Type: application/json' \ --data-raw '{ "headers": { "header1": "value", "header2": "value" }, "body": "SOME_STRING" }'



Curl example to consume messages:
curl --location --request GET 'localhost:5000/topics/TOPIC_NAME?bootstrapServer=PLAINTEXT://localhost:9092'



bootstrapServer - is not required query param. Default bootstrapServer is PLAINTEXT://localhost:9092

Run in docker using docker pull heorhiizhukov/kafka-manager:latest

docker-compose example:

version: '1.0'
services:
  kafkamanager:
    image: heorhiizhukov/kafka-manager:1.0-SNAPSHOT
    ports:
      - "5000:5000"

About

Produce and Consume Kafka messages via any HTTP client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published