Difference between revisions of "NATS Messaging"
Jump to navigation
Jump to search
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[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>. | + | [[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 | * 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 | ||
+ | [[nats context ls]] | ||
Monitoring: | Monitoring: | ||
Line 12: | Line 16: | ||
* 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 | ||
* 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 | ||
Line 22: | Line 29: | ||
=== Basic === | === Basic === | ||
# Learn about [[wikipedia:Message-oriented_middleware]] and different software implementations such us: [[ActiveMQ]], [[RedHat AMQ]] or [[Apache Kafka]] | # 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 using docker]]: https://hub.docker.com/_/nats |
## Install NATS in macOS: <code>[[brew install nats-server]]</code> | ## Install NATS in macOS: <code>[[brew install nats-server]]</code> | ||
## Install NATS streaming server in macOS: <code>brew install [[nats-streaming-server]]</code> | ## Install NATS streaming server in macOS: <code>brew install [[nats-streaming-server]]</code> | ||
Line 33: | Line 40: | ||
# Read NATS source code: https://github.com/nats-io/nats-server | # Read NATS source code: https://github.com/nats-io/nats-server | ||
− | == Related | + | == Related == |
* [[Prometheus]] NATS exporter | * [[Prometheus]] NATS exporter | ||
+ | * [[Synadia]] | ||
+ | * [[8443]] | ||
+ | * [[4222]] | ||
+ | * [[get_last_msg]] | ||
== See also == | == See also == | ||
+ | * {{nats-server}} | ||
+ | * {{nats}} | ||
+ | * {{NATS}} | ||
* {{MQ}} | * {{MQ}} | ||
− | |||
− | |||
[[Category:Computing]] | [[Category:Computing]] | ||
[[Category:MQ]] | [[Category:MQ]] |
Latest revision as of 15:19, 23 October 2024
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
- Docker: https://hub.docker.com/_/nats
- GitHub: https://github.com/nats-io
- https://github.com/nats-io/nats-server/releases
nats context ls
Monitoring:
curl http://127.0.0.1:8222/routez
curl http://127.0.0.1:8222/varz
curl http://127.0.0.1:8222/connz
- 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
Activities[edit]
Basic[edit]
- 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:
brew install nats-server
- Install NATS streaming server in macOS:
brew install nats-streaming-server
- Install NATS in macOS:
- NATS: Send your first message
Medium[edit]
- Learn how to monitor your NATS: https://nats-io.github.io/docs/faq#how-can-i-monitor-my-nats-cluster
Advanced[edit]
- Read NATS source code: https://github.com/nats-io/nats-server
Related[edit]
- Prometheus NATS exporter
- Synadia
- 8443
- 4222
- get_last_msg
See also[edit]
nats-server, nats-server.conf, nats-server --help
nats [ pub | subscribe | server | stream | reply | account | events | errors | consumer | --version | --help ]
- NATS Messaging, installation, Install NATS using docker,
nats server check, nats-server.conf, nats.ws,
4222, Synadia, Synadia Cloud, NATS JetStream, Terraform provider, Leaf Nodes - MQ, PubSub, AMQP, NATS, Apache Kafka, IBM MQ, ActiveMQ, Fuse Message Broker, MQTT, NSQ, RabbitMQ, AWS Kinesis and NATS Messaging, ZeroMQ, Message-oriented middleware (MOM), Apache Pulsar, HiveMQ
Advertising: