/kafka-quickstart-workshop

This workshop teaches how Apache Kafka works and how you can use it to build applications that react to events as they happen.

Apache License 2.0Apache-2.0

Getting started with Kafka

In this workshop, you will learn how Apache Kafka works and how you can use it to build applications that react to events as they happen. We demonstrate how you can use Kafka as an event streaming platform. We cover the key concepts of Kafka and take a look at the components of the Kafka platform.

Workshop objectives

In this workshop, we will build a small event streaming pipeline using the built-in tools and samples of Apache Kafka.

Workshop pipeline

The data flow in our sample pipeline includes:

  • Our input data comes from a file: /tmp/file-source.txt.
  • As new lines are added to this file, Kafka Connect streams them into a topic, streams-plaintext-input, in Kafka.
  • A Kafka Streams application processes records from streams-plaintext-input in real time and writes the computed output into a new topic, streams-wordcount-output.

The first part gives an overview of the Kafka platform. It covers the main use cases for Kafka. It also contains the prerequisites for the workshop.

The second part covers the most basic concepts of Apache Kafka such as topics, partitions, and the Producer and Consumer clients.

The third part explains how existing systems can be connected to Kafka using Kafka Connect. Using built-in connectors, we will see how data can be imported into Kafka.

The fourth part introduces Kafka Streams and explains its data processing capabilities. It explores the WordCountDemo sample application by running it and detailing its processing logic.