About
Detent is a fast, simple and safe runtime-configuration system for feature flags, kill switches and live settings. It features:
Simple knob model:
Section titled “Simple knob model:”- Namespaced
boolandintknobs. - Percentage rollouts with stable SHA-256 buckets.
- Per-group forced values and per-group rollouts.
Allocation-free reads:
Section titled “Allocation-free reads:”- One atomic load, one lookup and one evaluation per read.
- No network, disk, lock or allocation on the read path.
- Pinned views for consistent multi-knob reads.
Safe updates:
Section titled “Safe updates:”- Strict validation off the read path.
- Atomic whole-snapshot swaps; last known good on any failure.
- Fail-fast on missing knobs, with baked defaults shipped alongside code.
Distribution:
Section titled “Distribution:”- Live updates from a snapshot file, or managed delivery from the authority.
- A host-local managed agent and
detent getfor any language.
Durable authority:
Section titled “Durable authority:”- Authenticated, atomic, per-namespace transactions with compare-and-set.
- Durable consensus with mutual TLS between fixed voters.
- Authenticated delivery of snapshots and deltas into immutable local generations.
Everywhere:
Section titled “Everywhere:”- C++20 library, Python and Rust bindings, and a shell reader.
- Linux, macOS and FreeBSD, with systemd, launchd and rc.d templates.
You can find the source code for Detent on GitHub.