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

Kafka Streams Window By & RocksDB Tuning

Blog post from Coralogix

Post Details
Company
Date Published
Author
Coralogix Team
Word Count
2,770
Company Posts That Month
14
Language
English
Hacker News Points
-
Post removed?
No
Summary

Kafka Streams offers a feature called windowing that provides statistical insights into data over a specific timeframe by utilizing tumbling time windows and storing data in a local database known as a state store. The article explains the usage of different types of timestamps, such as clock time, record timestamp, stream time, and event time, in the context of Kafka Streams. It describes the process of implementing tumbling time windows in Scala and tuning RocksDB, a database used to manage local state stores in Kafka Streams, to optimize memory usage. The text illustrates how data records with keys and timestamps are consumed, accumulated, and presented in a windowed topic, showing how records are counted over a given window. It further discusses the importance of a grace period and tuning parameters in RocksDB to balance memory and CPU usage, reducing memory consumption from 10 GB to 3 GB while maintaining efficient CPU usage. The fine-tuning process involves adjusting configurations such as the LRU cache size, write buffer manager size, and the ratio of read/write cache to optimize resource use without causing excessive CPU demand.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
AI Model Fine-tuning 1 No monthly metrics for this publish month.
Kubernetes 1 1,085 130 43 -12%
Observability 1 430 98 28 -15%
OpenTelemetry 1 32 13 5 -87%
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.