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

Can i implement custom authorization in NATS.io?

How can i implement custom authorization in NATS.io, not through NATS accounts? For example, on a new NATS connection, it contacts a server connected to it, which is marked as an authorization handler. Or implement authorization on another server…
2
votes
5 answers

NATS.IO NATSNoRespondersException

I'm new to NATS and I have taken over an almost finshed application in NetCore 5.0. When I'm startning the application a Connection is set to an docker NATS server and this properties are set in appsettings. "NatsSettings": { "Url":…
Jono
  • 71
  • 2
  • 8
2
votes
2 answers

make a request to a nats group

here is my sub.go example: package main import ( "fmt" nats "github.com/nats-io/nats.go" ) type Message struct { Status string `json:"Status"` Msg string `json:"Msg"` } type Response struct { Status string `json:"Status"` …
Bussiere
  • 500
  • 13
  • 60
  • 119
2
votes
1 answer

Nodejs Express API with NATS?

I am trying to build a REST API for my frontend app using nodejs + express + nats. I have a nats-server running in my terminal. This is my test code: var express = require("express"); var app = express(); const NATS = require('nats'); const nc =…
pycxu
  • 21
  • 3
2
votes
2 answers

How do I subscribe to a NATS subject in Python and keep receiving messages?

I tried out the example below (from this page): nc = NATS() await nc.connect(servers=["nats://demo.nats.io:4222"]) future = asyncio.Future() async def cb(msg): nonlocal future future.set_result(msg) await nc.subscribe("updates", cb=cb) await…
Bill
  • 518
  • 5
  • 10
2
votes
1 answer

How to connect nats streaming cluster

I am new to kubernetes and trying to setup nats streaming cluster. I am using following manifest file. But I am confused with how can I access nats streaming server in my application. I am using azure kubernetes service. --- apiVersion: v1 kind:…
Thecoder
  • 51
  • 2
  • 6
2
votes
1 answer

How to use NATS Streaming Server with Apache flink?

I want to use NATs streaming server to streaming data and using Flink want to process on data. how I can use apache flink to process real-time streaming data with NATS streaming server?
2
votes
0 answers

Does NATS' ordering guarantee cover publishing to multiple subjects?

https://nats.io/documentation/faq/#ordering NATS implements source ordered delivery per publisher. Does NATS guarantee message ordering in the following case of a login service subscribing subjects from a users service, where all messaging runs on…
Georg
  • 966
  • 8
  • 25
2
votes
1 answer

Nats.io queue, synchronous behavior

According to https://nats.io/documentation/concepts/nats-queueing/ Synchronous queue subscribers must build in logic to process the message. Does it mean that if there are 10 messages in the queue, only one subscriber gets the 1st message, and after…
Jo Huang
  • 35
  • 3
2
votes
2 answers

NATS Client in GoLang wont subscribe

I have a very generic connection scrip to connect a nats server and just blindly print the message to the command line. package main import ( "github.com/nats-io/go-nats" "fmt" ) func main(){ servers := "nats://URL:30401,…
blonc
  • 193
  • 2
  • 14
2
votes
1 answer

Understanding NATS clustering

Section NATS Server Clustering states that: Note that NATS clustered servers have a forwarding limit of one hop. This means that each gnatsd instance will only forward messages that it has received from a client to the immediately adjacent…
anhldbk
  • 4,559
  • 5
  • 29
  • 37
2
votes
2 answers

Can a NATS publisher send a single message into multiple queues?

I'm building a system where two different entities need to process messages from the same source (in different ways - for example one will log all messages while another entity might want to aggregate data). Ideally each entity is fully scalable…
Guss
  • 30,470
  • 17
  • 104
  • 128
2
votes
1 answer

NATS creating duplicate inboxes for reply

I have been playing with NATS messaging, using the C# client. I create a message publisher that sends synchronous requests: IConnection connection = new ConnectionFactory().CreateConnection(); Msg rsp = connection.Request("subject",…
user2729292
2
votes
1 answer

GO lang NATS Queueing with multiple Queue Subscribe

I am creating NATS go lang Queue Subscriber client as follows, nc.QueueSubscribe("foo", "my_queue", func(msg *nats.Msg) { log.Printf("Message :%s", string(msg.Data)) }) So whenever i publish any message to "foo" subject then some time it is…
Sandeep
  • 766
  • 5
  • 16
1
vote
1 answer

nats message queue - ack a message from jetstream consumer in a separate request

Is it possible to manually acknowledge delivered message stream sequence in a separate request (independent on the request receiving the message) to the nats server? Usually you would receive messages from a consumer, process them and ack them in a…
user2694295
  • 366
  • 6
  • 16