Apache Kafka — Event Streaming from Basics to a Platform Service
Start by placing Kafka next to monitoring and logging tools, then why systems need an event log at all and what Kafka is (and is not). Run a real KRaft cluster, in Docker or on your own Kubernetes cluster, and learn every core idea with the command-line tools: topics, partitions, offsets, keys, consumer groups and lag. Then go inside: how producers batch and acknowledge, how consumer groups share work and rebalance, how replication, ISR and min.insync.replicas protect data, how retention and compaction work, and what at-least-once and exactly-once really mean. Add the ecosystem (schemas and a registry, Kafka Connect and change data capture, stream processing), then operate it: Kafka on Kubernetes with Strimzi and the managed options, security with TLS, SASL, ACLs and quotas, monitoring and troubleshooting, capacity, performance and disaster recovery. It finishes by designing Kafka as a multi-tenant, self-service platform capability.
What you'll be able to do
- Tell monitoring (Prometheus, Grafana), logging (EFK) and Kafka apart, and choose the right one for a need
- Explain why event streaming exists, how a log differs from a queue, and when Kafka is the wrong choice
- Run Kafka in Docker or on an existing Kubernetes cluster with Strimzi, and connect an application to it
- Run a KRaft cluster and use the CLI to create topics, produce, consume, inspect groups and reset offsets
- Tune producers and consumers for throughput, ordering and safe delivery
- Explain replication, ISR, min.insync.replicas and what happens when brokers fail
- Choose between retention and compaction, and design for at-least-once or exactly-once processing
- Evolve event schemas safely and move data in and out with Kafka Connect and CDC
- Run Kafka on Kubernetes or a managed service, secure it, monitor it and plan its capacity and DR
- Design Kafka as a multi-tenant, self-service platform capability
Before you start
Basic Linux command line and Docker. Kubernetes basics for the operations section.
How it works
Each lesson: plain-language idea → how it really works → hands-on. Each section ends with a cheat sheet & self-check.
Curriculum
Lessons marked “Read” are ready; the rest are on the way.
Foundations
- 01Kafka, EFK and monitoring: who does whatMetrics vs logs vs events, Prometheus and Grafana vs EFK vs Kafka, what Kafka can and cannot do, how they work togetherRead →
- 02Why event streamingPoint-to-point pain, the log, decoupling and replay, log versus queue, when not to use KafkaRead →
- 03Core conceptsBrokers, topics, partitions, offsets, records and keys, consumer groups, retention, KRaftRead →
- 04Lab: your first Kafka clusterRun Kafka in Docker; topics, produce, consume, groups, lag and offset resets with the CLIRead →
- 05Lab: Kafka on your Kubernetes clusterStrimzi with Helm, a 3-node KRaft cluster from YAML, KafkaTopic, produce and consume from pods, a Python producer and consumer, a broker pod failureRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 18 questions to check yourself.Open →
How Kafka works
- 06Producers in depthPartitioning by key, batching, compression, acks, retries and idempotenceRead →
- 07Consumers and consumer groupsThe poll loop, offset commits, rebalances, assignors, lag and scalingRead →
- 08Replication and durabilityLeaders, followers, ISR, high watermark, min.insync.replicas, broker failure, a 3-broker labRead →
- 09Storage, retention and compactionSegments and indexes, retention by time and size, compaction and tombstones, tiered storageRead →
- 10Delivery guarantees and exactly-onceAt-most, at-least and exactly-once; transactions; the outbox pattern; idempotent consumers; dead-letter topicsRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 16 questions to check yourself.Open →
The ecosystem
- 11Schemas and Schema RegistryAvro, Protobuf, JSON Schema, compatibility modes, evolving events safelyRead →
- 12Kafka Connect, CDC and stream processingSource and sink connectors, Debezium, Kafka Streams, Flink, when to use whichRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 6 questions to check yourself.Open →
Operating Kafka
- 13Kafka on Kubernetes and managed KafkaStrimzi resources, storage, racks, upgrades; MSK, Confluent Cloud, Event HubsRead →
- 14Security: TLS, authentication, ACLs and quotasEncryption, mTLS and SASL, ACLs and prefixes, quotas, cloud IAMRead →
- 15Monitoring and troubleshootingThe metrics that matter, consumer lag, common incidents and how to fix themRead →
- 16Capacity, performance and disaster recoverySizing, partition counts, performance tests, MirrorMaker 2, multi-regionRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 12 questions to check yourself.Open →
Kafka as a platform
Real-world scenarios
Work through each one: symptom → misleading signal → evidence → root cause → prevention.
One consumer group falls hours behind after a release. Find whether the producer, the consumer or one message is the cause, and fix it.
A producer reported success but data disappeared after a broker failure. Explain the settings that allowed it and the ones that prevent it.
A new service floods a shared cluster. Contain it today and design the guardrails so it cannot happen again.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.