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
0
votes
1 answer

How to connect between one service sidecar in Istio with NATS cluster

I was created a NATS cluster without inject to Istio. apiVersion: nats.io/v1alpha2 kind: NatsCluster metadata: name: nats spec: size: 2 pod: annotations: sidecar.istio.io/inject: "false" version: "2.0.0" Now i has one sidecar istio,…
nhu son
  • 1
  • 1
  • 3
0
votes
4 answers

"Unable to start NATS Server in Go Routine" while testing

I'm trying to separate tests to use different NATS servers. (I'm not yet sure it is NATS, but my tests influence each other.) Doing that works fine when running a single test or testing a single package. Running go test ./... on all my packages (as…
TehSphinX
  • 6,536
  • 1
  • 24
  • 34
0
votes
1 answer

Is it possible to use SQL Server as DB Store for NATS streaming server?

I plan to create a nats streaming server and use SQL Server as DB store. is that possible? I am not sure what to put on the DB store config
0
votes
1 answer

ZMQ bidirectional publisher-subscriber

I read this: http://api.zeromq.org/4-3:zmq-socket and, from my understanding, neither type of sockets comes anywhere close to requirements, which, I thought were simple... Essentially, I want ZMQ to work exactly the same way NATS works (I just don't…
wvxvw
  • 8,089
  • 10
  • 32
  • 61
0
votes
1 answer

C client disconnects automatically just after connection

I am running a nats server in cluster mode with ths following config: port: 4222 net: '0.0.0.0' cluster { listen: 0.0.0.0:6222 routes: ["nats://0.0.0.0:6222"] } # NATS Streaming specific configuration streaming { id: test_cluster store:…
user3612009
  • 655
  • 1
  • 6
  • 18
0
votes
1 answer

NATS streaming server auto ack with Publish/Subscribe

I accidentally noticed when I restart my NATS subscriber daemon, that all messages processed again, despite of fact they have been processed without errors. publish.go: err := s.conn.Publish(subject, data) subscriber.go durable :=…
James May
  • 1,371
  • 3
  • 20
  • 37
0
votes
1 answer

jnats 2.4.2 hangs on shutdown

When runnung a Java NATS client like the one below with jnats 2.4.1, everything is fine. When updating to jnats 2.4.2, the shutdown takes approx. one minute after printing "finished": import io.nats.client.Connection; import…
Georg
  • 966
  • 8
  • 25
0
votes
1 answer

Using nats with angular to discuss with Hemerajs microservices server

I need a piece of advice. Indeed I am writing an Hemerajs (Hemerajs) server application couple with a NATS (NATS) messaging server. Moreover I'd like to plug an Angular 6+ front application on this server through the NATS pub/sub system. However I…
Cyril Z.
  • 89
  • 1
  • 4
  • 14
0
votes
1 answer

PHP NATS sending result out of the function

I am having some trouble regarding PHP NATS. I am getting and printing msg body values. Everything is working fine. Just returning result is the problem. Here is the code function connect(){ require_once __DIR__ . "/../../vendor/autoload.php"; …
h_h
  • 1,201
  • 4
  • 28
  • 47
0
votes
1 answer

How to subscribe the big size file? - NATS Streaming subscribe problem

I am new NATS. I just tried to send and receive a text file using NATS-streaming-server examples. When I send a text file(~9B), it works -Pub onnecting to cluster 'test-cluster' as client 'cs-publisher'. Publishing 1 messages on subject foo Url:…
de dedede
  • 1
  • 2
0
votes
2 answers

Nats.io: Will the subscribers with the different subjects but the same named queue process messages in parallel?

Let`s imagine we have server A with publisher and servers B and C with consumers. Also we have got 5 different subjects; foo1, foo2,... foo5. We always want to send a message only to one consumer and receive only one response. So we utilize the…
0
votes
1 answer

NATS-Streaming-Server <1ms latency

Is it possible to setup a nats-streaming-server cluster with a put-get latency < 1ms? I created a 3 node cluster (all residing on the same server), using file storage. eg, # NATS specific configuration port: 4222 cluster { listen: 127.0.0.1:6222 …
jho
  • 1,684
  • 1
  • 16
  • 17
0
votes
1 answer

What if NATS message payload contains \n\r?

I am trying to write a client library for NATS.io. According to the protocol here, \n\r is used to delimiting commands, payload, etc. INFO…
Ravi Teja Gudapati
  • 2,809
  • 2
  • 13
  • 16
0
votes
1 answer

Whenever DisconnectedEventHandler is triggered, the args.Conn.ConnectedUrl is Empty in NATS.IO C# API

I am building a messaging application using NATS C# API. I have set all event handlers, but I have a problem in DisconnectedEventHandler. In the Github page, they have shown how to handle the event. I did exactly the same but whenever…
DrXSsive
  • 133
  • 1
  • 14
0
votes
0 answers

Hi I have tried to connect nats from Ionic on a click of submit button but it is not getting connected

I have a piece of Nats code which i can run in terminal following by node command but the same can i run in ionic2? I need to run that nats code in IONIC2 after the click of button Nats code: submitBtn() { var natnc =…
Bharat
  • 63
  • 1
  • 1
  • 4
1 2 3
18
19