Search⌘ K

Kafka Streams Hello World

Explore how to build your first Kafka Streams application by consuming string records from a Kafka topic, transforming them with stateless operations, and producing output to another topic. Understand the topology design and see the application in action through message production and consumption.

Now that we have some knowledge about Kafka Streams, let’s build our first Kafka Streams application! In line with software development tradition, we’ll build a Hello World application. First, let’s define the requirements.

Application requirements

  • The application will consume records from a Kafka topic called names.

  • Each record will be a simple String.

  • The application will print each record it consumes.

  • Blank values will be ignored.

  • Each name will be prepended with "Hello, ". ...