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

Nestsjs not sending response to NATS server

Hi guys I'm trying to set a Request/response responder(MessagePattern) on a Microservice with NATS in transport layer. I have a natscli subscribing to the server, and from another natscli I'm sending a request, which autogenerates the reply…
methodkek
  • 41
  • 1
4
votes
2 answers

How to expose a NATS server externally

I have deployed NATS (https://nats.io/) into my Kubernetes cluster which is running on AWS and I am trying to expose this service externally. These are the current details of my nats service. NAME TYPE CLUSTER-IP EXTERNAL-IP nats …
4
votes
0 answers

How to mock NATS microservices?

I want to test microservices. Microservices communicate via NATS. I see several test levels for it: Unit testing - one container format; Integration testing - several container formats; e2e via GUI. I can't find a solution for the first test level.…
Jon Jonsen
  • 41
  • 2
4
votes
2 answers

Golang Nats subscribe issue

I work currently on a micro service architecture. Before I insert NATS into my project I wanted to test some simple scenarios with it. In one scenario I have a simple publisher, which publishes 100.000 messages in a for loop over a basic Nats server…
3
votes
0 answers

Designing stream and subject names in NATS

I have several exchange connectors that subscribe to 3rd party websocket streams and I then use Durable JetStream to publish that information and consumers are processing that data elsewhere. The question is how do I name/design stream and subject?…
nop
  • 4,711
  • 6
  • 32
  • 93
3
votes
3 answers

How to install NATS CLI Tool in windows 10

I have up and running NATS server with docker in my windows machine. I want to install the nats CLI Tool as well in my windows machine. In the documentation it is only mentioned about Mac and…
3
votes
1 answer

NATS JetStream subscription in ASP.Net Core

I am subscribing to a NATS Jetstream channel and process the messages received from NATS Server. I can do it in a console app by connecting to NATS Server and subscribing to a subject. Now I am trying to configure the subscription in ASP.Net core…
3
votes
1 answer

Confused between Socket.IO and Nats.io Which to use in production?

Hope all are fine, I have some confusion regarding Socket.IO and Nats.IO currently i have a mobile application which is using Socket.Io to broadcast crypto price data every 500 milliseconds to each active client. Currently application have 25k…
user12575366
  • 303
  • 1
  • 2
  • 8
3
votes
0 answers

How do you properly handle exceptions for asynchronous code in Python for NATS?

main.py import asyncio import signal from nats.aio.client import Client as NATS from client.nats_client import NATSClient from factory.logger import LoggerFactory from helpers.environment import get_log_level log =…
Justin Reddick
  • 441
  • 1
  • 5
  • 20
3
votes
0 answers

Is It Possible To Use Nats JetStream with EncodedConn?

I'm working on convert Nats core to Nats jetstream on a go project. I'm using nats.go and as I notice EncodedConn request is used everywhere in transporter files. But EncodedConn doesn't support Jetstream "noticed during debugging". I had to use…
Nermin Kaya
  • 41
  • 1
  • 7
3
votes
2 answers

Remove of specific subject from JetStream or how many number of subjects will be created

Is it possible to remove a subject from JetStream once the messages are subscribed. For example if my stream is configured with subject orders.* and I have created one consumer with orders.new, is it possible to remove orders.new from stream. Also…
user3212324
  • 163
  • 1
  • 6
  • 23
3
votes
1 answer

Unexpected replies using nats jetstream

I am using Nats JetStream to implement request-reply functionality. It all works fine, except for the minor detail that I get a very strange reply back. The data in the reply message is not at all what I was sending from the replying end. This can…
popstr
  • 1,000
  • 9
  • 17
3
votes
1 answer

Kubernetes Deployment config for connecting to NATS event bus

I used Nats Streaming before for my microservices based on Docker and Kubernetes and node.js but because Nats Streaming is currently being deprecated I want to migrate to NATS and NATS JetStream. This is the deployment yaml config file that I used…
Aspian
  • 1,865
  • 3
  • 24
  • 31
3
votes
1 answer

python nats connection error when running from a class

I am trying to run an application that waits for a specific nats message before continuing. So I made the following class that sends messages and also listens to messages: #!/usr/bin/python3 from nats.aio.client import Client as NATS import…
leonardo
  • 125
  • 10
3
votes
2 answers

nats: no response from stream

have error with nats-server -js when i want publish msg with golang in nats-server -js, i have error like this: nats: no response from stream i want publish video to nats-server -js this is my pub file: nc, _ :=…
mahdi gadget
  • 83
  • 1
  • 6
1
2
3
18 19