Menu

Course · Streaming & orchestration

Kafka

Kafka is a distributed log used for streaming data. Learn topics, partitions, consumer groups and delivery semantics before building streaming pipelines.

Lessons
6
Interview questions
3
Projects & case studies
21
Reading time
~1 h

About this course

Kafka stores events in partitioned, replicated logs that many consumers can read independently. It decouples producers from consumers and is the backbone of many streaming and change-data-capture designs.

Learn how partitions and consumer groups relate before you tune anything. Most Kafka interview questions come back to those two ideas.

Your progress

Saved in this browser only

Practise

Course structure

Lessons

Work through the lessons in order. Completed lessons show a tick; lessons you have opened are outlined.

Start here

The complete overview of the course in one read.

  1. Kafka and Real-Time Data EngineeringReal-time data engineering with Kafka: logs, partitions and consumer groups, delivery semantics, schemas, stream processing, CDC and operating streaming pipelines.Intermediate2 min

Beginner

Core concepts you will use every day.

  1. Kafka Topics, Partitions and Consumer GroupsHow Kafka topics split into partitions, how keys decide ordering, what replication factor protects, and how consumer groups divide partitions between consumers.Beginner22 min

Intermediate

Patterns used in production pipelines.

  1. Kafka vs Queue-Based Messaging for Data PipelinesWhen to use a distributed log like Kafka and when a traditional message queue fits better: retention, replay, ordering, fan-out, per-message acknowledgement and operations.Intermediate2 min
  2. Kafka Consumers: Poll Loop, Offsets, Commits and LagHow Kafka consumers read data: the poll loop, committed offsets, auto versus manual commits, consumer lag, seeking and replay, deserialisation errors and fetch sizing.Intermediate23 min
  3. Kafka Log Storage: Segments, Retention, Compaction and Topic ConfigurationHow Kafka stores partitions as segment files, how time and size retention delete data, how compaction and tombstones keep the latest value per key, and tiered storage.Intermediate22 min
  4. Kafka Producers: acks, Batching, Compression, Idempotence and OrderingHow the Kafka producer sends records: acks and durability, idempotence, batching with linger.ms, compression codecs, partitioners, retries, in-flight requests and buffering.Intermediate17 min

Projects and case studies

Apply what you learned and prepare material to discuss in interviews.

Projects

System design case studies

Resources

Cheat sheets

Related courses

Plan your learning

Search
Filter by type