What is NATS? The CNCF messaging project explained

What is NATS? It's an open source messaging system that lets services, devices and AI agents talk to each other without knowing where the others run. CNCF announced its graduation on 10 November 2026 at KubeCon + CloudNativeCon North America in Salt Lake City, more than eight years after it joined the foundation.
If you work with microservices, edge devices or event-driven systems on Kubernetes, NATS is worth knowing. Here's what it is, how it works, and how to try it in a few minutes.
Key points
- NATS is a messaging system: publish/subscribe, request-reply and queue groups, all addressed by subject names rather than hosts.
- JetStream, built into the same server, adds persistence, replay, a key-value store and an object store.
- It joined CNCF at the Incubating level on 15 March 2018 and is now a Graduated project.
- CNCF reports more than 2,000 companies using it, with 6,377 contributors from 1,674 organisations.
- You can run it on Kubernetes with the official Helm chart.
What is NATS, and what problem does it solve
Distributed systems need to pass messages even while services scale, move between environments or briefly disappear. Wiring every service directly to every other one doesn't survive that.
NATS sits in the middle. A service publishes a message to a subject such as orders.retail.placed. Anyone interested subscribes to that subject. The publisher doesn't know who's listening, and the subscribers don't know where the publisher runs. CNCF's announcement describes this as asynchronous messaging that doesn't tightly couple senders to specific receivers, running across cloud, on-premises and resource-constrained edge environments.
Creator Derek Collison sums up the design idea in the graduation announcement: "start with simple building blocks and let people compose them."
Maturity: from incubating to graduated
According to its CNCF project page, NATS was accepted on 15 March 2018 at the Incubating level and moved to Graduated on 2 November 2026. CNCF announced it publicly on 10 November.
To graduate, NATS completed a third-party security audit by Trail of Bits, facilitated by OSTIF with support from CNCF. The audit covered areas including authentication and authorisation, multitenancy and input parsing. The project also earned the OpenSSF Best Practices badge and documented a vendor-neutral governance model in which each organisation gets one vote, however many maintainers it has.
CNCF names NVIDIA, Walmart, AT&T, Capital One, MasterCard and PayPal among its users, and counts more than 400 million downloads.
How NATS works
Subjects and wildcards
Subjects are dot-separated, case-sensitive names. Subscribers can use two wildcards:
*matches exactly one token:orders.retail.*matchesorders.retail.placedandorders.retail.shipped.>matches one or more tokens at the end:sensor.>matchessensor.alarm.smokeandsensor.alarm.smoke.critical.
Publishers always send to a full subject; only subscribers use wildcards.
Core NATS: fast and fire-and-forget
Core NATS delivers a message only to subscribers connected when it's published. In the NATS docs' terms, that's at-most-once delivery with no replay. That's ideal for live telemetry, commands and request-reply between services, where an old message is useless anyway.
JetStream: when messages must not be lost
JetStream is the persistence layer in the same server. A stream stores messages for one or more subjects, on disk or in memory, with configurable retention and replication. A consumer is a server-side view of the stream that tracks each reader's position, so several applications can read the same stream independently and replay from the start, a sequence number or a point in time. Unacknowledged messages are redelivered, which gives at-least-once delivery.
On top of streams, JetStream offers a key-value store and an object store for larger files split into chunks.
Try NATS in five minutes
Install the server and the nats CLI. These are the commands from the NATS docs for Linux:
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@latest | sh
sudo mv nats-server /usr/local/bin/
curl -sf https://binaries.nats.dev/nats-io/natscli/nats@latest | sh
sudo mv nats /usr/local/bin/
On macOS, brew install nats-server and brew install nats-io/nats-tools/nats do the same.
Start a server with JetStream enabled:
nats-server -js
In a second terminal, try publish/subscribe:
nats sub hello &
nats pub hello "Hello NATS!"
Then request-reply, with a replier in one terminal and a request from another:
nats reply hello "Hi there!"
nats request hello "Anyone there?" --timeout=2s
Now make it durable. Create a stream for every subject under orders., publish to it, then read with a consumer:
nats stream add ORDERS --subjects "orders.>" --storage file --retention limits --defaults
nats pub orders.new "Order #1001"
nats pub orders.shipped "Order #1001 shipped"
nats consumer add ORDERS order-processor --pull --deliver all --ack explicit --defaults
nats consumer next ORDERS order-processor --count 2 --ack
Stop the consumer, publish more, start it again: it carries on where it left off. That's the difference from core NATS in one exercise.
Running NATS on Kubernetes
The NATS docs use the official Helm chart. A three-node cluster with JetStream, in a values.yaml file, looks like this:
config:
cluster:
enabled: true
replicas: 3
jetstream:
enabled: true
fileStore:
pvc:
size: 10Gi
helm repo add nats https://nats-io.github.io/k8s/helm/charts/
helm install nats nats/nats -f values.yaml
The release name nats gives you pods named nats-0, nats-1 and nats-2. For managing streams and consumers as Kubernetes resources, the project offers the NACK operator. If Helm itself is new to you, the Linux Foundation's Helm course is a structured place to start.
How NATS relates to other projects
NATS plugs into a lot of the CNCF world. CNCF's announcement lists a Prometheus exporter and NATS Surveyor for monitoring, which pairs well with what you learn for the PCA. Dapr can use NATS as its publish/subscribe layer, and wasmCloud, a CNCF Incubating project, uses JetStream to manage WebAssembly deployments.
You'll often see NATS compared with log-based platforms such as Apache Kafka. The honest short version: NATS puts low-latency messaging and request-reply first and adds persistence through JetStream, all in a single server binary. Which one fits depends on your workload, so test with your own traffic before you decide.
Reality check: there's no NATS-specific CNCF certification today. If you're studying for KCNA, though, knowing what a graduated messaging project does, and how pub/sub differs from request-reply, is good context for the cloud native architecture questions.
FAQ
What is NATS used for? Connecting services, devices and AI agents with messages: publish/subscribe events, request-reply between microservices, work queues, and, with JetStream, durable streams and key-value state.
Is NATS a CNCF graduated project? Yes. Its CNCF project page lists it as Graduated since 2 November 2026, and CNCF announced the graduation on 10 November 2026. It had been Incubating since March 2018.
What is the difference between NATS and JetStream? Core NATS delivers messages only to subscribers online at that moment, at most once. JetStream, part of the same server, stores messages so consumers can replay them and get at-least-once delivery.
What port does NATS use? Clients connect on port 4222 in the NATS docs' examples (nats://localhost:4222). The docs start the optional HTTP monitoring endpoint on port 8222 with nats-server -m 8222.
Is NATS free? Yes, it's open source and hosted by CNCF.
Sources
- CNCF announces NATS graduation (CNCF, 10 November 2026)
- NATS project page (CNCF)
- Subjects (NATS docs)
- JetStream (NATS docs)
- Walkthrough setup (NATS docs)
- NATS on Kubernetes (NATS docs)
Spin up nats-server -js on your laptop tonight and see how far one binary gets you.