ORDINUM / ENGINEERING & FIELD NOTESRUST NATIVE. INDEPENDENTLY BUILT.

An independent storage engine

ORDINUM

ORDER FROM EVERY WRITE.

Storage, from
first principles.

A Rust-native LSM database engine. Built around the journey from incoming operations to ordered, persistent data.

Screen-printed architectural interpretation of an LSM engine: incoming record tiles collect in memory, then flow into increasingly large terraces of sorted data.
THE ARCHITECTURE OF ORDERWRITE / FLUSH / MERGE
FIG. 01 An LSM engine, imagined in ink.Conceptual illustration / not an implementation diagram
01 / RECORD

A durable history.

The write-ahead log records operations for recovery. Synchronisation establishes their durability.

02 / ACCUMULATE

Start in memory.

Memtables collect updates before flushing them into immutable, sorted files.

03 / ORGANISE

Order in layers.

Sorted runs organise keys on disk. Indexes and filters help narrow the search for a value.

04 / COMPACT

Merge with purpose.

Compaction combines runs and reclaims obsolete versions when they are no longer needed.

Built in the open. Still taking shape. These are the principles behind the engine, not a checklist of completed features.

Follow the implementation ↗

On the shelf / The journal

Read beneath the surface.

View all writing ↗

Long-form engineering notes. Real design decisions. A working record of how a storage engine is built.

Inside the product

Small details.
Deep engineering.

Ordinum explores the machinery behind a log-structured merge-tree storage engine. The journal documents that work as it develops; the source is the place to inspect the implementation.

Explore the source ↗
01 / WRITE PATH

Every operation has a journey.

Batches, sequencing and commit coordination connect the caller to the WAL and memtable.

Read about writes →
02 / MEMORY & OWNERSHIP

Know what owns what.

Rust types, allocation lifetimes and thread-local storage shape how the engine manages its work.

Read about threads →
03 / DESIGN IN THE OPEN

The reasoning is part of the work.

These are evolving engineering journals, not a claim of production readiness or a finished reference manual.

Meet the author →