JetStream stops publishing #533
Unanswered
CodeTherapist
asked this question in
Q&A
Replies: 2 comments 4 replies
-
you can increase RequestTimeout in the connection options. I think by default it's 2 seconds. |
Beta Was this translation helpful? Give feedback.
4 replies
-
reading your message again, yes that will help. I have seen reports from others with similar errors and we might have a head of line blocking issue when publishers and consumers are on the same connection. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've developed a compact wrapper library that enhances the functionality of your NATS library. This addition is designed to streamline certain elements within our project's scope, such as the serialization and deserialization, as well as topic subscriptions. All these operations are performed via JetStream.
However, I've encountered an issue where, after a specific duration, the following log messages appear (Publishing):
Subsequent to this, an exception is raised:
This entire sequence of events recurs once the exception is dismissed.
From my perspective, it appears that the private Inbox subscription has disappeared?
I've also examined the NATS Server logs, but haven't found anything unusual (no error).
The entire application operates as a single process, with publishing and receiving activities handled within a hosted BackgroundService. Moreover, the application maintains a single instance of both
NatsConnection
andNatsJSContext
(registred as Singleton).Adjusting the
RetryAttempts
andRetryWaitBetweenAttempts
parameters withinNatsJSPubOpts
for publishing only served to delay the occurrence of the issue.Environment Info:
nats-server: 2.10.11 (Single Instance (no cluster), running as Docker Container)
NATS.NET: 2.2.3
Is it necessary to utilize two distinct
NatsConnection
objects due to the shared underlying TCP Socket for both publishing and receiving operations?Any insights for debugging would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions