Cloud Native

How to Run AI Agent Messaging Across Cloud and Edge | Andrew Connolly, NATS | TFiR

0

AI agents need to find each other, exchange messages in real time and share state, wherever they run. Across cloud, on-premises and the edge, messaging, streaming and state can each end up as a separate system to run and connect. Edge sites add unreliable links and strict network limits on top.

In this interview on TFiR, Andrew Connolly, Project Maintainer at NATS, walks through how NATS combines messaging, streaming and key-value state in one system, how leaf nodes extend it to the edge, and where the project goes next.

Guest: Andrew Connolly, Project Maintainer at NATS
Show: KubeCon+CloudNativeCon
LinkedIn: Andrew Connolly
Watch the discussion on YouTube

Here is what every platform engineer and architect running AI agents needs to know.

Technical Deep Dive

Q: How do you give AI agents real-time messaging and shared state?

Andrew Connolly, Project Maintainer at NATS, says agents need location-independent discovery, request/reply and one-to-many patterns, and NATS already provides them because it was created to solve microservices challenges. Connolly adds that Synadia is building commercial products on top of NATS for agent nuances such as sharing state via a scratchpad. The infrastructure layer stays the same whether a team runs the core project or an application on top.

“Location-independent discovery, request/reply patterns, and one-to-many patterns are all already right there in NATS and have been for a long time.” Andrew Connolly, Project Maintainer, NATS

Q: What is NATS and where did it come from?

NATS dates to 2010, when founder and creator Derek Collison wanted better messaging between the components of Cloud Foundry. Today it does messaging, data streaming with persistence, and a key-value store built on that persistence. Connolly describes it as a Swiss Army knife of messaging patterns.

“NATS has been around since 2010, way before anyone was talking about AI.” Andrew Connolly, Project Maintainer, NATS

Q: How does NATS combine messaging, streaming and key-value in one system?

NATS Core provides simple fire-and-forget messaging. JetStream adds persistence, so one service can publish a message and another can retrieve it later, which is the Kafka analog, and a key-value cache built on that layer is the Redis analog. All of it ships in a single 20-megabyte binary with no external dependencies, so it runs on a Raspberry Pi, a laptop or a cloud supercluster.

“We pack all of that into a single 20-megabyte binary, no external dependencies, and so it runs anywhere.” Andrew Connolly, Project Maintainer, NATS

Q: How do you run messaging at the edge when links are unreliable?

A big supercluster runs in the cloud as the backend, and individual NATS servers run as leaf nodes on devices such as cars, scooters, EV chargers or point-of-sale machines and connect back up. A fleet can be 50 leaf nodes in a warehouse or 50,000 on scooters. Each leaf node works as a local message broker, so it keeps operating when disconnected and syncs data back to the cloud when the connection returns.

“If they’re disconnected from the cloud, they can still keep operating in a local context and then they will gracefully sync or move data back up to the cloud as necessary when the connection comes back.” Andrew Connolly, Project Maintainer, NATS

Q: What do retail, finance, telecom and manufacturing need from a messaging system?

Connolly says NATS is built on simple primitives (pub/sub, request/reply and one-to-many communication), so developers in any industry can apply it to their own domain. Lovable reportedly cut data transfers by 97% using NATS in its real-time system, and NATS appears in NVIDIA’s DSX reference architecture for AI factories, where it moves telemetry off devices. E-commerce and payments teams value low latency and many messaging patterns in one piece of software instead of separate Redis, Kafka and RabbitMQ deployments.

“NATS has been built on these really simple primitives: pub/sub, request/reply, and one-to-many communication. They’re really elegant building blocks.” Andrew Connolly, Project Maintainer, NATS

Q: How does NATS governance work and how can you contribute?

As an open source project, NATS protects the server most because it has to be resilient, reliable and scalable, so the team is careful about adding features and scope. Around the server sits a large ecosystem of clients and tools where community involvement is much more open and people spin things up as needed. The overhauled project website links to GitHub and the public Slack community for anyone who wants to contribute.

“Rather than adding more surface area, we want to really polish, refine, and harden the surface area that’s already there.” Andrew Connolly, Project Maintainer, NATS

Q: What is on the NATS roadmap?

The top focus remains reliability, performance and stability, plus keeping the software secure. Connolly says many open source projects in 2026 face more vulnerability reports and findings because of AI agents, so the team has put a lot of work this year into server security and software supply chain security. The team already sees NATS as well placed for the agentic era and will consider changes that make it a better fit for where AI is going.

“In 2026, I would say many open source projects are dealing with an increase in vulnerability reports and findings because of AI agents.” Andrew Connolly, Project Maintainer, NATS

Q: What does it take for a CNCF project to graduate?

Connolly describes graduation as a formal stamp of approval for more than a decade of work and investment. NATS points to thousands of end users running it in production and, by his estimate, more than 6,000 contributors over the years. The formal checkboxes covered project governance and security audits that the project passed in recent years.

“We think of graduation as really a formal stamp of approval for a lot of work and investment over the last decade plus.” Andrew Connolly, Project Maintainer, NATS

Resources & Documentation

***

👇 Click to Read Full Raw Transcript

Swapnil Bhartiya: As organizations deploy AI agents, those agents need a reliable way to find each other, exchange messages in real time, and share state wherever they run. That gets harder across cloud, on-premises, and the edge because messaging, streaming, and state can each need their own systems. And there is an open source project called NATS, which is now being used by more than 2,000 companies which solves this problem. And today we have with us Andrew Connolly, project maintainer of NATS. Andrew, first of all, it’s great to have you on the show.

Andrew Connolly: Thanks for having me. Excited to be here.

Swapnil Bhartiya: It’s my pleasure. Of course, I was trying to build the foundation of the project, but since you’re here, so talk to me and explain to our audience what is NATS all about, especially in this agentic AI era.

Andrew Connolly: Yeah, of course. So NATS has been around since 2010, so way before anyone was talking about AI. But NATS It came to be because the NATS founder and creator, Derek Collison, was looking for better messaging technology. He was working on Cloud Foundry at the time, like a platform as a solution, sort of from a bygone era, and he wanted better messaging between the components of the platform. That led him to build NATS, and NATS has grown from there, but today it does messaging, data streaming with persistence, Key-value store on top of that persistence. And so we think of it as this Swiss Army knife of messaging patterns and ways to move data around.

Swapnil Bhartiya: Perfect. Now it has also graduated. Now when it comes to CNCF graduation, it is not same graduation because some of these projects, not some of these projects, almost all actually, even when the project moves to sandbox, it’s already been used in production by some company. They want to move into CNCF, so sandbox is the first stepping stone. So these projects are already mature, they’re already being used in production, but talk about What takes for a project to hit the graduation? What milestone it has to pass?

Andrew Connolly: We think of the graduation as really a formal stamp of approval for a lot of work and investment over the last decade plus. Thousands of end users running NATS in production, a vibrant community of contributors. I think over 6,000 folks have contributed to NATS over the years. And there are some formal checkboxes around project governance, security audits, that we’ve passed in recent years to be ready for graduation.

Swapnil Bhartiya: As I was trying to explain at the very beginning, NATS brings messaging and streaming together, you know, in one system. How does it do that with a light footstep, and how does that simplify a distributed application architecture?

Andrew Connolly: Yeah, it’s a great question. So we sometimes joke that NATS is like if Kafka and Redis had a baby, because we have the, like, the fire-and-forget sort of simple messaging. We call that NATS Core. On top of that, we have NATS JetStream, which adds persistence. So you can publish a message and some other application or service can come back and get it later, which is more of a Kafka analog. And on top of that persistence layer, we built our own KV cache, which is sort of the Redis analog. So we pack all of that into a single 20-megabyte binary, no external dependencies, and so it runs anywhere. You can run a NATS server on a Raspberry Pi, on your laptop there, or on a beefy, you know, supercluster in the cloud. And so that flexibility of running anywhere, all these patterns in one little piece of software, makes it really popular.

Swapnil Bhartiya: As you were mentioning that, you know, it predates all this AI, GenAI stuff, but now when we look at agents, they need to find each other, right? Exchange messages and share state. How is NATS used, you know, kind of as the real-time data layer for agents? And which part of NATS do these workloads depend on?

Andrew Connolly: Great question. We’ve been really fortunate at NATS because this AI wave of agents and all the things you just kind of outlined as requirements are things that NATS already does really well because we were sort of created to solve microservices challenges. AI agents have a lot of the same challenges. Location-independent discovery, request/reply patterns, one-to-many patterns, they’re all already right there in NATS and have been for a long time. So agentic use cases are a great fit for us. At Synadia, we’re also building commercial products on top of NATS to go even a level deeper in terms of some of these agent nuances, like for example, agents sharing state via a scratchpad. So we’re working on some of these things that are kind of a layer above the infrastructure. But whether it’s pure open source NATs or an application on top, it’s super well positioned for the agentic era.

Swapnil Bhartiya: Let’s talk about edge use case or let’s edge environment. You know, they have unreliable links, of course, you know, strict network limits. How do teams run NATs at the edge and how do Leaf nodes connect those sites back to the major massive cloud clusters.

Andrew Connolly: This is one of my favorite NATS superpowers. So this concept of leaf nodes, you have a big supercluster running in the cloud, that’s your backend, if you will. And then you have a fleet of something, it could be cars, scooters, EV chargers, point-of-sale machines, out beyond data center walls. And you want those things to be a part of your NAT system. You wanna move data around easily and freely. And the leaf node is what makes that happen. So, you know, you’ve got the big cluster in the cloud and then these individual NAT servers run as leaf nodes and talk back up to the cloud. It could be, you know, 50 if you were running them in a warehouse or it could be 50,000 if you were running it as, you know, leaf nodes on scooters, for example. And the leaf nodes are really special because they will function as a local message broker on that thing, that device or that warehouse or wherever it is. And so if they’re disconnected from the cloud, they can still keep operating in a local context and then they will gracefully sync or move data back up to the cloud as necessary when the connection comes back. So that’s something that we, I think, has happened very organically that NATS has become really popular in these edge use cases. Even the industrial manufacturing use cases, for example, it’s not always something we talk about at CNCF or in a cloud-native context, but IT/OT convergence, this idea of like kind of legacy operational technology on plant floors needs to talk to the IT technology in the cloud. It turns out NATS is a really great fit for those use cases as well.

Swapnil Bhartiya: Since we’re talking about use cases, let’s look at some other industries. Retail, Financial, of course, telecom, they run NATS. Talk a bit about what do they need from a messaging system and how NATS meets those needs?

Andrew Connolly: Yeah, it’s been really exciting to learn all the different places and use cases and industries NATS is used. I think what makes it unique is NATS has been built on these really simple primitives. Pub/sub, request/reply, one-to-many communication, really like elegant building blocks. And it’s made it such that developers in any industry can pick it up and apply it to their specific domain. So like just this week, Lovable, the vibe coding startup out of Europe, published a great piece about how they’re using NATS to power their real-time frontend. And they, I think they cut like data transfers by 97% just by using NATS as a part of their real-time system. NATS is also used in NVIDIA’s DSX reference architecture for like designing AI factories. It turns out sort of like that OT/IT convergence story, NATS is really great getting telemetry, getting data off of devices that are out in the field. And all these new data centers that are being built out, There’s so many telemetry needs. The entire thing is throwing off data. And so NATS is a great fit there. On like e-commerce and payments, NATS is also a really nice fit, typically because they want low latency and they want many patterns, many messaging patterns in one application or one piece of software. So instead of having to grab Redis for one thing and Kafka for one thing and RabbitMQ for one thing. They can do all those things with NATS.

Swapnil Bhartiya: As the projects grow, new workloads have arrived. Can you also talk about the governance? Of course, Linux Foundation has a very, you know, all the infrastructure is there, but how your governance has also evolved because the irony is that with NATS, so many different diverse use cases come in, you may not even have— so how do you also ensure to accommodate those? And also, I think the best way to use an open source project is to get involved with it. So how do you also create that path for them so they can easily also start? Because sometimes you get a say in the project, you know, instead of you’re using it, project has no clue what you’re doing. So talk about that aspect.

Andrew Connolly: Yeah, it’s a good question. So there’s a big NATS ecosystem. The core of the ecosystem is the NATS server. And the NATS server is the thing that we are the most protective of, if you will, because the server has to be resilient, reliable, scalable, and it has to be kind of that bedrocker foundation for every NATS user. Mm-hmm. So when it comes to that, the team is very careful about adding features and adding scope. We talk about kind of rather than adding more surface area, we want to really like polish and refine and harden the surface area that’s already there. But then around the server, there’s a huge ecosystem of clients and tools where community involvement is much more kind of just like, I don’t wanna say free-for-all, but it’s much more open, right? People spin things up and down as they need. Some are more domain-specific, but that’s where the real kind of flourishing happens. And then in terms of how to get involved, we just overhauled our website, nats.io. So you can go check that out and sort of learn more about the project. But all the links about how to contribute, how to find the, you know, where we are on GitHub, our public Slack community is a great place to visit. They’re all linked on nats.io.

Swapnil Bhartiya: Of course, it’s an open source project. People can go get involved, but Could you just share the roadmap that you have or what are the things in the pipeline?

Andrew Connolly: Sure. So in terms of the future of the project, we are, the top focus remains reliability, performance, stability, ensuring that the software is secure. It’s actually something that’s come up very recently. You know, in 2026, I would say many open source projects are dealing with an increase in vulnerability reports and findings. because of AI agents. So that’s an area the team has focused a lot this year, is making sure that the server is secure, you know, our software supply chain is secure. So that’s a huge focus. And beyond that, it’s making sure that we’re ready for the agentic future. We think we’re already in a great spot, so we don’t have a ton to do there. But if there are ways we can make NATS a better fit for where AI is going, we’re definitely going to consider those.

Swapnil Bhartiya: Andrew, thank you so much for joining us. And of course, congratulations on the graduation, and thanks for sharing all those use cases and how it is like working across the industry. Once again, thanks for your time and I’d love to chat with you again. Thank you.

Andrew Connolly: Thank you, Swapnil.

Swapnil Bhartiya: Perfect.

Andrew Connolly: Appreciate it.

How to Get ROI From AI for Lean IT Teams | Romanus Prabhu Raymond, ManageEngine | TFiR

Previous article