NATS stopped to handle new messages after many NATS.Client.NATSSlowConsumerException #533
-
NATS.Client.NATSSlowConsumerException at STAN.Client.Connection.PublishAsync We are using STAN.Client and there we are using PublishAsync, Ack methods. I think in this case when there are too many NATS client messages it just should not consume new messages and consume them only when his Ack() and PublishAsync() are flushed. Because otherwise it leads to something like deadlock. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@esolCrusador Are you working on a new project? If so you should definitely move to JetStream. There is a feature called flow control that will recognize when you are taking too long to handle messages and stop pushing them to you until the flow control message is acknowledged by the client, which requires you processing all the messages before the flow control. Moving this to the discussion area instead if issues. |
Beta Was this translation helpful? Give feedback.
@esolCrusador Are you working on a new project? If so you should definitely move to JetStream. There is a feature called flow control that will recognize when you are taking too long to handle messages and stop pushing them to you until the flow control message is acknowledged by the client, which requires you processing all the messages before the flow control.
If you are on STAN and staying I'm not sure how to help you, STAN is not being supported anymore.
Moving this to the discussion area instead if issues.