Apache Kafka is a durable, ordered log that many services can write to and read from at their own pace. It sits behind order pipelines, activity feeds, change data capture and real-time analytics at companies of every size. Kafka 4 removed ZooKeeper entirely in favour of KRaft, which makes clusters simpler to run. This course covers how Kafka works underneath, how to use it without losing or duplicating data, and when you shouldn't use it at all.

What you'll learn

  • The log model: topics, partitions, offsets, retention and compaction
  • Brokers, replication, in-sync replicas and KRaft controllers
  • Producers: keys and ordering, batching, acknowledgements and idempotence
  • Consumers and consumer groups, rebalancing and the newer consumer group protocol
  • Delivery guarantees: at-most-once, at-least-once and exactly-once with transactions
  • Schemas with Avro or Protobuf, a schema registry and compatibility rules
  • Kafka Connect and change data capture from PostgreSQL with Debezium
  • Stream processing with Kafka Streams and an introduction to Apache Flink
  • Event-driven patterns: event notification, event-carried state, the outbox pattern
  • Operations: sizing partitions, monitoring consumer lag, security with TLS and ACLs

Who it's for

  • Backend developers building services that need to communicate asynchronously
  • Teams outgrowing a simple job queue or polling between services
  • Data engineers who need reliable real-time feeds into a warehouse or lake

Prerequisites

  • Confident in at least one of Java, Python, Go or Node.js
  • Experience building and deploying a backend service
  • Docker and Docker Compose for the local cluster

Outcomes

By the end of this course you will be able to:

  1. Design topics, keys and partition counts that preserve the ordering you need.
  2. Write producers and consumers that handle retries and failures without losing or duplicating events.
  3. Stream database changes into Kafka and out to other systems with Kafka Connect.
  4. Run, secure and monitor a small KRaft-based Kafka cluster.

Projects you'll build

  • Order events pipeline – an order service publishing events through the outbox pattern, with inventory and email services consuming them, practising keys, idempotent consumers and transactions.
  • Change data capture feed – Debezium streaming PostgreSQL changes into Kafka and on to a search index, practising Kafka Connect and schema evolution.
  • Real-time metrics – a Kafka Streams application computing per-minute sales by region, practising windowed aggregation and state stores.

Tools you'll use

Apache Kafka 4.x in KRaft mode, Docker Compose, a schema registry, Kafka Connect with Debezium, Kafka Streams, and a Kafka UI for inspection. Client examples in Java and Python.

Course outline

ModuleTopic
1Logs, events and when Kafka is the right tool
2Running a KRaft cluster locally
3Topics, partitions, replication and retention
4Producers: ordering, batching and idempotence
5Consumers, groups and rebalancing
6Delivery guarantees and transactions
7Schemas and compatibility
8Kafka Connect and change data capture
9Stream processing with Kafka Streams and Flink
10Event-driven design patterns
11Security, monitoring and capacity planning
12Project: an event-driven order system

FAQ

Do I need Kafka, or is a queue enough?

Often a queue is enough. If you only need background jobs, Redis Caching and Queues is simpler to run. Kafka pays off when several consumers need the same events, you need replay, or volumes are high. Module 1 walks through this decision.

Does this course cover managed Kafka?

Yes, briefly. We compare running Kafka yourself with managed options such as Confluent Cloud, Amazon MSK and Redpanda, but the skills are the same either way.

How does this fit with microservices?

Microservices Architecture covers service boundaries and communication styles in general. This course goes deep on the event streaming side.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.