Welcome to my sample Spring Boot Kafka project. This project contains various producer and subscriber scenarios, detailed below.
Kafka publish and consume string values.
Kafka publish and consume JSON values. Standard configuration.
Kafka publish and consume JSON values. Objects are versioned, that is, the Producer sends V1 and V2, and a single Consumer can handle both versions.
Kafka publish and consume JSON values. Objects are versioned, that is, the Producer sends V1 and V2, and a single
Consumer can handle both versions. However, the following property spring.json.add.type.headers=false
is configured,
which disables the Producer from sending the TYPE_ID of the serialized object. The consumer does not know how to deserialize the value.