Skip to content

Sample code that demonstrates how to implement the bucket priority pattern

License

Notifications You must be signed in to change notification settings

CBrowne/prioritization-kafka

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Priorization in Kafka

Sample code containing a producer and consumer using the bucket priority pattern implementation.

Running

- Update the configuration

cd src/main/resources
cp kafka.properties.example kafka.properties
vim kafka.properties

- Building the project

mvn clean package

- Running the regular producer

java -cp <CLASSPATH> io.confluent.kafka.demo.AllOrdersProducer

- Running the bucket-based producer

java -cp <CLASSPATH> io.confluent.kafka.demo.BucketBasedProducer

- Running the regular consumer

java -cp <CLASSPATH> io.confluent.kafka.demo.AllOrdersConsumer <NUMBER_OF_THREADS>

- Running the bucket-based consumer

java -cp <CLASSPATH> io.confluent.kafka.demo.BucketBasedConsumer <BUCKET_NAME> <NUMBER_OF_THREADS>

License

This project is licensed under the Apache 2.0 License.

About

Sample code that demonstrates how to implement the bucket priority pattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%