Streaming Data Systems
Glossary
Every Streaming Data Systems term in plain words, with the module that teaches it. Inside modules, any word with a dotted underline explains itself.
Streaming Data Systems · 67 terms
- acks
- The producer setting for when a write counts as done: 0 (don't wait), 1 (the leader has it) or all (every in-sync replica has it). Kafka's Java producer defaults to all since version 3.0.
- Learn it in “Durability and replication” →
- Append-only log
- An ordered sequence of records where new ones are only added at the end and old ones are never changed. Readers track their own position in it and can re-read. The core data structure of Kafka and its relatives.
- Learn it in “Events, logs and topics” →
- Backpressure
- A slow stage making the stages before it slow down, instead of being overwhelmed. Flink does it with credit-based flow control, so the job's source reads Kafka more slowly and lag appears there.
- Learn it in “Backpressure and lag” →
- Backward compatible
- A schema change where consumers using the new schema can still read data written with the old one, such as adding a field with a default. Upgrade consumers first. Confluent Schema Registry's default.
- Learn it in “Schemas and evolution” →
- Bounded data
- A dataset with an end, such as yesterday's payments or a file: you can read all of it and then compute an answer. Batch processing works on bounded data.
- Learn it in “Batch vs streams” →
- Capacity unit
- A fixed slice of throughput you rent by the hour: a Kinesis shard (1 MB/s or 1,000 records/s in), an Event Hubs throughput unit (1 MB/s or 1,000 events/s in), a Confluent eCKU. You pay for it whether you use it or not.
- Learn it in “Sizing and cost” →
- Checkpoint (stream processing)
- A consistent snapshot of a streaming job's state together with its position in each input, taken automatically while the job runs. After a crash the job restores it and replays input from those positions.
- Learn it in “Checkpoints and exactly-once processing” →
- Checkpoint barrier
- A marker Flink injects into the data streams. It flows in line with the records; each operator snapshots its state when the barrier passes, so all snapshots describe the same point in the input.
- Learn it in “Checkpoints and exactly-once processing” →
- Commit interval
- How often a streaming writer makes its new files visible in a lakehouse table: each Flink checkpoint, each Spark micro-batch, or a connector setting such as the Iceberg Kafka Connect sink's 5-minute default. It sets the table's freshness and how many small files appear.
- Learn it in “Streaming into the lakehouse” →
- Committed offset
- The position a consumer group has saved for a partition: the next record to read. After a crash or rebalance, reading resumes from here. Kafka stores it in the internal __consumer_offsets topic.
- Learn it in “Consumer groups and offsets” →
- Compensating action
- A step that semantically undoes an earlier, already committed step of a saga: refund a charge, release reserved stock. It doesn't erase history; both the action and its undo remain.
- Learn it in “Event-driven patterns” →
- Consumer
- A program that reads events from a topic, keeping track of its own position (offset). Many consumers can read the same topic independently.
- Learn it in “Events, logs and topics” →
- Consumer lag
- How far a consumer group is behind on a partition: the newest offset minus the committed offset. Growing lag means events arrive faster than they're processed.
- Learn it in “Consumer groups and offsets” →
- Continuous query
- A query over a stream that never finishes: its result keeps updating as new events arrive. Flink SQL calls the inputs and outputs dynamic tables.
- Learn it in “Streaming SQL” →
- Cross-zone traffic
- Data sent between availability zones in one region. AWS charges $0.01 per GB in each direction and GCP $0.01 per GiB; Azure stopped charging in 2024. Self-run Kafka replicating across zones generates a lot of it.
- Learn it in “Sizing and cost” →
- Event (record, message)
- A record that something happened, such as a payment. In Kafka it has a key, a value, a timestamp and optional headers. Events state facts, so they aren't changed once written.
- Learn it in “Events, logs and topics” →
- Event time
- When something actually happened, usually a timestamp inside the event. Results computed by event time are correct even when events arrive late or out of order.
- Learn it in “Event time vs processing time” →
- Fetch from follower
- Letting a Kafka consumer read from an in-sync replica in its own zone instead of the partition leader (KIP-392, Kafka 2.4), set with client.rack and a rack-aware replica selector. It cuts cross-zone traffic at the cost of slightly higher latency.
- Learn it in “Sizing and cost” →
- Forward compatible
- A schema change where consumers still on the old schema can read data written with the new one, such as adding a field old readers ignore. Upgrade producers first. FULL compatibility means both.
- Learn it in “Schemas and evolution” →
- Hopping window
- Fixed-size windows that start more often than their size, so they overlap: 10-minute windows every 5 minutes put each event in two. Flink, Spark and Beam call these sliding windows.
- Learn it in “Windows” →
- Hot partition (hot key)
- A partition that gets far more traffic than the others because one key, such as a huge merchant, is a large share of events. Adding partitions doesn't help, since a key always maps to one partition.
- Learn it in “Partitions and ordering” →
- Idempotent consumer
- A consumer whose effect is the same if it receives an event twice, usually by recording the IDs it has handled or using upserts. The portable way to cope with at-least-once delivery.
- Learn it in “Delivery guarantees” →
- Idempotent producer
- A Kafka producer that tags each batch with its producer ID and a sequence number, so the broker can drop retried duplicates. On by default since Kafka 3.0; it only lasts one producer session.
- Learn it in “Delivery guarantees” →
- In-sync replicas (ISR)
- The leader plus the followers that are keeping up with it (in Kafka, within 30 seconds by default). Only they can be elected leader without losing committed data.
- Learn it in “Durability and replication” →
- Kafka protocol
- The wire protocol Kafka clients use to talk to brokers. Platforms that speak it (Redpanda, Amazon MSK, Confluent, Azure Event Hubs' Kafka endpoint, WarpStream…) work with existing Kafka client code, though not always with every feature.
- Learn it in “The platforms compared” →
- Kafka transaction
- Writes to several partitions, plus the consumer offsets they came from, committed or aborted together. Consumers set to read_committed see only committed data. The basis of exactly-once inside Kafka.
- Learn it in “Delivery guarantees” →
- Kappa architecture
- One streaming pipeline only; to recompute, replay the retained log through a new version of the job. Proposed by Jay Kreps in 2014.
- Learn it in “Batch vs streams” →
- Lambda architecture
- Running two pipelines side by side: a slow, complete batch layer and a fast, approximate real-time layer, merged when queried. Described by Nathan Marz in 2011; costly because the logic is written twice.
- Learn it in “Batch vs streams” →
- Log compaction
- A cleanup policy that keeps at least the latest record for each key and removes older ones, so a topic behaves like a table of current values. Offsets never change, and order is kept.
- Learn it in “Retention, compaction and tiered storage” →
- Log segment
- One file of a partition's log. Kafka starts a new segment every 1 GiB or 7 days by default, and deletes or compacts whole closed segments, never the one being written.
- Learn it in “Retention, compaction and tiered storage” →
- Managed Kafka
- Apache Kafka run by a provider (Amazon MSK, Confluent Cloud, Google Managed Service for Apache Kafka, Aiven): they handle brokers, patching and failures; you still choose sizes, topics and partitions.
- Learn it in “The platforms compared” →
- Materialised view
- A stored query result. In streaming systems it is maintained incrementally, applying each change instead of recomputing, so it stays close to up to date: ksqlDB tables, RisingWave and Materialize views, Flink materialized tables.
- Learn it in “Streaming SQL” →
- min.insync.replicas
- The fewest in-sync replicas a partition must have to accept acks=all writes. Below it, writes are refused with an error instead of being risked. Recommended: 2 with a replication factor of 3.
- Learn it in “Durability and replication” →
- Partition (stream)
- One of the ordered logs a topic is split into, so it can be spread across machines and read in parallel. Order is guaranteed within a partition, not across partitions. Kinesis calls them shards.
- Learn it in “Partitions and ordering” →
- Partition key
- The part of an event used to choose its partition: Kafka hashes it (murmur2) and takes the remainder by the partition count. Events with the same key land in the same partition, in order.
- Learn it in “Partitions and ordering” →
- Partition leader
- The broker that handles all writes (and by default reads) for a partition. Follower brokers copy from it; if it fails, an in-sync follower takes over.
- Learn it in “Durability and replication” →
- Pivot transaction
- The point of no return in a saga. Steps before it can be compensated; once it succeeds, the saga must complete, so later steps are retried until they succeed.
- Learn it in “Event-driven patterns” →
- Poison pill
- An event that fails every time a consumer tries to process it, such as malformed data. If the consumer keeps retrying, its position never moves forward and the whole partition behind it is blocked.
- Learn it in “Errors, retries and dead-letter queues” →
- Processing time
- When the processing system sees an event, by its own clock. Simple and fast, but results depend on delays and change if the same data is replayed.
- Learn it in “Event time vs processing time” →
- Read model
- A copy of data shaped for one kind of query (a balance lookup, a statement screen, a search index), kept up to date by a projection that consumes events. In CQRS it lags the write side slightly.
- Learn it in “Event-driven patterns” →
- Real-time analytics store
- A columnar database that ingests straight from a stream and answers aggregations within milliseconds to seconds, for many queries at once. Also called real-time OLAP: ClickHouse, Apache Druid, Apache Pinot, StarRocks, Apache Doris.
- Learn it in “Real-time analytics stores” →
- Rebalance
- Reassigning a topic's partitions among a consumer group's members when one joins, leaves or stops responding. Eager rebalances pause the whole group; cooperative ones move only what changes.
- Learn it in “Consumer groups and offsets” →
- Repartition
- Rewriting a stream to an internal topic under a new key so that events with the same new key meet in the same partition before grouping or joining. Triggered by changing the key.
- Learn it in “Filter, map, route” →
- Replaying a dead-letter queue
- Sending parked events back into the main topic (or straight to the consumer) once the cause of their failure is fixed, so they are processed after all. Also called redrive.
- Learn it in “Errors, retries and dead-letter queues” →
- Replication factor
- How many copies of each partition a Kafka cluster keeps, on different brokers. 3 is the usual choice for production; it triples disk use and the traffic between brokers.
- Learn it in “Sizing and cost” →
- Replication slot
- A PostgreSQL bookmark that keeps write-ahead log on disk until a consumer such as Debezium has read it. A stopped consumer makes it keep growing, which can fill the disk unless max_slot_wal_keep_size is set.
- Learn it in “Change data capture and the outbox” →
- Retention
- How long (retention.ms, 7 days by default) or how much (retention.bytes, per partition, unlimited by default) a topic keeps before deleting its oldest segments, whether or not anyone has read them.
- Learn it in “Retention, compaction and tiered storage” →
- Rollup
- Pre-aggregating rows as they are ingested, for example one row per city per minute with a count and a sum, instead of one row per event. Queries get much faster, but the individual events are no longer stored.
- Learn it in “Real-time analytics stores” →
- Schema
- A formal description of an event's shape: its fields, their types and which are optional. Producers write with one and consumers read with one; they needn't be the same version.
- Learn it in “Schemas and evolution” →
- Session window
- A window per key that groups events until there's a gap of inactivity longer than a set time, so its length varies. Suits user visits.
- Learn it in “Windows” →
- State store
- Where a stream processor keeps memory between events (counts, windows, join tables), usually on local disk or in memory next to the code, backed up so it survives crashes. Kafka Streams uses RocksDB plus a compacted changelog topic.
- Learn it in “State and joins” →
- Stateless operation
- A stream processing step that handles each event on its own, without remembering earlier ones: filter, map, mask, route. Easy to run in parallel and to restart.
- Learn it in “Filter, map, route” →
- Stream–stream join
- Matching events from two streams with the same key that occur within a time window of each other, such as a payment and a login within five minutes. Both sides are kept in state for the window.
- Learn it in “State and joins” →
- Stream–table duality
- A stream of changes can be replayed into a table (the latest value per key), and a table's changes can be read as a stream. Kafka's KStream and KTable are two views of the same data.
- Learn it in “State and joins” →
- Stream–table join
- Enriching each stream event with a lookup in a table, such as adding a customer's tier to a payment. Only stream events trigger output; table updates just change the lookup.
- Learn it in “State and joins” →
- Tiered storage
- Keeping recent log segments on broker disks and moving older ones to cheap object storage such as S3, where consumers can still read them. Production-ready in Apache Kafka since 3.9.
- Learn it in “Retention, compaction and tiered storage” →
- Tombstone
- A record with a key and a null value, telling a compacted topic to delete that key. The tombstone itself is removed after delete.retention.ms (1 day by default).
- Learn it in “Retention, compaction and tiered storage” →
- Topic
- A named log of related events, such as payments, that producers write to and consumers read from. Kafka keeps events for the topic's retention period whether or not they've been read.
- Learn it in “Events, logs and topics” →
- Topology
- The graph of processing steps a stream application runs: source topics, operators such as filter and map, and sink topics. Kafka Streams calls it a processor topology; Flink a job graph.
- Learn it in “Filter, map, route” →
- Transaction log
- The database's own ordered record of every committed change, kept for crash recovery and replication: MySQL's binlog, PostgreSQL's write-ahead log (WAL). Change data capture reads it.
- Learn it in “Change data capture and the outbox” →
- Transactional sink
- An output that writes each checkpoint's results in a transaction and commits only when the checkpoint completes, so results are never visible twice after a restore. Flink's Kafka sink in EXACTLY_ONCE mode works this way.
- Learn it in “Checkpoints and exactly-once processing” →
- Tumbling window
- Fixed-size, non-overlapping windows placed back to back, such as every 10 minutes. Each event falls in exactly one.
- Learn it in “Windows” →
- Unbounded data
- Data that keeps arriving with no end, such as payments, clicks or sensor readings. Stream processing is designed for it (Tyler Akidau: an engine “designed with infinite data sets in mind”).
- Learn it in “Batch vs streams” →
- Unclean leader election
- Letting a replica that has fallen behind become leader when no in-sync replica is left. The partition comes back sooner but loses the data that replica never copied. Off by default in Kafka (on by default in Amazon MSK without tiered storage).
- Learn it in “Durability and replication” →
- Watermark
- A stream processor's running estimate of how far event time has progressed: a watermark of X claims all events before X have arrived. Windows are finalised when it passes their end; later events are late.
- Learn it in “Event time vs processing time” →
- Window
- A finite slice of an endless stream, usually by event time, over which a count, sum or other aggregate is computed. Types: tumbling, hopping, sliding and session.
- Learn it in “Windows” →
A
B
C
E
F
H
I
K
L
M
P
R
S
T
U
W
General terms · shared by every track
- ACID
- Four guarantees for transactions: Atomic (all or nothing), Consistent (rules hold), Isolated (concurrent work doesn't interfere), Durable (once done, it stays done).
- Learn it in “ACID on object storage” →
- Atomic
- All or nothing. An atomic change either happens completely or not at all, and nobody ever sees it half done.
- Think of it as: Handing over a sealed envelope: the other person has it or doesn't. There's no half-handed envelope.
- Learn it in “Object storage: the ground floor” →
- Batch processing
- Processing data in scheduled chunks, such as every night or every hour.
- Learn it in “Getting data in” →
- CSV
- Comma-separated values: plain text, one row per line. Easy to read, slow and large for analytics, and no schema.
- Learn it in “Rows vs columns: file formats” →
- Idempotent
- Safe to run twice: running the job again gives the same result instead of duplicating data.
- Learn it in “Medallion architecture” →
- JSON
- A text format of nested key-value objects, like {"id": 7}. Common for app events and APIs, and used by Delta's transaction log.
- Learn it in “Rows vs columns: file formats” →
- Metadata
- Data about data: which files exist, their schema, sizes and statistics. Engines read metadata first to plan work.
- Learn it in “What makes a table a table” →
- Schema
- The structure of a table: its column names and types, such as order_id: long, amount: decimal.
- Learn it in “Schema evolution & enforcement” →
- SQL
- The standard language for querying tables: SELECT … FROM … WHERE …
- Learn it in “Hands-on: query in your browser” →
- Streaming
- Processing data continuously as it arrives, within seconds or minutes.
- Learn it in “Getting data in” →
- Transaction
- A group of changes that succeeds or fails as one unit.
- Think of it as: A money transfer: debit one account and credit the other, or do neither.
- Learn it in “ACID on object storage” →
A
B
C
I
J
M
S
T