Difference between revisions of "NATS Messaging"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
 
*  http://demo.nats.io:8222/connz?state=closed
 
*  http://demo.nats.io:8222/connz?state=closed
 
* http://demo.nats.io:8222/connz?limit=1&offset=1&subs=1
 
* http://demo.nats.io:8222/connz?limit=1&offset=1&subs=1
gateway
+
 
 +
Gateway
 
* curl http://127.0.0.1:8222/gatewayz
 
* curl http://127.0.0.1:8222/gatewayz
Leaf
+
 
 +
[[Leaf]]
 
*  http://demo.nats.io:8222/leafz?subs=1
 
*  http://demo.nats.io:8222/leafz?subs=1
Subscription
+
 
 +
[[Subscription]]
 
*  http://demo.nats.io:8222/subsz
 
*  http://demo.nats.io:8222/subsz
  

Revision as of 09:50, 22 February 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.

  • https://nats.io/
  • NATS Streaming adds persistence, message replay and durable subscriptions


Monitoring:

Gateway

Leaf

Subscription

Activities

Basic

  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

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

Advanced

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

Related

See also

Advertising: