Legacy columnar databases like ClickHouse and Apache Druid are engineering marvels—but if you have ever operated them in cloud-native, multi-tenant environments, you know the operational tax they carry: massive C++ codebases, ZooKeeper/Keeper consensus clusters, stateful local NVMe disks, and complex S3 tiering configurations.
I wanted an analytical engine designed from first principles for the object-storage era: 100% pure safe Rust, zero C++ dependencies, single-binary deployment, crash-safe WAL durability, and open Apache Parquet storage on S3 or Cloudflare R2.
So I built Hercules OLAP—and open-sourced v0.1.0 under AGPLv3 (with a Commercial OEM option).
The Architecture: Decoupling Hot Ingestion from Cold Columnar Storage
Instead of mixing stateful disk trees with consensus daemons, Hercules splits the pipeline into four clean, lock-free Rust modules:
- Durable Append-Only WAL (
src/wal.rs): Every incomingJSONEachRowHTTP batch is appended to a local Write-Ahead Log and flushed viasync_data()(fsync) before returningHTTP 200. On restart, uncompacted WAL segments replay automatically. - Lock-Free Columnar
MemTable(src/memtable.rs): Payloads are parsed into 64-byte aligned Apache ArrowRecordBatcharrays inside a concurrentDashMap. - Async
ZSTDParquet Compactor (src/compactor.rs): A background Tokio worker drains activeMemTablepartitions, sorts and compresses them into immutable Apache Parquet segments usingZSTD, and truncates the corresponding WAL. - Unified Hot + Cold SQL Federation (
src/engine.rs): Powered by Apache DataFusion, every SQL query dynamically merges live uncompacted RAM batches with historical.parquetfiles on Local NVMe, AWS S3, or Cloudflare R2 via a zero-copyUNION ALLplan—guaranteeing real-time read-after-write visibility.
Verified Single-Node Benchmarks (10,000,000 Rows + WAL fsync)
All tests below were run on a single node with crash-safe fsync enabled on every batch (1,153.75 MB raw NDJSON across 6 columns):
- Sustained Ingestion (
16concurrent workers):701,931 rows/sec(10Mrows ingested in14.25 s) - Storage Compression (
ZSTDParquet):16.40x(1,153.75 MBraw JSON →70.33 MBon disk) - Filtered Predicate Pushdown (
10Mrows):99.13 ms(WHERE status_code >= 500 GROUP BY service) - Full-Scan Group-By (
10Mrows):135.55 ms(GROUP BY tenant_id ORDER BY reqs DESC LIMIT 10)
Every file written by Hercules is 100% open Apache Parquet—immediately readable by Polars, DuckDB, Spark, and PyTorch with zero ETL exports.
Try It in 30 Seconds
git clone https://github.com/aetherial-online/hercules-olap.git cd hercules-olap cargo run --release Full source code, modular Rust architecture, and reproducible 10M-row benchmark scripts are live on GitHub:
👉 ://github.com/aetherial-online/hercules-olap
(We are also building **Aetherial Omni, The Invisible Data Fabric, True physical per-tenant isolation and client-side Zero-Knowledge security—turning cold object storage (S3 / R2) into a sub-2ms, 6-in-1 multi-engine fabric.
Join the early access waitlist at aetherial.online).

