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

Hot to send message to all queue subscribers?

I have two microservices. First microservice it's front server, which requests for some work in one of second microservice instance. The great solution of NATS transports is queueing. I can send message and NATS will send it only to one of instance.…
Roman
  • 35
  • 7
0
votes
1 answer

Is it a bad practice to send messages larger than 1MB?

Is it a bad practice to send message larger than 1MB over NATS? For example a JSON response whose size is about 2MB. If it is a bad practice, would breaking the message down into smaller responses be a better approach, or does NATS support sending…
Arnold Zahrneinder
  • 4,788
  • 10
  • 40
  • 76
0
votes
1 answer

How to loop NATS messages received over channel

I have a code like that: package main import ( "fmt" "github.com/nats-io/nats.go" ) func main() { nc, _ := nats.Connect(nats.DefaultURL) for { nc.Subscribe("request", func(m *nats.Msg) { fmt.Printf("Received…
g14u
  • 248
  • 1
  • 2
  • 11
0
votes
1 answer

How to statically link to NATS C library using ExternalProject_Add

I am trying to include NATS C client as a dependency to my project. I prefer to link statically as my project is quite small and works as a standalone service, so shipping one single executable is more convenient. ExternalProject_Add seems the most…
xiao
  • 133
  • 1
  • 1
  • 9
0
votes
1 answer

NATS messaging : export issue

I am exploring NATS for my project and stuck while adding exports. Despite '--private' flag is specified, the export is seen to be public when I describe it. Here is a command I used to add export: nsc add export -a TestCustomerAccount -n…
0
votes
0 answers

How to use c method in c++ lambda

I used the c library(nats.c) in a c++ project,I have done the following work so far(part of the code): extern "C" { #include "nats/nats.h" } #include "iostream" class Connection { public: void Test() { …
candycat
  • 435
  • 4
  • 13
0
votes
0 answers

Is it recommended to connect directly to a NATS server from a native front-end client?

As per the docs, the NATS server design is a "server first" approach, regarding protecting against "lazy clients". Lazy clients are just booted under poor performance scenarios. Due to this, I have internalized an assumption that anything…
Hoby
  • 1
0
votes
2 answers

run moleculer microservice via nats message

I'm beginner at moleculer and microservices . I created an api gateway via nestjs framework and now I want to call microservice in moleculer via nats messaging from nestjs. so my question is : How can I call a service in molculer and what is message…
vatandoost
  • 2,799
  • 2
  • 12
  • 13
0
votes
1 answer

Is there a wireshark dissector for NATS protocol (https://nats.io/)

So far Wireshark only shows raw bytes in captured TCP payloads. I would like to see some structured NATS messages instead: CONNECT, SUBSCRIBE, PUBLISH, etc. Is there a Wireshark plugin for that? Or maybe another sniffer I could use?
ludenus
  • 1,161
  • 17
  • 30
0
votes
1 answer

Connection problem using Siddhi with NATS server

I would like to use Siddhi stream processor to read messages from a NATS server. I have installed the following software: NATS server v2.1.6 (on a standalone server) Siddhi siddhi-runner-5.1.2 (as a binary standalone on another server on the same…
kubusv
  • 1
  • 2
0
votes
1 answer

Nats request/reply in Java

I've previous Kafka knowledge and I've been playing around with Nats.io which seems a really solid choice for messaging. In particular, I'm interested in the well-documented Request/Reply mechanism but I've had difficulties correctly implementing it…
0
votes
1 answer

Combine multiple applications into single binary

Suppose I have four applications: http-gateway NATS Business Logic Client Business Logic Server Gateway <--> NATS <---> B.L. My project structure is as follows: nats-cluster\ cmd\ gateway\gatway.go blclient\blclient.go …
anisbhsl
  • 149
  • 1
  • 8
0
votes
1 answer

Is there a simple way of catching disconnect events to a NATS connection in C#

I have a C# application that connects to a NATS service to send and accept NATS messages. It is working well for some time. However I need to build in some logic that if the NATS service is stopped that I take action in letting the user know that…
LudwigW
  • 15
  • 3
0
votes
2 answers

How do I hot reload NATS streaming server without stopping the streaming server?

I am running the nats streaming server in a docker container and I want to reload the nats specific configuration without stopping the nats streaming server. Is there a way to do so?
Himanshu Sahu
  • 366
  • 3
  • 11
0
votes
1 answer

Getting the NATS streaming event sequence number in Siddhi

I have a stream of tweets in text format (TwitterStream) and a stream of sentiments for each tweet (SentimentStream). The SentimentStream subscribes to the TwitterStream, does a sentiment analysis and publishes a new message with the result and the…
phzietsman
  • 189
  • 2
  • 9