Questions tagged [nats.io]

NATS is a simple, secure, and highly performant open source messaging system for cloud native applications with clients for Go, Python, Ruby, Node, Deno, Java, C#, C, and more.

NATS is a simple, secure, and highly performant open source messaging system for cloud native applications with clients for Go, Python, Ruby, Node, Deno, Java, C#, C, and more.

Links

281 questions
2
votes
0 answers

NATS on K8s expose

I am new to NATS and kubernetics technologies. I watched the full "TechWorld with Nana" kubernetics tutorial on YouTube and was able to create the configurations from the video. I have created a NATS service on a minicube from HELM repository as…
Hristo.L
  • 55
  • 1
  • 10
2
votes
1 answer

Enabling account deletion on nats server

I was trying to prune some users from my nats server by doing: nsc push --system-account SYS -u nats://localhost:4222 -P but I got the following error: server nats-comm-2 responded with error: delete accounts request by SOME_KEY_VALUE failed -…
Woody1193
  • 7,252
  • 5
  • 40
  • 90
2
votes
2 answers

nats-sub not found after nats-box fresh install

I'm trying to setup a basic NATS service on my kubernetes cluster, according to their documentation, here. I executed the following code: $ helm install test-nats nats/nats NAME: test-nats LAST DEPLOYED: Thu Jul 14 13:18:09 2022 NAMESPACE:…
Woody1193
  • 7,252
  • 5
  • 40
  • 90
2
votes
1 answer

How to invoke NATS cli from a docker container running in detached mode

I am new to NATS and decided to start playing with it using docker. After pulling the official NATS image from docker hub (https://hub.docker.com/_/nats) I ran it as a container in detached mode using the following command: docker container run…
2
votes
0 answers

nats helm charts: Dynamic creation of persistent storage not working

When spinning up a cluster using Nats helm charts, I get the following errors at different levels P.S. - I put alot of info below, so TLDR: "Warning FailedScheduling 99s (x4 over 4m4s) default-scheduler 0/1 nodes are available: 1 pod has unbound…
ASG4
  • 169
  • 2
  • 9
2
votes
1 answer

How to do request-reply on a JetStream stream?

I made a Go example for JetStream Walkthrough - NATS Docs at https://github.com/hnakamur/nats-stream-example/tree/2c834d7d967f024348fbaa478eae18e9749431ba. As a next step of my experiments, I tried to make a Go example for Request-Reply Walkthrough…
hnakamur
  • 521
  • 4
  • 17
2
votes
1 answer

Nats/Jetstream: naming conventions for commands' subjects

I have been working with Nats/Jestream for a bit now and within a CQRS/Event sourcing project. Recently, it occurred to me that I have not been following any naming conventions for subjects' names that are used for commands (events are pretty much…
panza
  • 1,341
  • 7
  • 38
  • 68
2
votes
3 answers

Is there a way to view NATS messages?

I am trying to look at the messages in a NATS cluster on a certain topic. My google searches led to https://github.com/KualiCo/nats-streaming-console and https://hub.docker.com/r/fjudith/nats-streaming-console but neither npm install nor yarn…
suramana
  • 43
  • 1
  • 5
2
votes
1 answer

How do I add permissions to a NATS User to allow the User to query & create Jestream keyvalue stores?

I have a User that needs to be able to query and create Jetstream keyvalue stores. I attempted to add pub/sub access to $JS.API.STREAM.INFO.* in order to give the User the ability to query and create keyvalue stores: 96f4d12cdd02:~# nsc edit user…
D. Reagan
  • 841
  • 1
  • 8
  • 24
2
votes
2 answers

Listener for NATS JetStream

Can some one help how to configure NATS jet stream subscription in spring boot asynchronously example: looking for an equivalent annotation like @kafkalistener for Nats jetstream I am able to pull the messages using endpoint but however when tried…
user3212324
  • 163
  • 1
  • 6
  • 23
2
votes
2 answers

NATS JetStream: Is it possible to explicitly ask from JetStream to (re)send the last few messages it received in subject foo.*?

Essentially what the subject says. I'm wondering if JetStream can be queried in a way that allows us to refetch either the last 15 messages of subject "foo.*" or the messages that JetStream received on subject "foo.*" in the last 1.5 seconds. If…
XDS
  • 3,786
  • 2
  • 36
  • 56
2
votes
0 answers

NullPointerException occured when trying to subscribe to nats.io topic

I'm evaluating whether nats.io is an okay replacement for Firebase Cloud Messaging or not. This is my started code which uses nats-android library import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import…
anta40
  • 6,511
  • 7
  • 46
  • 73
2
votes
1 answer

How does NATS / JetStream "remember" subscribers?

I'm doing my first steps with NATS and see behavior I cannot make sense of, even after reading the docs quite carefully. I have a local NATS server (2.6.5) running. It was started with ./nats-server -js I generate some messages with the following…
Achim
  • 15,415
  • 15
  • 80
  • 144
2
votes
2 answers

How to expose nats(bitnami) using Ingress

I have an Nginx ingress controller in my Kubernetes cluster and I use bitnami/nats. The services produced are the following: NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE nats-client ClusterIP …
Giorgos Ntymenos
  • 361
  • 2
  • 13
2
votes
1 answer

NATS.IO Request Reply Subscription wildcard

In config file if we use specific subscription, it shows error. But if we use wildcard '>' then it is running with no issue. Config File with Desire Subscription for user vizzio and test : authorization: { users: [ { user: aquila, password:…
Reza
  • 21
  • 2