Difference between revisions of "NATS Messaging"

From wikieduonline
Jump to navigation Jump to search
(Created page with "NATS is an open-source software messaging system written in Go programming language with DevOps...")
 
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[wikipedia:NATS Messaging|NATS]] is an open-source software [[messaging system]] written in [[Programming Fundamentals/Introduction/Go|Go]] programming language with [[DevOps/Kubernetes|Kubernetes]] and [[Prometheus monitoring|Prometheus]] integration. NATs sever listen on TCP port 4222.
+
[[wikipedia:NATS Messaging|NATS]] ([[2011]]) is an open-source software [[messaging system]] written in [[Programming Fundamentals/Introduction/Go|Go]] programming language with [[Kubernetes]] and [[Prometheus]] integration. NATs sever listen on [[TCP]] port [[4222]] and monitor port on [[8222]] <code>curl http://127.0.0.1:8222/routez</code>.
 +
* https://nats.io/
 +
* NATS Streaming adds persistence, message replay and durable subscriptions
 +
* Docker: https://hub.docker.com/_/nats
 +
* GitHub: https://github.com/nats-io
 +
* https://github.com/nats-io/nats-server/releases
 +
 
 +
Monitoring:
 +
* <code>curl http://127.0.0.1:8222/routez</code>
 +
** http://demo.nats.io:8222/routez?subs=1
 +
* <code>curl http://127.0.0.1:8222/varz</code>
 +
* <code>curl http://127.0.0.1:8222/connz</code>
 +
* http://demo.nats.io:8222/connz?limit=16&offset=128
 +
*  http://demo.nats.io:8222/connz?state=closed
 +
* http://demo.nats.io:8222/connz?limit=1&offset=1&subs=1
 +
 
 +
Gateway
 +
* curl http://127.0.0.1:8222/gatewayz
 +
 
 +
[[Leaf]]
 +
*  http://demo.nats.io:8222/leafz?subs=1
 +
 
 +
[[Subscription]]
 +
*  http://demo.nats.io:8222/subsz
  
 
== Activities ==
 
== Activities ==
# Learn about [[w:Message-oriented_middleware]] and different software implementations such us: [[ActiveMQ]], [[RedHat AMQ]] or [[Apache Kafka]]
+
=== Basic ===
# Install NATS using docker: https://hub.docker.com/_/nats
+
# Learn about [[wikipedia:Message-oriented_middleware]] and different software implementations such us: [[ActiveMQ]], [[RedHat AMQ]] or [[Apache Kafka]]
 +
# [[Install NATS using docker]]: https://hub.docker.com/_/nats
 +
## Install NATS in macOS: <code>[[brew install nats-server]]</code>
 +
## Install NATS streaming server in macOS: <code>brew install [[nats-streaming-server]]</code>
 +
# [[NATS: Send your first message]]
 +
 
 +
=== Medium ===
 +
# Learn how to [[Monitoring|monitor]] your NATS: https://nats-io.github.io/docs/faq#how-can-i-monitor-my-nats-cluster
 +
 
 +
=== Advanced ===
 
# Read NATS source code: https://github.com/nats-io/nats-server
 
# Read NATS source code: https://github.com/nats-io/nats-server
# Learn how to [[Monitoring|monitor]] your NATS: https://nats-io.github.io/docs/faq#how-can-i-monitor-my-nats-cluster
+
 
 +
== Related ==
 +
* [[Prometheus]] NATS exporter
 +
* [[Synadia]]
 +
* [[8443]]
 +
* [[4222]]
 +
 
 +
== See also ==
 +
* {{nats-server}}
 +
* {{nats}}
 +
* {{NATS}}
 +
* {{MQ}}
  
 
[[Category:Computing]]
 
[[Category:Computing]]
 +
[[Category:MQ]]

Latest revision as of 15:46, 22 May 2023

NATS (2011) is an open-source software messaging system written in Go programming language with Kubernetes and Prometheus integration. NATs sever listen on TCP port 4222 and monitor port on 8222 curl http://127.0.0.1:8222/routez.

Monitoring:

Gateway

Leaf

Subscription

Activities[edit]

Basic[edit]

  1. Learn about wikipedia:Message-oriented_middleware and different software implementations such us: ActiveMQ, RedHat AMQ or Apache Kafka
  2. Install NATS using docker: https://hub.docker.com/_/nats
    1. Install NATS in macOS: brew install nats-server
    2. Install NATS streaming server in macOS: brew install nats-streaming-server
  3. NATS: Send your first message

Medium[edit]

  1. Learn how to monitor your NATS: https://nats-io.github.io/docs/faq#how-can-i-monitor-my-nats-cluster

Advanced[edit]

  1. Read NATS source code: https://github.com/nats-io/nats-server

Related[edit]

See also[edit]

Advertising: