I am the author of th is article.Thank you for reading and important the insight and I second your opinion about DLQ flooding. We have the following strategy configured in our consumers to avoid DLQ flooding
ExponentialBackOffWithMaxRetries backOff = new ExponentialBackOffWithMaxRetries(3);
ExponentialBackOffWithMaxRetries backOff = new ExponentialBackOffWithMaxRetries(3);
backOff.setInitialInterval(2000L); // 2 seconds initial delay
backOff.setMultiplier(2.0); // Exponential backoff
backOff.setMaxInterval(30000L); // Max delay 30 seconds
backOff.setMaxAttempts(3); // Retry 3 times before DLQ
Updated this in my blog.
reply