-
Question about NATSNoRespondersException behaviour. We are considering using NATS and JetStream for inter component communication. I had assumed that if I write a message to a stream, it will get saved on the stream for consumer to pick up later (like Kafka). Instead I am getting an exception. What I am concerned about is the use-case where all of my consumers are stopped / fall over. I would not like to lose messages because the consumer can't produce any more. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@Walluce No Responders means the server cannot find any stream with the subject you are publishing to. What is your stream configuration and what subject are you publishing to? |
Beta Was this translation helpful? Give feedback.
-
I see the problem. The Here is the documentation for subjects https://docs.nats.io/nats-concepts/subjects#subject-hierarchies |
Beta Was this translation helpful? Give feedback.
-
Thank you, that solved my problems. |
Beta Was this translation helpful? Give feedback.
I see the problem. The
*
, only represents one segment. Sousers.*
only allows forusers.a
notusers.a.b
If you specify
users.>
as your stream subject, you will be fine. You could I think specifyusers.*.*
Here is the documentation for subjects https://docs.nats.io/nats-concepts/subjects#subject-hierarchies