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

NATS with moleculer. How can I change NATS max_payload value?

My problem is that I need to increase max_payload value that NATS receive but I have no idea where I can do it. The project is using Moleculer and NATS is created as a container with docker. When I try to make a request which is bigger than 1MB…
3
votes
0 answers

How nats.io resolve domains when discovers routes?

If I specify route for nats.io like nats-route://ruser:T0pS3cr3t@nats.cluster1:622 nats.cluster1 - is domain in aws Route53 managed by aws/ecs/service_discovery. It may have random number of A records. Will nats.io resolve nats.cluster1 to get a…
Max Fry
  • 409
  • 3
  • 8
3
votes
1 answer

Nats Subscriber continuously listening to publisher

I'm trying to get a NATS subscriber to continuously listen to published messages. My Publisher is an API endpoint which can be hit in a browser. My Subscriber is a python app which should run forever, listening for published messages. My problem is…
user4292309
3
votes
1 answer

Dynamic user management in NATS

I think about creating a new solution based on NATS and so far only have two open questions left. In my scenario I need clients to authenticate with the server and of the possible mechanisms user+pass, token and JWT I would like to go for tokens or…
Marged
  • 10,577
  • 10
  • 57
  • 99
3
votes
1 answer

Debugging NATS messages from Kubernetes event

I have a simple script which watches Kubernetes events and then publishes a message to a NATS server: #!/usr/bin/env python import asyncio import argparse import json import logging import os from kubernetes import client, config, watch from…
jaxxstorm
  • 12,422
  • 5
  • 57
  • 67
3
votes
1 answer

NATS - just one subscriber to take action for published event in a microservicearchitecture

I'm new to NATS and have read all the examples for: https://nats.io/documentation/concepts/nats-messaging/ I'm in Microservciearchitecture where in microservice-Y (MSY) need to store some information published from other microservice-X (MSX) I have…
user3154653
  • 203
  • 1
  • 11
3
votes
3 answers

PHP NATS Client disconnects after some idle time

I have been using this library repejota/phpnats for developing a NATS Client that can subscribe to a particular channel. But after connecting, receiving few messages and having some 30 secs idle time, it gets disconnect itself without any…
h_h
  • 1,201
  • 4
  • 28
  • 47
3
votes
1 answer

Does NATS scale horizontally ( throughput )

We are using NATS and use clustering of 3+ nodes. We have several producers and many consumers. The message sizes are small ( ~100bytes ) however our throughput is somewhat high. ~40k/sec. All traffic is on 2x10gbps bonded internal networks. I was…
Quinton Pike
  • 3,823
  • 8
  • 31
  • 37
3
votes
1 answer

communication between processes: tcp vs unix sockets, ipc vs nats

I'm breaking a big application into several processes and I want each process to communicate with each other. for now it's gonna be on the same server, but later several servers on same local network will have several processes that will need to…
ufk
  • 30,912
  • 70
  • 235
  • 386
2
votes
0 answers

NATS streaming server breaks when subscribing a listener in Node JS

I'm trying to subscribe a listener to NATS streaming server to communicate two NodeJS pods in Kubernetes, but NATS prompts the following error: [be-contact-form] /usr/src/app/node_modules/nats/lib/nats.js:1672 [be-contact-form] …
Manel
  • 71
  • 5
2
votes
0 answers

Python - Fastapi nats client timeout issue

I have a fastapi application running as a microservice which is using the python nats client to publish messages. But every time I do a nats request this way, I'm getting request timeout, but this after 3-4 retries all messages go out at the same…
2
votes
1 answer

NATS Core + Nats C Client message loss

I suffer message loss with NATS publish (Core, not Jetstream yet). Using NATS CLI on Windows to subscribe as sub ">" Using NATS server on Linux Ubuntu on local LAN. Application on Windows using NATS C Client (latest GitHub version). The following…
Morph
  • 144
  • 4
2
votes
1 answer

RAII when using ascyc c library

I have an RAII wrapper around the cnats library. We don't need to understand the details of cnats. There are just two important piecies. cnats is the C client for communicating with a NATS message broker. As is usually the case, they have custom…
John Sallay
  • 241
  • 3
  • 8
2
votes
0 answers

Can NATS client connect to NATS server via a public proxy server?

I want to use NATS to allow communication between a client and a server, but I want to use a public proxy server for the connection. However, it seems that the NATS API does not provide an option to configure proxy information. Is there any solution…
marslin
  • 21
  • 1
2
votes
0 answers

Pull last batch of messages from a nats jetstream

I want to write a java client consumer, such that it need to pull a set of messages from a jetStream. Here I want to either pull all of the messages or pull the last messages(batch size can be specified). Is there anyway to implement without using…
1 2
3
18 19