Kafka: The Definitive Guide, 2nd Edition (9781492043089), subtitled Real-Time Data and Stream Processing at Scale, explains how Apache Kafka stores, distributes, and processes streams of events. Written by Gwen Shapira, Todd Palino, Rajini Sivaram, and Krit Petty and published by O’Reilly Media, the book follows an event from the application that publishes it to the systems that read and act on it. It also covers the work of keeping Kafka running after applications start using it and how failures surface.
The opening chapters explain topics, partitions, brokers, producers, and consumers. An important distinction is that Kafka can retain records after a consumer reads them. That lets independent applications read the same stream at their own pace, and it makes replay possible while the records are still retained. The chapters on Java producers and consumers then put those concepts into code, covering how applications send records, share work within consumer groups, and track their progress through offsets.
The discussion of reliable data delivery looks at what can happen when a broker fails, a producer retries, or a consumer restarts. The authors connect replication and producer acknowledgments to the guarantees an application can expect. A separate chapter examines idempotent producers and transactions, explaining what Kafka’s exactly-once semantics address and what those mechanisms do not solve on their own. This part of the book helps readers distinguish a delivery guarantee from the behavior of an entire application.
Kafka Connect and Kafka Streams serve different purposes, and the book gives each its own treatment. Kafka Connect moves data between Kafka and external systems through reusable connectors. The data pipeline chapter compares that approach with writing a producer or consumer yourself. Kafka Streams is a library for processing records as they arrive. Its examples show how an application can enrich clickstream events, join streams with tables, or calculate results over time windows. The authors also discuss state and how it affects recovery when a stream processing application fails.
The operational chapters cover managing topics and consumer groups, using MirrorMaker to copy data between clusters, and securing Kafka with authentication, encryption, and authorization. The monitoring chapter looks at metrics such as consumer lag and under-replicated partitions. It explains why an application falling behind and a cluster failing to maintain enough replicas are different problems, even if both first show up as a delayed result.
Kafka: The Definitive Guide, 2nd Edition book (9781492043089) is intended for software developers, data engineers, and platform operators who want to understand both application behavior and cluster operations. First published in 2021, the second edition introduces the Raft-based KRaft controller while also covering ZooKeeper-era administration. The architecture chapters explain the concepts behind both approaches, while setup instructions and examples reflect the Kafka versions covered in this edition.

There are no reviews yet.