liveBook · Manning

Cold data

As explained in Kafka for Architects

Cold data is older or infrequently accessed data that can be retained on lower-cost, higher-latency storage.

Cold data is older or infrequently accessed data retained on cheaper, higher-latency storage. Tiered storage separates it from frequently accessed hot data to balance retention, performance, and cost. section 7.1.5

A tiered architecture typically:

  • Keeps hot data on Kafka broker local disks for low-latency access. section 7.1.5
  • Periodically offloads older rolled-over segments and metadata to cheaper remote storage. section 7.1.5
  • Preserves normal consumer operations while remote access remains transparent, with meaningful errors when remote storage is unavailable. section 7.1.5

Enterprise retention pattern

A Kafka deployment can retain data beyond local-disk limits by moving older segments to Amazon S3, Azure Blob Storage, Google Cloud Storage, or a custom cloud or on-premises system. section 7.1.5

Figure 7.13 When the tiered storage feature is enabled, the cold data is moved periodically to cheaper, cloud-based storage.
A diagram of a remote storage manager and a remote log

AI-generated content may be incorrect.

Illustrates periodic movement of cold data from broker-local disks to cheaper cloud storage. section 7.1.5

How Kafka for Architects covers it

How deep it goes
Explains storage placement, consumer behavior, cleanup safeguards, and enablement properties without detailing implementation internals.
Examples
Uses broker-local disks, Amazon S3, Azure Blob Storage, Google Cloud Storage, and custom remote systems as storage examples.
What it assumes
Assumes familiarity with Kafka consumers, brokers, local disks, retention, and rolled-over log segments.
What you can do after
Operate/configure tiered Kafka storage using cluster- or topic-level remote-storage enablement.
How it connects
Connects tiered storage with Kafka brokers, local disks, remote storage, retention, and consumers.

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.