Spark Lakehouse: PySpark, Delta, Iceberg & Streaming
Back to Streaming Mini: Redpanda + Spark

Redpanda & Structured Streaming in 10 Minutes

Broker, topics, connector options, and the windowed-count query.

6 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Direct Service Calls — Services calling each other creates coupling, failures, and traffic spikes.
  2. Append-Only Log — Kafka writes events to a log and consumers read at their own pace.
  3. Topics and Partitions — Topics are split into partitions for scaling; order is only guaranteed within a partition.
  4. Keys and Ordering — Keys are hashed to partitions; same key preserves order, but adding partitions breaks mapping.
  5. Consumer Offsets and Groups — Consumers track offsets; groups assign partitions for parallel, independent reading.
  6. Replication and Failover — Partitions are replicated; leader failure promotes an in-sync replica.
  7. Performance and Retention — Sequential writes, page cache, zero-copy; retention keeps data for a window.
  8. KRaft and Summary — Kafka 4 uses KRaft instead of Zookeeper; summary of append-only log benefits.
PDF notes

Frequently asked questions

What happens if the email service is down?

With Kafka, the order service just writes an event; the email service can catch up later from its committed offset.

Can two consumers in the same group read the same partition?

No, each partition is assigned to exactly one consumer within a group.

How do I reprocess last week's orders?

Move the consumer offset backwards and read again; data remains until retention expires.

What is KRaft?

Kafka 4's built-in Raft consensus for cluster metadata, replacing Zookeeper.

Does Kafka delete messages after they are read?

No, messages stay until the retention window or size limit is reached.

Why is Kafka fast if it writes to disk?

Sequential appends, page cache, and zero-copy avoid random disk I/O and extra memory copies.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.