NATS Messaging

From Wikipedia, the free encyclopedia
Developer(s)Synadia Communications, Inc.
Initial release2011 [1]
Stable release
2.9.15 / 2 March 2023; 12 days ago (2023-03-02)
Written inGo
Operating systemCross-platform
TypeMessage broker, Open Source Messaging, message-oriented middleware
LicenseApache 2.0

NATS is an open-source messaging system (sometimes called message-oriented middleware). The NATS server is written in the Go programming language. Client libraries to interface with the server are available for dozens of major programming languages. The core design principles of NATS are performance, scalability, and ease of use.[2] The acronym NATS stands for Neural Autonomic Transport System.[3]


Synadia develops and provides support for NATS. NATS was originally developed by Derek Collison as the messaging control plane for Cloud Foundry and was written in Ruby. NATS was later ported to Go.

The source code is released under the Apache 2.0 License. NATS consists of:

Microservices frameworks such as Micro, Mainflux, and Hemera rely on NATS as their messaging backbone.

The NATS server is often referred to as either 'Core NATS' or NATS with 'JetStream'. 'Core NATS' is the set of core NATS functionalities and qualities of service. 'JetStream' is the (optionally enabled) built-in persistence layer that adds streaming, at-least-once and exactly-once delivery guarantees, historical data replay, decoupled flow-control and key/value store functionalities to Core NATS.[3] JetStream replaced the old STAN (NATS Streaming) approach.[6]


Below is a sample connection string from a telnet connection to the site:[7]

Connected to
Escape character is '^]'.
INFO {"server_id":"ND4YAVHXJENKAXJ62AOFUZKDTMLRQGNXY2MPU575VNCTLEL7YGUKX2WH","server_name":"us-central-nats-demo","version":"2.9.2","proto":1,"git_commit":"517d9b3","go":"go1.19.1","host":"","port":4222,"headers":true,"auth_required":true,"tls_available":true,"max_payload":1048576,"jetstream":true,"client_id":49812,"client_ip":"2603:8080:1e40:11f7:4c06:4bd7:7014:f658","nonce":"FBSAzfiqaFt-DpA"}


  1. ^ "Release v0.3.12 · nats-io/Nats.rb". GitHub.
  2. ^ "NATS Documentation".
  3. ^ a b "NATS FAQ".
  4. ^ "NATS By Example".
  5. ^ "What's New in NATS 2.2".
  6. ^ "NATS JetStream".
  7. ^ "NATS Protocol". NATS Documentation. Retrieved 6 May 2016.

See also[edit]

Further reading[edit]