NATS Messaging
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]
Developer(s) | Synadia Communications, Inc. |
---|---|
Initial release | 2011 [1] |
Stable release | 2.1.7
/ 14 May 2020 |
Repository | https://github.com/nats-io/nats-server.git |
Written in | Go |
Operating system | Cross-platform |
Type | Message broker, Open Source Messaging, message-oriented middleware |
License | Apache 2.0 |
Website | www |
Developer(s) | Synadia Communications, Inc. |
---|---|
Stable release | |
Repository | https://github.com/nats-io/nats-streaming-server.git |
Written in | Go |
Operating system | Cross-platform |
Type | Message broker, Open Source Messaging, message-oriented middleware |
License | Apache 2.0 |
Website | nats |
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:
- The NATS Server - The core Publish-Subscribe Server for NATS.
- NATS Streaming - A data streaming system powered by NATS that adds persistence, message replay, durable subscriptions, etc. to 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 (software) integration.[3]
Microservices frameworks such as Micro, Mainflux, and Hemera rely on NATS as their messaging backbone.
Example
Below is a sample connection string from a telnet connection to the demo.nats.io site:[4]
telnet demo.nats.io 4222
Trying 107.170.221.32...
Connected to demo.nats.io.
Escape character is '^]'.
INFO {"server_id":"NDP7NP2P2KADDDUUBUDG6VSSWKCW4IC5BQHAYVMLVAJEGZITE5XP7O5J","version":"2.0.0","proto":1,"go":"go1.11.10","host":"0.0.0.0",
"port":4222,"max_payload":1048576,"client_id":13249}
References
- https://github.com/nats-io/nats.rb/releases/tag/v0.3.12
- "NATS Documentation".
- "What's New in NATS 2.0".
- "NATS Protocol". NATS Documentation. Retrieved 6 May 2016.
See also
- Prometheus nats exporter
Further reading
- Aslam, Asim. "Micro on NATS - Microservices with Messaging". Micro Blog. Retrieved 6 May 2016.
- Werthheim, Daniel (2016-04-27). "NATS - What a beautiful protocol". Retrieved 4 May 2016.
- Riggins, Jennifer (2015-12-15). "How NATS, a REST Alternative, Provides Messaging for Distributed Systems". TheNewStack. TheNewStack. Retrieved 6 May 2016.
- Monteiro, Diogo. "Using NATS instead of HTTP for inter service communication". Diogo GMT. Retrieved 2 May 2016.
- Sohlich, Radomir. "NATS to REST Proxy". NATS Blog. Retrieved 1 May 2016.
- Gracely, Brian; Delp, Aaron. "NATS - Cloud Native Infrastructure". The CloudCast. Retrieved 23 December 2015.
- "A signaling system for 10M+ concurrent connections". Greta.io. Greta. 2016-03-21. Retrieved 6 May 2016.
- Treat, Tyler. "Benchmarking Message Queue Latency". Brave New Geek.
- Fulton III, Scott (2016-07-18). "NATS Moves to Real-time Message Streaming with Persistence". The New Stack. Retrieved 19 July 2016.