Skip to Content
πŸš€ KalamDB v0.3.0-alpha2 is out β€” Learn more
ArchitectureOverview

Architecture Overview

KalamDB is built as a modular system with clear separation between the query engine, storage layer, and real-time pipeline.

Component Diagram

KalamDB architecture diagram

Data Directory Layout

data/ β”œβ”€β”€ rocksdb/ # Hot storage (RocksDB column families) β”‚ β”œβ”€β”€ system_* # System tables β”‚ └── user_* / shared_* # Hot buffers per table └── storage/ # Cold storage (Parquet segments) β”œβ”€β”€ user/{user_id}/{table}/ β”‚ β”œβ”€β”€ manifest.json # Schema + segment index β”‚ └── batch-<index>.parquet # Flushed segments └── shared/{table}/ β”œβ”€β”€ manifest.json └── batch-<index>.parquet

kalamdb-core orchestrates everything and never talks to RocksDB or the filesystem directly β€” it goes through kalamdb-store (key/value hot path) and kalamdb-filestore (Parquet + manifest management).

Technology Stack

ComponentTechnologyPurpose
LanguageRust 1.92+Performance, safety, concurrency
Storage (Hot)RocksDB 0.24Fast buffered writes (<1ms latency)
Storage (Cold)Apache Parquet 57.0Compressed columnar analytics
Query EngineApache DataFusion 51.0SQL across hot+cold storage
In-MemoryApache Arrow 57.0Zero-copy data structures
API ServerActix-web 4.12REST + WebSocket endpoints
Authbcrypt + JWTPassword hashing + token auth
DeploymentDockerProduction containerization
Last updated on