nats-io / stan.js

Node.js client for NATS Streaming
Apache License 2.0
293 stars 49 forks source link

NATS Redelivering Limit #180

Closed michielswaanen closed 4 years ago

michielswaanen commented 4 years ago

Hey,

Does the node-nats-streaming library support setting a redelivering limit? Can't seem to find anything about this.

aricart commented 4 years ago

@michielswaanen

nats-streaming clients don't support such a feature that I am aware of - @kozlovic can confirm.

It doesn't make a sense for a persistent system to have such a limit, as the intention is to process all messages if the message has some data that prevents its processing, the application likely should implement some sort of dead letter queue where the message is sent to another channel for additional processing or inspection, this, of course, means that the forwarding client has to ack the message.

michielswaanen commented 4 years ago

Ok thanks! A dead letter queue sounds good, I'm kinda new to event based stuff. Does node-nats-streaming support dead letter queue functionality out of the box @aricart ?