Skip to content

Phased backoff for non-blocking retries #2484

Answered by jgslima
jgslima asked this question in Ideas
Discussion options

You must be logged in to vote

Another possibility would be for the spring-kafka to have an option to have a single retry topic, for the maxInterval when using exponential backoff.

For instance, for exponential with initialInterval=1000, multiplier=2, maxInterval=8000, and maxAttempts=a large number, you would have retry topics like these:

xxx-retry-1000
xxx-retry-2000
xxx-retry-4000
xxx-retry-8000-0
xxx-retry-8000-1
xxx-retry-8000-2
xxx-retry-8000-3
...
xxx-retry-8000-n

but for 8000-0 and above, it might actually be just one:

xxx-retry-1000
xxx-retry-2000
xxx-retry-4000
xxx-retry-8000

this would make it easier to adopt exponential when retrying for a long time.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@artembilan
Comment options

@garyrussell
Comment options

@tomazfernandes
Comment options

@jgslima
Comment options

@jgslima
Comment options

Answer selected by jgslima
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants