nats-server README

The project's README from github.com/nats-io/nats-server. As one markdown file: README.md.

NATS Logo

NATS is a simple, secure and performant communications system for digital systems, services and devices. NATS is part of the Cloud Native Computing Foundation (CNCF). NATS has over 40 client language implementations, and its server can run on-premise, in the cloud, at the edge, and even on a Raspberry Pi. NATS can secure and simplify design and operation of modern distributed systems.

License Build Release Slack Coverage Docker Downloads GitHub Downloads CII Best Practices Artifact Hub

Documentation

Contact

Contributing

If you are interested in contributing to NATS, read about our...

Roadmap

The NATS product roadmap can be found here.

Adopters

Who uses NATS? See our list of users on https://nats.io.

Security

Security Audit

A third party security audit was performed by Trail of Bits following engagement by the Open Source Technology Improvement Fund (OSTIF). You can see the full report from April 2025 here.

Reporting Security Vulnerabilities

If you've found a vulnerability or a potential vulnerability in the NATS server, please let us know at nats-security.

License

Unless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

nats-server (nats-io/nats-server)

Searching Database…

这是什么?这是 NATS 服务器——NATS.io 的高性能核心。NATS.io 是一套消息系统,用来连接各种数字系统、服务和设备,是 CNCF 的项目。
这是服务器本身,还是我的应用里也要装点东西?这个仓库只是服务器本身。你的应用作为客户端连接到它,使用 40 多种针对不同语言提供的客户端实现之一。
我怎么把服务器跑起来?README 里没有写安装步骤,而是指向官方文档。官方发布了预编译的发布版二进制文件和 Docker 镜像,所以流程是:下载一个,启动服务器,再让客户端连上去。
运行之前还需要装别的东西吗?不需要——它是一个自包含的 Go 服务器,外部依赖列表是空的。应用程序只需要所用语言的 NATS 客户端库。
大家一般用它连接什么样的系统?凡是大量服务或设备需要互相传消息的场景都适用:云上的微服务、本地部署的集群,还有边缘或物联网设备群——仓库的标签里甚至专门提到了网联汽车。
它真能跑在树莓派这么小的设备上吗?能——它可以在本地部署、云端、边缘环境运行,甚至能跑在树莓派上,因此很适合资源受限的边缘设备。
我能用在商业产品里吗,还是许可证有限制?Apache 2.0——宽松的许可证,对商业使用没有任何限制,你可以放心把它嵌入专有产品。
NATS.io 和这个仓库是同一个东西吗?NATS 是整套消息系统;这个仓库只包含它高性能的服务器部分。客户端库、文档和工具都在 nats.io 生态的各个独立仓库里。
这是个活跃项目,还是已经被抛弃了?非常活跃:代码库从 2012 年就开始了,大约有 21,000 颗星,CI 每晚都会跑构建。它有 CNCF 支持,有公开的路线图,还有一份生产环境用户名单。
代码做过安全审计吗?做过——Trail of Bits 在 2025 年 4 月通过 OSTIF 安排完成了一次第三方安全审计,完整报告的链接就在 README 里。
普通的 MQTT 客户端能连上它吗?能——仓库的 CI 里包含一个专门的 MQTT 兼容性工作流(mqtt-test.yaml),所以服务器的 MQTT 支持和它的原生协议一样持续接受测试。
What are similar projects?rocketmq, WasmEdge, nsq, dapr, awesome-microservices, emqx, encore, k3s
Creator
nats-io
Size
62.8 MB
Stars
20.9K
Age
13y
Commits · 90 Days