Add kafka4-migration module: Spring Kafka 3.3 to 4.1 migration on Boot 3.5 to 4.1

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gth99spB1CzQmBFofXmU4Z
This commit is contained in:
2026-09-28 09:19:55 +00:00
co-authored by Claude Sonnet 5
parent d56c60824e
commit c1b40b0db9
23 changed files with 308 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# kafka4-migration: Spring Kafka 3 to 4 on Spring Boot 3.5 to 4.1
Companion code for the ankurm.com post "Spring Kafka 3 to 4 Migration Guide".
| Folder | What it is |
|---|---|
| `legacy/` | Producer, `@KafkaListener` and an `@EmbeddedKafka` test on Boot 3.5.16 / Spring Kafka 3.3.16 / kafka-clients 3.9.2 (JDK 21), using the Jackson 2 `JsonSerializer` |
| `migrated/` | The same app on Boot 4.1.1 / Spring Kafka 4.1.1 / kafka-clients 4.2.1 (JDK 25), using `spring-boot-starter-kafka` and `JacksonJsonSerializer` |
| `scripts/run-all.sh` | Builds the intermediate stages from `legacy/` and regenerates every file in `output/` |
| `output/` | Transcripts for each stage |
Spring Kafka 4.1.1 is the latest GA; 4.2.0-M1 and 4.2.0-M2 are milestones and are not tested here.
No external broker is needed: the tests use `@EmbeddedKafka`. Tested on 28 September 2026.