Skip to content

Commit

Permalink
improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ErwanVP committed Dec 26, 2024
1 parent c03532c commit 6ced331
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ By default, failed events consumptions will be retried 3 times (each attempt is
This can be globally configured through the following properties:
* `ConsumerMaxRetries` (int)
* `DurationBeforeRetry` (duration)
* `ExponentialBackoff` (boolean)

These properties can also be configured on a per-topic basis by setting the `ConsumerMaxRetries`, `DurationBeforeRetry` and `ExponentialBackoff` properties on the handler.

Expand All @@ -131,11 +130,11 @@ return kafka.ErrNonRetriable
```

#### exponential backoff
The exponential backoff algorithm is define like this. You can activate it but setting `ExponentialBackoff` config variable as true. This configuration is useful in case of infinite retry configuration
You can activate it but setting `ExponentialBackoff` config variable as true. You can set this properties as global, you have to use the configuration per-topic. This configuration is useful in case of infinite retry configuration.
The exponential backoff algorithm is define like this.

$`retryDuration = durationBeforeRetry * 2^{retries}`$


### Deadletter And Retry topics

By default, events that have exceeded the maximum number of blocking retries will be pushed to a retry topic or dead letter topic.
Expand Down

0 comments on commit 6ced331

Please sign in to comment.