InsightsCloud
NATS graduates from the CNCF: what to check before you run JetStream
On 10 November 2026 the CNCF announced the graduation of NATS. What the graduation does and does not tell you, and the JetStream settings that decide whether a NATS deployment on Kubernetes keeps its messages: replicas, limits, acknowledgements and duplicate detection.
Published November 16, 20265 min read
On 10 November 2026, at KubeCon + CloudNativeCon North America, the CNCF announced that NATS has graduated. NATS entered the CNCF at the Incubating level in March 2018. The announcement describes it as an open source communication layer that combines messaging, streaming and state, and lists JetStream persistence, a key-value store and an object store among its features.
Graduation is a statement about project maturity and governance. It does not configure your cluster for you. This article covers what the announcement says, then the JetStream settings that a platform team should decide on purpose before putting NATS under a production workload.
What the announcement says
According to the CNCF post:
- To graduate, NATS completed a third-party security audit by Trail of Bits, arranged by OSTIF with CNCF support, earned the OpenSSF Best Practices badge and adopted the CNCF Code of Conduct. The audit covered authentication and authorization, multitenancy and input parsing. The audit write-up is public.
- Governance is vendor-neutral, with one vote per organization regardless of how many maintainers it has.
- The project reports more than 2,000 companies using NATS, 6,377 contributors from 1,674 organizations and more than 400 million downloads. These are the project's figures, as quoted by the CNCF.
- Kubernetes integrations named in the post are Helm charts and the NACK operator, plus a Prometheus exporter and NATS Surveyor for monitoring.
- The roadmap lists NATS Server 2.16 for March 2027. Planned items include checksums on files written to disk, automatic restoration of missing or damaged data between cluster servers, and incremental JetStream stream backups. This is a plan, not a release.
The post does not state the current server version or the licence. Read both from the nats-server repository before you adopt it.
Core NATS and JetStream are different guarantees
Core NATS delivers a message only to subscribers connected when it is published, and there is no replay. JetStream adds persistence: a stream stores messages for one or more subjects, and a consumer tracks a client's position in that stream. JetStream provides at-least-once delivery. An unacknowledged message is redelivered after a timeout, so duplicates are possible.
That gives a simple rule for choosing. If a lost message is acceptable, such as a heartbeat or a cache invalidation, core NATS is enough. If a lost message is an incident, use a stream, and read the settings below.
Stream settings to choose deliberately
The stream documentation lists the defaults. Several are fine for a laptop and wrong for production.
| Setting | Default | Why it matters |
|---|---|---|
| Replicas | 1 | The stream lives on one server. The documentation calls this risky in production. |
| Storage | File | Memory storage is faster but is lost on restart. |
| Retention | Limits | Messages stay until a size, age or count limit is reached. Interest and WorkQueue delete messages once consumers have read them. |
| Discard policy | Old | At a limit, the oldest messages are deleted. New rejects new messages instead. |
| Maximum messages, bytes, age | Unlimited | The documentation advises setting at least one limit on a real cluster. |
| Duplicate window | 2 minutes | The server rejects a second message with the same Nats-Msg-Id header inside the window. |
Two of these cause most surprises:
- Replicas of 1. A single-replica stream is lost with its node. Set a higher replica count for streams that matter, and see the documentation page on surviving node loss for what a given count tolerates.
- Discard policy. With the default
Old, a stream that fills up silently drops the oldest data, which is right for a rolling event log and wrong for a work queue where every message must be processed. WithNew, publishers get errors instead, which is visible but is also an outage for them. Choose which failure you prefer, and alert before either happens.
On Kubernetes, the NACK controllers can manage streams as resources. NACK provides Stream and Consumer custom resources under jetstream.nats.io/v1beta2, and the control-loop mode that adds KeyValue, ObjectStore and Account is marked experimental in the project README. A stream then lives in Git like any other manifest:
apiVersion: jetstream.nats.io/v1beta2
kind: Stream
metadata:
name: orders
spec:
name: orders
subjects: ["orders.>"]
storage: file
replicas: 3
retention: workqueue
maxAge: 24hCheck the field names against the CRD installed in your cluster, because they follow the NACK version you run, and apply the manifest in a test cluster first.
Consumers: acknowledgements and back pressure
A consumer is the server-side record of where a client is in a stream, so applications do not track it themselves. The consumer documentation describes pull consumers with explicit acknowledgement, which is the usual shape for services:
- Acknowledge after the work is done, not when the message arrives. Otherwise a crash loses the message.
- Expect redelivery. A message that is processed but whose acknowledgement is lost comes back. Handlers must be safe to run twice, as described in auto-remediation with EventBridge and Lambda, where the same rule applies.
- Mind
MaxAckPending. The default is 1000. It limits how many unacknowledged messages the consumer hands out, and a worker pool shares that limit, so keep it at or above your batch size. - Set
expireson pulls. A pull without it can stall, and client libraries default to about 30 seconds. An empty fetch returns a408 Request Timeoutstatus.
For publishers, send a Nats-Msg-Id header with a stable identifier, such as the order ID. A retry inside the duplicate window is then rejected instead of stored twice. Beyond the window, deduplication is up to the consumer.
A checklist before the first production stream
- Decide per stream what loss is acceptable, and pick storage, replicas and retention from that.
- Set at least one limit, and choose the discard policy on purpose.
- Run the server as a cluster across availability zones, and test removing one node while publishers and consumers are running. The approach in designing for availability-zone failure applies.
- Export metrics with the Prometheus exporter and alert on stream size against its limits and on consumers whose pending count keeps growing.
- Put data on the roadmap: if you rely on features planned for 2.16, such as incremental stream backups, treat them as unavailable until released, and test restores of what exists today.
What to watch
- Run the version you intend to keep. The roadmap items for 2.16 are targeted for March 2027, so plan upgrades through the project's release notes rather than the announcement.
- Case studies in the post, such as the latency and operations-time figures from Sophotech, are the adopter's own numbers on its own workload. Measure with your message sizes and fan-out before you compare.
- If you come from another broker, migrate one subject tree at a time and keep the old path running until consumers have caught up.