Spring Batch - Apache Kafka (KafkaItemWriter)

Опубликовано: 30 Сентябрь 2024
на канале: Bayonne Sensei
4,664
82

Github: https://github.com/PascoalBayonne/Bat...

In this tutorial we have explored the ability to write messages (items) into Kafka from a Spring Batch Application. Using a KafkaTemplate object, items are written to the default topic through the KafkaTemplate#sendDefault(Object, Object) method using a Converter to map the key from the item. A delete flag can also be configured to send delete events to the topic.
#springbatch
#spring
#batch
#springbatchintegration