AckWait does not publish to dead letter queue with zero clients #4994
-
We're looking into using NATS JetStream to manage a large number of work queues, each with a durable consumer, polled from a client pool which scales to zero. The behavior explored in this issue confirms that intentionally, if There appears to be no way to configure JetStream to eagerly move messages from pending to the dead letter queue upon One concept we explored is sending dummy fetch requests to the pull consumer, to activate the message redirection to the dead letter queue. We did not find a way to trigger this manually, however. Would you have any suggestions for a work-around that allows for scale-to-zero client pools for pull consumers? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We do not have automated DLQs, as you noted by design since we truly separate consumers from stream semantics. Also note in your case you can run one large mux'd stream and have consumer pull only the subject they need, most likely bound to the type of event. For DLQ, you could term a message and have something that captures that advisory and moves the message to whichever stream you want. |
Beta Was this translation helpful? Give feedback.
We do not have automated DLQs, as you noted by design since we truly separate consumers from stream semantics.
Also note in your case you can run one large mux'd stream and have consumer pull only the subject they need, most likely bound to the type of event.
For DLQ, you could term a message and have something that captures that advisory and moves the message to whichever stream you want.