You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Spring Retry removal documentation to what's new
Documents the breaking change from removing Spring Retry dependency
in favor of Spring Framework 7's core retry support in the whats-new doc.
Covers the main changes including `BackOffValuesGenerator` updates, new `BackOff` annotation,
`RetryingDeserializer` API changes, and `ExceptionMatcher` replacement for `BinaryExceptionClassifier`.
Includes migration examples and guidance for updating `RetryableTopic`
configurations from `Backoff` to `BackOff` annotation.
Signed-off-by: Soby Chacko <[email protected]>
Copy file name to clipboardExpand all lines: spring-kafka-docs/src/main/antora/modules/ROOT/pages/whats-new.adoc
+60Lines changed: 60 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,3 +121,63 @@ The framework automatically detects and prefers Jackson 3 when both versions are
121
121
They will be removed in a future major version.
122
122
123
123
See xref:kafka/serdes.adoc[Serialization, Deserialization, and Message Conversion] for configuration examples.
124
+
125
+
[[x40-spring-retry-replacement]]
126
+
=== Spring Retry Dependency Removal
127
+
128
+
Spring for Apache Kafka has removed its dependency on Spring Retry in favor of the core retry support introduced in Spring Framework 7.
129
+
This is a breaking change that affects retry configuration and APIs throughout the framework.
130
+
131
+
`BackOffValuesGenerator` that generates the required `BackOff` values upfront, now works directly with Spring Framework's `BackOff` interface instead of `BackOffPolicy`.
132
+
These values are then managed by the listener infrastructure and Spring Retry is no longer involved.
133
+
134
+
From a configuration standpoint, Spring Kafka relied heavily on Spring Retry's `@Backoff` annotation.
135
+
As there is no equivalent in Spring Framework, the annotation has been moved to Spring Kafka as `@BackOff` with the following improvements:
136
+
137
+
* Harmonized naming: Uses `@BackOff` instead of `@Backoff` for consistency
138
+
* Expression evaluation: All string attributes support SpEL expressions and property placeholders
0 commit comments