Nimbus Runtime documentation
Nimbus is a single-binary event streaming runtime for small teams. It stores append-only logs on local disk, exposes a compact HTTP API, and needs no external broker.
Installation
Nimbus ships as a statically linked binary for Linux and macOS. Verify the release signature before running anything:
curl -fsSLO https://dl.nimbus-runtime.dev/v1.4.2/nimbus_linux_amd64.tar.gz
curl -fsSLO https://dl.nimbus-runtime.dev/v1.4.2/nimbus_linux_amd64.tar.gz.sig
minisign -Vm nimbus_linux_amd64.tar.gz \
-P RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3
tar -xzf nimbus_linux_amd64.tar.gz
sudo install -m 0755 nimbus /usr/local/bin/nimbus
Confirm the installation:
nimbus version
# nimbus 1.4.2 (build 88af31c, go1.23.4)
Configuration
Nimbus reads a single TOML file. The defaults are usable; the settings below are the ones that matter in production.
[server]
listen = "127.0.0.1:8080"
data_dir = "/var/lib/nimbus"
[log]
segment_size = "256MiB"
retention = "168h"
fsync = "batch"
batch_window = "5ms"
Key settings
| Setting | Default | Notes |
|---|---|---|
segment_size | 256MiB | Larger segments reduce file count but slow down retention sweeps. |
retention | 168h | Segments older than this are deleted by the background compactor. |
fsync | batch | Use always for strict durability, never only in tests. |
batch_window | 5ms | How long a write waits to coalesce with others before flushing. |
data_dir is readable by users outside its own group. Run it as a dedicated unprivileged account.Operating Nimbus
Run Nimbus under systemd so restarts and log capture are handled for you:
[Unit]
Description=Nimbus event runtime
After=network-online.target
[Service]
User=nimbus
Group=nimbus
ExecStart=/usr/local/bin/nimbus serve --config /etc/nimbus/nimbus.toml
Restart=on-failure
RestartSec=2
LimitNOFILE=65536
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
ReadWritePaths=/var/lib/nimbus
[Install]
WantedBy=multi-user.target
Health checks
A healthy node answers /healthz with a small JSON document. Wire it into your monitoring:
curl -fsS http://127.0.0.1:8080/healthz
# {"status":"ok","uptime_s":184223,"segments":41,"lag_bytes":0}
HTTP API
Nimbus exposes four verbs over plain HTTP. Requests are JSON in, JSON out.
POST /v1/logs/{stream}/append— append one or more recordsGET /v1/logs/{stream}/read?from=<offset>— read forward from an offsetGET /v1/streams— list streams with size and offset boundsDELETE /v1/logs/{stream}— drop a stream and reclaim its segments
Appending a record:
curl -fsS -X POST http://127.0.0.1:8080/v1/logs/orders/append \
-H 'Content-Type: application/json' \
-d '{"records":[{"key":"ord-9912","payload":{"total":4200,"cur":"USD"}}]}'
# {"offset":184223,"count":1}
Offsets are monotonic per stream and never reused, so a consumer that remembers its last offset can always resume exactly where it stopped.