nats-io / nats-architecture-and-design

Architecture and Design Docs
Apache License 2.0
187 stars 20 forks source link

Support Consumer Retry Backoff and Nak delays #89

Open ripienaar opened 2 years ago

ripienaar commented 2 years ago

Overview

Consumers now have a list of go nanos that sets a retry schedule and the Nak has an optional struct that can set a per message arbitrary delay.

At present setting a 10 item backoff list requires the consumer is configured for at least 11 tries, which may or may not be desirable behavior - PR comments suggested not.

https://github.com/nats-io/nats-server/pull/2812

Clients and Tools

Other Tasks

Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.

aricart commented 2 years ago

JavaScript client will adopt the nak(delay) option, and at a later time introduce the backoff list

aricart commented 2 years ago

JavaScript client now supports backoff