Self-host NATS
v2.14.9Messaging system for cloud-native distributed systems
helm upgrade --install nats nats/nats- Stars
- 21 017
- Ports
- 4222 (Client connections), 6222 (Cluster route connections)
natsWhat is NATS?
NATS Server routes messages between publishers and subscribers using subjects as named channels. Designed for distributed systems across cloud, on-premise, edge, and IoT environments. The single binary supports clustering, JetStream persistence, leaf nodes for topology building, MQTT clients, and WebSockets through configuration. Official client libraries exist for Go, JavaScript/TypeScript, Python, Java, Rust, C#, and C, with additional community-maintained implementations.
NATS alternatives
nsqOpen-source self-hosted distributed messaging platform: push-based pub-sub over topics and channels, in-memory queues that spill to disk, plus the nsqadmin web UI.Comparensq with NATS
CentrifugoOpen-source, self-hosted real-time messaging server with PUB/SUB over WebSocket, SSE and gRPC, scaling via Redis, PostgreSQL or NATS, plus an embedded admin UI.CompareCentrifugo with NATS
activemqThe open-source, self-hosted Apache ActiveMQ message broker handles JMS, AMQP, MQTT, STOMP and REST traffic from Java, C, Python and .Net clients.Compareactivemq with NATS
RabbitMQOpen-source messaging and streaming broker for AMQP, MQTT, STOMP and streams, with a web UI and Prometheus metrics. Self-hosted via Docker or packages.CompareRabbitMQ with NATS
ejabberdejabberd is a self-hosted, open-source XMPP/MQTT/SIP server in Erlang, proven at massive scale with 2M+ concurrent users per node.Compareejabberd with NATS
TinodeA self-hosted, open-source instant messaging platform: Go server plus Android, iOS, web and command-line clients, group chat, WebRTC calls and chatbots.CompareTinode with NATS
ChattoChatto is an open-source, self-hosted team chat server: one compact binary, no separate database, with rooms, threads, attachments, search, calls and SSO.CompareChatto with NATS
etcdA self-hosted, open-source distributed key-value store using Raft consensus for critical data in clustered systems. CNCF graduated project.Compareetcd with NATS
Should you self-host NATS?
NATS scores 80/100 on selfhost.directory (how scoring works) and ranks #2 of 12 in Message Broker. It has 21 017 GitHub stars, +175 in the last 30 days.
It shipped 18 stable releases in the past year. The latest, v2.14.9, came out on 26 October 2026. New versions land roughly every 7 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Apache Kafka (82/100, 34 194 stars). It scores higher overall, so compare the two before you pick. See NATS vs Apache Kafka side by side.
Features
- Publish-subscribe messaging
NATS README
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.
FAQ
How does NATS work?
NATS connects applications and services through publishers, subscribers, subjects, and the NATS Server broker that routes messages.
More in Message Broker
nsqOpen-source self-hosted distributed messaging platform: push-based pub-sub over topics and channels, in-memory queues that spill to disk, plus the nsqadmin web UI.
RabbitMQOpen-source messaging and streaming broker for AMQP, MQTT, STOMP and streams, with a web UI and Prometheus metrics. Self-hosted via Docker or packages.
RedisRedis is a self-hosted, open-source in-memory data structure server used as a database, cache, message broker, and vector query engine with sub-millisecond latency.
ValkeySelf-hosted, open-source Valkey is an in-memory key-value database for caching, queues and primary data, with replication, Sentinel failover and cluster sharding.
activemqThe open-source, self-hosted Apache ActiveMQ message broker handles JMS, AMQP, MQTT, STOMP and REST traffic from Java, C, Python and .Net clients.
Apache KafkaApache Kafka is a self-hosted, open-source event streaming platform for high-performance data pipelines and mission-critical applications.
automqSelf-hosted, open-source Apache Kafka fork with stateless brokers that store logs on S3 or MinIO and rebalance partitions in seconds.
beanstalkdbeanstalkd is a self-hosted, open-source work queue: a small C daemon where producers put jobs into named tubes and workers reserve, bury or kick them over plain TCP.
BunkerMBunkerM is a self-hosted, open-source MQTT platform bundling Eclipse Mosquitto with a web dashboard, ACL management, message history, anomaly detection, and AI.
Eclipse MosquittoSelf-hosted open-source MQTT broker for MQTT 5.0, 3.1.1 and 3.1 with TLS, WebSockets, bridging, ACLs and a C client library plus CLI pub/sub tools.
forqForq is a self-hosted, open-source message queue on SQLite running as a single binary or Docker container with admin UI, metrics, DLQ, and SDKs.
gearmandGearman is a self-hosted, open-source job server for parallel processing, load balancing, and cross-language function calls.

0 comments