BlogUse case
Check what your infrastructure promises before you build on it
Every database and queue promises something about your data, and whether it keeps that promise depends on your settings and on failures that hit every node at once. Afterfault runs your configuration through those failures and counts what survived.
Every system you build on makes a promise. A database says a committed transaction is durable. A queue says an acknowledged message will be delivered. A cache says a write is visible to the next read. Your own code is written on top of those promises, usually without anyone checking what they mean in your configuration.
They often mean less than they sound. "Acknowledged" can mean written to disk on three machines, or held in memory on one. The documentation is usually accurate. The default is usually the fast option. And the difference only shows up during the kind of failure a staging environment never sees.
A known issue, used as a test
In December 2025, Jepsen published an analysis of NATS 2.12.1 showing that JetStream, with its default settings, can lose writes it has already acknowledged. By default it acknowledges a write straight away and flushes to disk every two minutes. If the nodes lose power together inside that window, acknowledged writes are gone.
We used that as a test of our own engine. A tool that compares two configurations should be able to show a difference that is already known; if it cannot, its answer on an unknown one is not worth much. So we ran the same three-node cluster, the same workload and the same mix of faults a hundred times with the default, and a hundred times with one setting changed.
NATS JetStream 2.12.1: runs that lost writes the cluster had acknowledged
After the hundred runs, the engine cut a failing schedule down to the one fault it needs: a power loss on every node at the same moment. Replayed five times against the default, it lost writes five times. With sync_interval: always, it lost none. The full write-up has every count.
The fix is one line of configuration, and it is not free: the NATS documentation, quoted in Jepsen's report, warns that it can slow a server to a few hundred messages a second. We did not measure throughput, so we have no number of our own for the cost. That is exactly the kind of trade a team should make on purpose, with both numbers in front of it.
Changing a durability setting and watching for trouble tells you very little. Running both settings through the same faults and counting gives you a number you can show someone.
What this unlocks
Jepsen's work shows how much careful fault testing finds, and how much expertise each analysis takes. Most teams will never commission one for the exact versions and settings they run. An engine that agents can drive changes who gets to ask the question.
- Before you adopt a database or a queue. Run your workload against it under the failures your environment actually has, and read what "acknowledged" and "committed" mean in practice, for your settings.
- Before you change a setting. Compare the old and the new configuration under the same faults, and get a count instead of a hunch. The same goes for a version upgrade.
- When a vendor makes a claim. Durability, exactly-once delivery, failover with no data loss: each one is a statement about outcomes under failure, and each one can be counted.
- After an incident. Give the engine the timeline, the logs or the postmortem, and it searches for the fault pattern that reproduces it. That run is kept and replayed against every later change.
The environment is built from the files you already run: compose files, Kubernetes manifests, start scripts. The check looks at the outcome, every acknowledged write accounted for, not at what the system reports about itself.
Test the failure that hits everything at once
One lesson from the NATS runs is worth repeating on its own. Killing one process at a time rarely loses data in a replicated system; replication is built for exactly that. Losing power on every node at once is the case replication does not cover, and it is the one most fault tests leave out. Whatever you test, include it.
Bring the system
If you depend on a database, queue or stream processor and want to know what it promises in your configuration, bring the system and the claim you need to trust.