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
0 answers

Rails async execution of events like NATS or Kafka or AMQP without separate process

I'm trying to integrate NATS into a Rails server in order to process jobs. Since there isn't a good NATS based job system I'm going to reuse a standard gem like Que. My process would be: nats message -> a Rails something doing pull_subscribe() and a…
MB.
  • 4,167
  • 8
  • 52
  • 79
1
vote
1 answer

How to pass a config file in the args in kubernetes deployment

I am trying to deploy nats in k8s cluster. I need to override default server config. Tried creating a configmap with --from-file and attached it to deployment, but it gives me the following error nats-server: read /etc/nats-server-conf/server.conf:…
Shreyas Chorge
  • 127
  • 1
  • 6
1
vote
0 answers

Unsubscribe from nats streaming through an API

I am making APIs to subscribe and unsubscribe from nats streaming server (stan). The subscribe works fine, but I am not able to unsubscribe. Connecting to nats streaming, const stanSubscribe = nats.connect('test-cluster',…
1
vote
2 answers

AttributeError: module 'nats' has no attribute 'connect'

https://nats-io.github.io/nats.py/modules.html Traceback (most recent call last): File "c:\Users\lb\nats.py", line 22, in asyncio.run(main()) File "D:\anaconda\lib\asyncio\runners.py", line 44, in run return…
1
vote
1 answer

NATS JetStream is Timing out when calling stream_info(STREAM_NAME)

raise errors.TimeoutError nats.errors.TimeoutError: nats: timeout if self.nc.is_connected: log.info(f"NATS client successfully connected to {SERVERS}") # Create jetstream context and check if stream exists self.nc…
1
vote
1 answer

JetStream: How to make Push Subscription with Durable consumer? (i get "No interest")

I try to make Durable and Delivery consumer, but i get "No Interest" as result. It is "Active" When i create PushSubscribeOptions like this: PushSubscribeOptions pso = PushSubscribeOptions.Builder() .WithDurable(options?.DurableName) …
Admiral Land
  • 2,304
  • 7
  • 43
  • 81
1
vote
1 answer

Can NATS JetStream partially replicate streams on different NATS Servers

I have Server A with NATS Jet Stream.I want some part of NATS Streams replicated on Server B and Server C (NATS Streams) mutually exclusive.
1
vote
0 answers

Getting error when setting up NATS Account resolver --> nats-server: operators do not allow Accounts to be configured directly

Hi I am trying to set the NATS account resolver according to these instructions: https://artifacthub.io/packages/helm/nats/nats Here is my config: nats: jetstream: enabled: true cluster: enabled: true name: "nats" replicas: 3 auth: enabled:…
CodeSlave
  • 457
  • 6
  • 17
1
vote
0 answers

NATS server is giving EAI_AGAIN error in Node.js app

I'm trying to run microservices locally (single-node machine). And I'm getting this strange error: Error: getaddrinfo EAI_AGAIN nats-service at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) { errno: -3001, code: 'EAI_AGAIN', …
msrumon
  • 1,250
  • 1
  • 10
  • 27
1
vote
3 answers

Skaffold is not fully running all the services

I'm developing this dummy project and trying to make it work locally via Skaffold. There are 3 services in my project (running on ports 3001, 3002 and 3003 respectively), wired via NATS server. The problem is: I get different kinds of errors each…
msrumon
  • 1,250
  • 1
  • 10
  • 27
1
vote
2 answers

NATS Stream creation fail

When I try to create a stream on the local NATS server get the error. The connection established successfully but on jsm.addStream(conf) request broke. I'm using maven artifact: io.nats
Pavel
  • 2,005
  • 5
  • 36
  • 68
1
vote
0 answers

How to renew a singleton closed Stan (nats streaming) connection in .NET Core?

I have an application and I create and add the Stan connection with this extension method into ServiceProvider. public static IServiceCollection AddStanClient(this IServiceCollection services, StanSettings settings) { var stanOptions =…
Navid_pdp11
  • 3,487
  • 3
  • 37
  • 65
1
vote
0 answers

Not able to send video frames over Flask web app while working on NATS subscriber

I am trying to serve frames generated through my webcam to a web app using NATS pub-sub. I am able to retrieve frames which I can confirm while putting a print "data" in the callback function(yield statement is commented). But when I'm running it…
1
vote
1 answer

It's possible to setup NATS protocol on heroku?

I've seen a lot of documentation and tutorials how to setup HTTPS and Websockets on heroku, but it's possible to setup another protocol like TLS or NATS? If it's possible how can I do that?
Mirusky
  • 372
  • 3
  • 16
1
vote
1 answer

Running Multiple Microservices with multiple docker compose with NATS

I am new to microservices and I have a project to setup multiple microservies, The project is setup like this. Every nest js application has API Application exposed to a port database docker-compose file responsible which creates the containers for…