title: Independent producers in Kafka using Spring Boot and load balancer
body: <p>I have installed Apache Kafka from Confluent (with rest-api and schema-registry). I implemented producer using spring-boot and spring-kafka (each event has uuid generated in database trigger). Now I would like to run it as multiple instances - but what is the proper way of omitting duplicates in kafka? If I have few instances of spring-boot behind of load balancer and each of it has event with the same generated uuid, how to send just one to kafka? I can generate uuid in spring but content of event still will be the same and there is no point to send it from every instance (database's trigger will send content to each producer anyway).</p>