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:

  1. Durable Append-Only WAL (src/wal.rs): Every incoming JSONEachRow HTTP batch is appended to a local Write-Ahead Log and flushed via sync_data() (fsync) before returning HTTP 200. On restart, uncompacted WAL segments replay automatically.
  2. Lock-Free Columnar MemTable (src/memtable.rs): Payloads are parsed into 64-byte aligned Apache Arrow RecordBatch arrays inside a concurrent DashMap.
  3. Async ZSTD Parquet Compactor (src/compactor.rs): A background Tokio worker drains active MemTable partitions, sorts and compresses them into immutable Apache Parquet segments using ZSTD, and truncates the corresponding WAL.
  4. Unified Hot + Cold SQL Federation (src/engine.rs): Powered by Apache DataFusion, every SQL query dynamically merges live uncompacted RAM batches with historical .parquet files on Local NVMe, AWS S3, or Cloudflare R2 via a zero-copy UNION ALL plan—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 (16 concurrent workers): 701,931 rows/sec (10M rows ingested in 14.25 s)
  • Storage Compression (ZSTD Parquet): 16.40x (1,153.75 MB raw JSON → 70.33 MB on disk)
  • Filtered Predicate Pushdown (10M rows): 99.13 ms (WHERE status_code >= 500 GROUP BY service)
  • Full-Scan Group-By (10M rows): 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).