From the course: Apache Kafka Essential Training: Getting Started (2021)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Consuming partitioned data

Consuming partitioned data

From the course: Apache Kafka Essential Training: Getting Started (2021)

Start my 1-month free trial

Consuming partitioned data

- [Instructor] In this video, let's consume the data published into the kafka.learning.orders topic using consumer groups, and then track offsets. We will be opening four shell windows each of which is started by executing a Docker exit command into the kafka container and then navigating to the bender decree as shown in the previous chapters. In the first window on the left we start a publisher to publish into the orders topic. In the window on the top right, we start the first consumer to specify a consumer group. We use the group parameter and specify the group string. In this case, the group name is best consumer group. We specify the printer key property to print the key to the key.separator specifies the character used to separate the key and the value. We will use the equal to character for this. We will be subscribing from the beginning. Let's run this consumer. We immediately see all the messages we have published…

Contents