4 Kafka clients
This chapter covers
- Producing records with
KafkaProducer
- Understanding message delivery semantics
- Consuming records with
KafkaConsumer
- Learning about Kafka’s exactly-once streaming
- Using the
Admin
API for programmatic topic management - Handling multiple event types in a single topic
This chapter is where the “rubber hits the road.” We take what you’ve learned over the previous two chapters and apply it here to start building event streaming applications. We’ll begin by working individually with the producer and consumer clients to understand how each works.
4.1 Introducing Kafka clients
In their simplest form, clients operate like this: producers send records (in a produce request) to a broker, the broker stores them ...
Get Kafka Streams in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.