Top Qs
Timeline
Chat
Perspective
NATS Messaging
Distributed messaging software From Wikipedia, the free encyclopedia
Remove ads
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]
Remove ads
NATS is an open source project under the stewardship of CNCF. 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:
- The NATS Server - The core Publish-Subscribe Server for NATS.
- Client libraries for a variety of programming languages.
- A connector framework - a pluggable Java based framework to connect NATS and other services. NATS is a CNCF project with Kubernetes and Prometheus integration.[4]
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, queues, 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.[5]
Remove ads
Example
Below is a sample connection string from a telnet connection to the demo.nats.io site:[6]
Trying 107.170.221.32...
Connected to demo.nats.io.
Escape character is '^]'.
INFO {"server_id":"NBQTR375TCWD25CA7L7IMNPFHKE6HO2LUPUMVTHDZ4EAMZW22VKRJZIU","server_name":"us-south-nats-demo","version":"2.11.2","proto":1,"git_commit":"55efd1d","go":"go1.24.2","host":"0.0.0.0","port":4222,"headers":true,"tls_available":true,"max_payload":1048576,"jetstream":true,"client_id":11140,"client_ip":"2605:a601:a0ea:9400:8d63:878c:f3c7:5f1d","nonce":"-POYlpCo67Il2tE","xkey":"XDBV256WPGRKANJATV6Y56FBBDFHY7UCEX7CXXUI47N7Y4SS2HJVPS2Q"}
Remove ads
References
See also
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads