SF128‑LOG v2

Compression‑friendly Snowflake logging using Header + Delta blocks

Downloads

CLI (source): build with go build -o bin/sf128log ./cmd/sf128log from the repository.

Live Demo

Try the Streaming Demo: raw logs (top), live SF128‑LOG conversion (bottom), and live analytics in the middle.

Concept

Emit a single Header (shared context) and many tiny Delta rows (per‑event) — then deterministically reconstruct full 128‑bit Snowflakes from Header.ts_base + delta, node, geo, and type.

Interactive Demo

Why It Compresses

Structured SF128 Payload Example

The 20‑bit Entropy field can embed compact semantics for reconstruction. Example packing: payload20 = (user8 << 12) | (daemon4 << 8) | (action4 << 4) | object4.

External Dictionary Reconstruction

Given Header(dict_id, ts_base, node) and an SF128 with a 20‑bit payload, we can reconstitute the natural log with a shared dictionary.


      

Example Block