liveBook · Manning

Data tiering

As explained in Kafka for Architects

Tiered storage is a storage arrangement that places data on different storage tiers according to factors such as age, speed, and cost.

Data tiering separates frequently accessed hot data from older cold data. Recent records remain on Kafka broker disks for low-latency access, while older rolled-over segments move to cheaper remote storage, reducing local-disk pressure and storage cost. section 7.1.5 section 1.3.1

A Kafka tiering design combines these operational properties:

  • Retains data beyond local-disk capacity, potentially for an indefinite period. section 7.1.5
  • Moves older segments and associated metadata to remote storage after rollover. section 7.1.5
  • Keeps consumer access transparent: consumers continue normal operations without knowing where records reside. section 7.1.5
  • Requires successful remote copying before Kafka cleans up corresponding local logs. section 7.1.5
  • Introduces dependency on remote-storage availability when consumers request cold data, while non-remote operations can continue normally. section 7.1.5

Keeping event history without treating local disks as unlimited

An event-driven platform keeps recent events on broker-local disks for fast access and periodically offloads older events to Amazon S3, Azure Blob Storage, Google Cloud Storage, or a custom cloud or on-premises system. This supports longer retention, but does not make Kafka a universal storage solution: loading historical data into microservices on demand can create serious performance bottlenecks. section 7.1.5 section 7.0

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.

Use the architecture diagram to contrast low-latency local hot storage with periodically offloaded, cheaper cloud-based cold storage. section 7.1.5

How Kafka for Architects covers it

How deep it goes
Explains placement, configuration, consumer behavior, cleanup safeguards, and remote failures, but not implementation internals.
Examples
Uses broker-local disks, Amazon S3, Azure Blob Storage, Google Cloud Storage, and a hot-versus-cold storage diagram.
What it assumes
Assumes Kafka brokers, producers, consumers, local persistence, and topics; defines hot and cold access patterns.
What you can do after
Operate/configure Kafka tiering using cluster-level or topic-level remote-storage settings and account for cold-data availability.
How it connects
Connects hot data, cold data, local storage, remote storage, retention, consumers, and event sourcing.

Also explained in

Compare how 2 books explain data tiering →

Related concepts

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.