Week 17: Kafka in Production

Theme: Operate Kafka at scale: deployment, monitoring, consumer patterns.

Learning Objectives

  1. Deploy Kafka on Kubernetes using Strimzi operator
  2. Create topics with appropriate partitions, replication factor, retention
  3. Implement idempotent producers and consumer groups
  4. Monitor Kafka: lag, throughput, disk usage, ISR status

Reading Materials

Finger Exercises (choose 2)

  1. Deploy a 3-broker Kafka cluster using Strimzi. Create a topic with 6 partitions and replication factor 3.
  2. Write a Go Kafka producer that sends order events. Write a consumer that processes them. Use confluent-kafka-go or franz-go.
  3. Monitor Kafka lag using Prometheus JMX exporter + Grafana dashboard.

Project

Time Budget

ActivityTime
Reading2 hrs
Finger exercises1.5 hrs
Project2.5 hrs
Total6 hrs