Technical Architecture & System Internals

How KOLMOS
actually works.

A single unified Rust engine behind three wire protocol doors. High-performance columnar storage with zero-egress cloud durability and sub-millisecond query execution.

Unified System Topology
v1.0 Stack
[Door 1/2/3] PG / MySQL / Mongo WireNative Protocol Support
↓
[Execution] Apache DataFusion 54.1Vectorized SIMD
↓
[Mutations] WAL Write-Buffer~1ms Fast Ack
↓
[Storage] Kolmos Cloud Storage / S3 CASFastCDC Dedup
11 Crates
Modular Rust Workspace
Strict DAG · Zero cycles
"forbid"
Unsafe Code Policy
#![forbid(unsafe_code)]
18 Fixtures
Golden Byte Files
CI byte-equality verified
100%
Bit-Exact Guarantee
decode(encode(x)) == x
System Blueprint

5-Layer Stack Architecture.

Click on any system layer below to inspect its execution mechanics, concurrency invariants, and I/O characteristics.

LAYER 01 SPECIFICATIONid: wire

Client Wire Protocols

PostgreSQL, MySQL, and MongoDB wire protocol listeners. Accepts standard driver connections with zero client-side code modification.

Core Layer Invariants & Capabilities
pgwire + datafusion-postgres
opensrv-mysql framing
BSON OP_MSG protocol parser
SASL SCRAM-SHA-256 + TLS
Subsystem Status: Active & Verified
I/O Path: Low-latency
Query Acceleration

4-Tier Indexing Funnel.

How KOLMOS executes sub-millisecond queries over billions of rows without full-table scans.

01

100M+ Raw Records on Cloud Storage

Data is partitioned into compressed columnar segments stored durably on cloud object storage.

100% Volume Baseline
02

Tier 1: Metadata Range Statistics Pruning

Range queries (WHERE date >= '2026-01-01' or WHERE amount > 500) skip non-matching blocks in 0ms without downloading.

90% Data Blocks Skipped
03

Tier 2: Column Index Filtering

Point lookups (WHERE id = 'uuid-...' or findById) probe metadata filters, isolating target records instantly.

99% Data Blocks Skipped
04

Tier 3: Vectorized Streaming Scan

Target records decode directly into zero-copy memory buffers, streaming straight into analytical aggregations.

Exact Matching Records Returned
Codebase Matrix

11 Rust Crates by Layer.

A clean dependency DAG — no cycles, no unsafe code, no speculative abstractions.

Layer 1: Unified Protocol & Schema Plane
Wire Protocol GatewayMulti-Wire Gateway

Native multi-wire listener for PostgreSQL (5432), MySQL (3306), and MongoDB (27017)

deps: Standard Client Drivers
Schema & Catalog ManagerCatalog Engine

Multi-table catalog management with atomic snapshot commits and lock-free MVCC isolation

deps: Storage Plane
Layer 2: High-Performance Storage Plane
Cloud Storage DriverCloud Object Layer

High-throughput cloud object store adapter for AWS S3 and Cloudflare R2 with zero egress

deps: Storage Engine
Write-Ahead Log BufferDurable WAL

Sub-millisecond durable WAL append buffer providing crash safety and immediate transactional acks

deps: Local NVMe SSD
Layer 3: Autonomous Columnar Compression
Columnar Storage EngineCompression Engine

Automated dictionary encoding, differential vectors, and high-density bit-packing

deps: Format Engine
Continuous Compactor ServiceAutonomous Compactor

Asynchronous background worker pool for data defragmentation and segment compaction

deps: Storage Plane
Layer 4: Vectorized Analytical Query Plane
SIMD Vectorized SQL EngineSQL Execution

ANSI SQL analytical query executor with sub-millisecond range statistics pruning

deps: Query Pipeline
Zero-Copy Streaming MemoryStreaming Engine

Arrow-compatible zero-copy memory buffers streaming directly into aggregation operators

deps: Query Engine
Lossless Verification EngineBit-Exact Validator

Cryptographic 100% bit-exact validation across all data reads and cold storage restores

deps: Storage Engine
Automated Chaos & Health SuiteReliability Suite

Deterministic crash simulation, torn-write prevention, and continuous health probes

deps: Control Plane
Zero-Trust Decoder Covenant

Perpetual decodability.
Guaranteed forever.

Every segment stores the blake3 hash of its exact WASM decoder artifact. Decoders run in a zero-import wasmtime sandbox with fuel metering, permanently exempt from garbage collection.

Invariant #1: decode(encode(x)) == x (18 golden fixtures verified)
Zero ambient authority — no disk, network, or clock leaks
Fuel-metered execution prevents infinite loops and CPU attacks
wasmtime-covenant-verifierSTATUS: GREEN
// Segment Footer Metadata Check
KSF1 Footer Magic: "KSF1END\0" verified ✓
Pinned Decoder Hash: 0x7e8b91a2...
WASM Sandbox Fuel Limit: 10,000 units
[OK] Bit-exact verification passed across all rungs
Recovery path: Replaying WAL = ordinary open (no special codepaths)

Build on the
KOLMOS engine.

Connect your existing PostgreSQL, MySQL, or MongoDB workloads and experience 1.66×–2.12× storage reduction today.