Free course intermediate 10 lessons 22-32 hours updated 25 Nov 2026

Apache Kafka Course: Free Kafka Tutorial to Production

Free Apache Kafka course from fundamentals to production: producers, consumer groups, rebalancing, lag, storage, Streams, Schema Registry and security.

Written and tested by AlgoSimplified

What you'll learn

  • Explain topics, partitions, brokers, replication and ISR with confidence
  • Tune producers: batching, compression, partitioning, idempotence and transactions
  • Scale consumer groups and manage offsets without losing or duplicating data
  • Prevent rebalance storms with cooperative-sticky assignment and static membership
  • Monitor and fix consumer lag with Prometheus and Grafana
  • Size storage: segments, retention, log compaction and the page cache
  • Process streams with KStream, KTable, windows, joins and exactly-once
  • Secure and operate clusters: SASL, TLS, ACLs, Connect and MirrorMaker 2

// learning roadmap

Course content

4 modules · 10 lessons · 22-32 hours

  1. 01 Foundation Kafka Fundamentals and Architecture · Kafka Producer Configuration · Kafka Consumer Groups
    1. Lesson 1: Kafka Fundamentals and Architecture Kafka fundamentals: topics, partitions, offsets, brokers, replication and ISR, and how the pieces fit together in a real-time streaming cluster. 2-3 hours
    2. Lesson 2: Kafka Producer Configuration: acks and Batching Kafka producer configuration tested on Kafka 4.4: acks, linger.ms, batch.size, compression, partitioning, idempotence and transactions, with real metrics. 2-3 hours
    3. Lesson 3: Kafka Consumer Groups: Offsets and Threads Kafka consumer groups: partition assignment, scaling consumers, committing offsets safely, at-least-once processing and multi-threaded consumers. 2-3 hours
  2. 02 Performance Kafka Rebalancing · Lag Management and Performance Monitoring · Storage, Retention, and Log Management
    1. Lesson 4: Kafka Rebalancing: Eager vs Cooperative, Tested Kafka consumer rebalancing measured on a real cluster: eager vs cooperative-sticky vs KIP-848, max.poll.interval.ms, static membership and the common mistakes. 2-3 hours
    2. Lesson 5: Lag Management and Performance Monitoring Kafka consumer lag: what it measures, how to monitor it with Prometheus and Grafana, alert thresholds, and the fixes that bring lag back down. 2-3 hours
    3. Lesson 6: Storage, Retention, and Log Management How Kafka stores data: log segments and indexes, the page cache, retention by time and size, log compaction, and tuning disk I/O on brokers. 2-3 hours
  3. 03 Real-time Processing Kafka Streams and Real-Time Processing · Schema Registry and Data Governance
    1. Lesson 7: Kafka Streams and Real-Time Processing Kafka Streams tutorial: KStream vs KTable, windowed aggregations, stateful processing with state stores, stream-table joins and exactly-once. 3-4 hours
    2. Lesson 8: Schema Registry and Data Governance Schema Registry for Kafka: Avro, Protobuf and JSON Schema, compatibility modes, safe schema evolution and data contracts between teams. 2-3 hours
  4. 04 Production Security, Authentication, and Authorization · Production Operations and Advanced Patterns
    1. Lesson 9: Security, Authentication, and Authorization Secure a Kafka cluster: TLS encryption, SASL authentication (PLAIN, SCRAM, OAuth), ACL authorization, client quotas and a hardening checklist. 2-3 hours
    2. Lesson 10: Production Operations and Advanced Patterns Run Kafka in production: Kafka Connect, MirrorMaker 2, Kubernetes deployment, event sourcing and CQRS patterns, and a troubleshooting playbook. 3-4 hours

Who this course is for

  • Backend engineers building event-driven systems
  • Architects designing real-time data pipelines
  • DevOps and platform engineers running Kafka in production
  • Anyone preparing for Kafka interview questions

Before you start

  • Basic distributed-systems ideas (nodes, replication, failures)
  • One programming language; examples use Java and Python
  • Docker for a local Kafka cluster (optional, recommended)

About this course

Why this course?

Most Kafka tutorials stop once a message has gone from a producer to a consumer. The problems you hit in production come after that: a rebalance that pauses every consumer during a deploy, a partition key that sends half the traffic to one broker, lag that grows every evening, an exactly-once setup that is not, and a cluster anyone on the network can write to.

This course is about those problems. Every lesson ends with a hands-on exercise you can run against a local cluster in Docker.

New to how a cluster fits together? Start with Kafka architecture explained, a one-page diagram and failover walkthrough, then come back for lesson 1. Interviewing soon? Use the Kafka interview questions to test yourself after the course.

Questions

Is this course free?

Yes. All 10 lessons are free to read, with no account and no paywall partway through.

How is my progress saved?

In your browser (localStorage). Mark a lesson complete at the bottom of the page and the course page, sidebar and Continue button pick it up. Clearing site data or switching devices resets it.

How long does it take?

About 22-32 hours of reading and coding. At an hour a day that is roughly 3 to 5 weeks; skimming the parts you already know is fine.

What should I know first?

Basic distributed-systems ideas (nodes, replication, failures). One programming language; examples use Java and Python. Docker for a local Kafka cluster (optional, recommended).