Questions tagged [nats-streaming-server]

NATS Streaming Server is a persistent messaging system running on top of the NATS messaging system written in the Go language. NATS is an open source messaging system (sometimes called message-oriented middleware). The NATS server is written in the Go programming language. Apcera develops and provides support for NATS.

NATS Streaming Server (now JetStream) is a persistent messaging system running on top of the NATS messaging system written in the Go language.

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.

Apcera develops and provides support for NATS.

91 questions
1
vote
1 answer

NatsError: Could not connect to server: Error: connect ECONNREFUSED Error

I created a NATS Streaming Server on my Kubernetes cluster. And "Kubectl get services" output like that: NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE api-gateway-srv NodePort 10.106.100.181
akasaa
  • 1,282
  • 4
  • 13
  • 33
1
vote
1 answer

How many channels I can have with NATS Streaming server?

I'm looking for a streaming server and the docs on NATS Streaming don't make it clear what scaling strategy will be possible with it in my case. I assume we'll be using FT mode since we need to ensure best message durability, but that means the…
alexykot
  • 699
  • 1
  • 8
  • 21
1
vote
1 answer

What message persistence guarantee NATS streaming provides in cluster and FT modes?

I'm looking for a streaming server with the message persistence guarantee, i.e. where the messages published by producers are guaranteed to be durably stored before the server acknowledges publishing to the producer. My use case requires that we…
alexykot
  • 699
  • 1
  • 8
  • 21
1
vote
1 answer

How to enable --rs which is disabled by default

How to enable --rs which is disabled by default in typescript, I need to put this command in the start script
1
vote
1 answer

Messages order for 2 different subscriptions

I have following (simplified) setup Consumer (single threaded, streamingConnection is singleton) val streamingConnection by instance() streamingConnection.subscribe(Topics.OUTPUT_ORDER, OrderHandler()) …
abi
  • 99
  • 8
1
vote
1 answer

How to connect NATS server to NodeJS app in Docker

I have a node app which connects to NATS server. Below is my docker-compose.yml for both the servers. version: "3" services: app: image: node:12.13.1 volumes: - ./:/app working_dir: /app …
Nätu
  • 304
  • 5
  • 16
1
vote
1 answer

How to get size of NATS Streaming Queue?

Background: I'm going to be doing some experiments with OpenFaaS (running in Kubernetes) where I will be invoking several asynchronous execution requests. OpenFaaS uses NATS Streaming to queue these requests for asynchronous function execution.…
kd2amc
  • 39
  • 8
1
vote
1 answer

NATS Streaming Server being shutdown while using cluster

I have Nats Streaming server running on 3 VMs and they are clustered following the official NATS docs tutorial. Every time there is as change on the files one instance gets shutdown then all the others shut down a few moments later. Tried changing…
Thiago Casa Nova
  • 208
  • 1
  • 4
  • 14
1
vote
0 answers

Low-latency distributed log

Is there existing software for a production-ready low-latency distributed log? The idea is to store input messages to services before they are sent to the service itself. When the service starts up, it takes the most recent snapshot of its state and…
1
vote
2 answers

send a message larger than 1MB using nats-streaming?

I am trying to send a file using the nats messaging service. The size of the files may vary. Is there a way to send more than 1MB of data in a message body, or possible break and join the message body?
MrSir
  • 43
  • 1
  • 2
  • 7
1
vote
1 answer

Nats streaming redelivery problems with c# stan.client

I am using nats streaming server and stan.client as client library. My subscriber can do long work. Sometimes they are greater than default ack wait time (30sec). So I try to manually ack my message, doing like this: StanSubscriptionOptions sOpts =…
Lorenzo Isidori
  • 1,809
  • 2
  • 20
  • 31
1
vote
1 answer

How to limit raft.log size in nats streaming server?

I set up nats streaming server in cluster mode (according to instructions found here) and I noticed raft.log is growing really fast when I benchmark it with a load around 200msg/s where message size is ~1MB. I use default channel…
Jakub Bibro
  • 1,570
  • 13
  • 17
1
vote
1 answer

java-nats-streaming: Publishing Messages after Server Reconnects

I have a NATS streaming cluster with 3 nodes set up. It seems that NATS messages published by my java application during server downtime is lost (i.e. not republished again when my servers are back up and running). A more detailed description: NATS…
artze
  • 511
  • 1
  • 4
  • 18
1
vote
1 answer

NATS publish/subscribe acknowledgements

I have been doing some POCs with NATS and NATS streaming servers for past few days. I started with NATS-streaming server by writing a Java client for the same and publishing/subscribing messages to/from NATS-streaming server, clustered along with…
Addle Pate
  • 41
  • 1
  • 3
1
vote
1 answer

NATS IO Performance tuning

I have written publisher, Subscriber in Java. Did clustering as well at server level. Able to publish and subscribe messages of 30 KB with the rate of 500 TPS (transaction per second). But I want to improve our performance up to more than 2000…