Robin Moffatt 9/8/2020

Counting the number of messages in a Kafka topic

Read Original

This technical article details how to count messages in an Apache Kafka topic. It first shows a simple but potentially inefficient method using kafkacat piped to wc. It then demonstrates a more powerful approach using ksqlDB to create a stream, define a schema, and perform SQL-based counts, including grouping by message fields and observing real-time updates.

Counting the number of messages in a Kafka topic

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week