NATS Messaging

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 2606:a000:aec5:ed00:1182:a65c:874d:7aae (talk) at 12:56, 4 October 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

NATS[1]
Developer(s)Apcera
Stable release
0.9.4 / August 2016; 7 years ago (2016-08)
Written inGo
Operating systemCross-platform
TypeMessage broker, Open Source Messaging, message-oriented middleware
LicenseMIT
Websitewww.nats.io

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]

Apcera 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 MIT 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.

Example

Below you can see a sample connection string from a telnet connection to the demo.nats.io site[3]

telnet demo.nats.io 4222

Trying 107.170.221.32...
Connected to demo.nats.io.
Escape character is '^]'.
INFO {"server_id":"1ec445b504f4edfb4cf7927c707dd717","version":"0.6.6","go":"go1.4.2","host":"0.0.0.0",
"port":4222,"auth_required":false,"ssl_required":false,"max_payload":1048576}

References

  1. ^ Repository Mirror at GitHub
  2. ^ http://nats.io/documentation/
  3. ^ "NATS Protocol". NATS Documentation. Retrieved 6 May 2016.

Further reading