Idempotence of Kafka consumers provided by at-least-once message delivery semantics with database in a Spring Boot project on Cloud Kubernetes
Antonio De Fazio
Software Architect | Tech Leader | Senior Java Developer | Java Instructor | Spring Boot Teacher | DevOps Trainer | Docker | Kubernetes | JEE | Backend | Docente | Programmatore | Full-stack Developer
Last night I spent an hour taking my code of a Spring Boot project from a couple of years ago and writing an article on how to create an idempotent consumer in Apache Kafka using a database. Article detailed in https://github.com/antoniodefazio/kafkatips/blob/master/README.md
Full code example at:
you can clone it and enjoy launching it locally.
This is entirely the result of my knowledge as at the time there was no ChatpGpt and there was little about it on Google, in fact I hope that ChatGpt doesn't give the correct solution to the use case in question in 5 seconds, otherwise we'll all go home ….