alexlod / kafka-headers-example

Kafka examples for using message headers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An example that shows how to work with headers in the producer, consumer, and Kafka Streams.

WARNING: this example is only meant to show how headers work. Lots of critical functionality is not included in these examples, for example shutdown hooks, error handling, etc.

How to run

  1. Open in IntelliJ
  2. Run HeaderProducer
  3. Run HeaderKafkaStreams
  4. Run HeaderConsumer

Observe the Log4j output and look at the code.

About

Kafka examples for using message headers.


Languages

Language:Java 100.0%