Home / Companies / Aiven / Blog / Post Details
Content Deep Dive

Kafka Tiered Storage in depth: How Reads and Deletes Flow (Prefetching, Caching)

Blog post from Aiven

Post Details
Company
Date Published
Author
Stanislav Kozlovski
Word Count
5,254
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

The KIP-405 Tiered Storage in Kafka enables near-local performance with remote data by utilizing intelligent prefetching and caching. The plugin fetches data from the object store using a byte-ranged GET feature, which allows for efficient fetching of chunks. Caching is used to reduce round-trip times, and pre-fetching ensures that anticipated future reads are cached. The broker serves data from local disk first, and only one partition per fetch request is fetched from the remote store due to a limitation in KAFKA-14915. Deletes are handled by the new local retention settings, which delete data according to the local retention policy if it has successfully been tiered. Orphaned segments are cleaned up once their max leader epoch falls out of the leader epoch checkpoint file. The plugin fetches exactly one chunk per fetch request, and the offset index for the remote segment is fetched from the remote store and cached locally using a Caffeine W-TinyLFU cache.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.