Skip to content

dedeco/kafka-producer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka producer

Installing dependencies

poetry install

Run (localy)

This script will create random messages using Faker with 3 parameters:

  • BROKER URL
  • TOPIC NAME
  • QUANTITY MESSAGES to be produced
poetry run producer PLAINTEXT://127.0.0.1:9092 com.google.sample.purchases 1000

Purchase message (sample)

{
   "username":"maxwellhannah",
   "currency":"EUR",
   "amount":1461.07
}

About

Just a kafka producer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages