firn is an append-only, fsync′d event log with topics, partitions, replay and consumer groups on one side — and ack / redelivery / DLQ queue semantics on the other — in a single ~14 MB static binary. Secure by default: a fresh broker serves nothing until you mint its first key.
/healthz is the only public route$ firnd -data-dir ./data # stderr, exactly once: BOOTSTRAP TOKEN: cafebabe… # no keys ⇒ fail closed $ curl -s -X POST localhost:9460/apikeys \ -H "Authorization: Bearer $BOOTSTRAP" \ -d '{"name":"root","role":"admin"}' {"key":"ev-xxxxxx…","name":"root","role":"admin"} # shown once $ firn-cli -api-key "$KEY" create-topic --name orders --partitions 3 {"mode":"stream","name":"orders","partitions":3} $ firn-cli -api-key "$KEY" produce --topic orders --key k1 --value hello produced to orders partition=1 offset=0
Most brokers force a choice: an event log or a task queue, maintained as two engines. firn keeps a single append-only, CRC-framed, fsync′d log per partition and layers streaming and queue semantics on top of it — one replication path, one audit trail, one set of backups.
FNV-1a key → partition assignment (round-robin when keyless), fetch by offset, per-partition ordering, whole-segment retention by TTL or bytes, consumer groups with range/round-robin assignment and restart-safe committed offsets.
mode: "queue" topics: visibility leases, at-least-once redelivery, attempts counted per message, automatic diversion to <queue>.dlq after 3 attempts, firn-cli dlq redrive to re-inject.
Offsets are monotonic from 0 and never reused; fetch never returns records ≥ HWM; torn tails are truncated on open; the fault-injection suite SIGKILLs a child mid-produce and asserts no acknowledged record is lost.
Zero-key broker serves /healthz only; one-time bootstrap token mints exactly one admin key; SHA-256-hashed keys; roles (viewer/operator/admin); per-key + per-IP rate limits; mesh mTLS; append-only __audit in every mode.
Embedded Raft (no external coordination), content-addressed sealed blocks replicated over mTLS, epoch-fenced write leases, byte-identical replicas, client routing via GetMetadata. Single-region, fixed membership — GA within the documented envelope.
One-way passive replication preserves offsets exactly, fences the sink read-only, and ships with a cutover runbook. Active-active re-originates records with echo filtering. Cursors and replica lag are first-class metrics.
-flush-window=2ms, measured; ~350 msg/s with the -flush-window=0 fsync-per-append opt-out, ADR-014). No exactly-once, no transactions, no Connect/Streams ecosystem, no multi-tenant isolation, one maintainer, zero external production hours. If you need to run the business on it, use Kafka/Redpanda/Pulsar — or a managed service. If you want a broker you can read end-to-end and audit, keep reading.
A trimmed view of the full matrix — Kafka, Redpanda, Pulsar, RabbitMQ, NATS, Redis Streams, Kinesis, Pub/Sub, SQS.
| Capability | firn | Kafka 4 | RabbitMQ | NATS JS |
|---|---|---|---|---|
| License | MIT | Apache-2.0 | MPL | Apache-2.0 |
| One static binary, no deps | yes | no (JVM) | Erlang VM | yes (Go) |
| Stream semantics (offsets, replay) | yes | yes | partial (streams) | yes |
| Queue semantics + broker-native DLQ | first-class | app-level / connectors | first-class | partial |
| Exactly-once | no | EOS | no | approx (dedup) |
| Secure by default (bootstrap token, audit, mTLS mesh) | built-in | configure it yourself | configure it yourself | configure it yourself |
| Audit log, append-only, every mode | built-in | paid tier | partial | no |
| Continued honesty: throughput at scale | ~10³ msg/s | ~10⁶ msg/s | ~10⁵ msg/s | ~10⁵–10⁶ msg/s |
Download, boot fail-closed, mint the first key, produce and fetch your first message.
ReferenceEvery HTTP endpoint and gRPC RPC, roles, error tables, rate limits, federation surface, CLI↔API map.
InternalsComponent planes, sequence diagrams (produce, claim/DLQ, lease replication, federation), deployment topologies.
InstallRelease tarballs + SLSA verification, from source, 1-node and 3-node clusters, TLS, backups, upgrades.
ConfigEvery flag, defaults, retention rules, data-directory layout, startup modes (fail-closed/bootstrap/enforced/open).
Historyv0.1.0 → v0.6.0, how releases are built (CI, SBOM, grype, cosign), verification instructions.