Integration / Apache Kafka Interview questions
How do you configure tiered storage for a Kafka topic?
Tiered storage lets a topic's older log segments move from local broker disks to cheaper, more scalable remote object storage (like S3-compatible storage), while recent, actively-read data stays on fast local disk — extending effective retention far beyond what local broker disk capacity alone could support, without needing ever-larger local volumes.
# broker-level remote.log.storage.system.enable=true # per-topic remote.storage.enable=true local.retention.ms=86400000 # keep 1 day locally retention.ms=2592000000 # but retain 30 days total, in the remote tier
From a client's perspective, the split is transparent: a consumer requesting an old offset that's already moved to the remote tier is served by the broker fetching it from remote storage automatically, without the application needing to know or care where the data physically lives. The main trade-off is latency — reads that hit the remote tier are slower than reads served from local disk — which is why local.retention.ms is tuned to keep the actively-consumed recent window on fast local storage while older, rarely-read history moves to the cheaper tier.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
