TimeoutException thrown when sending to topic
i have made sender class using kafkatemplate bean to send payload to topic with some configuration in SenderConfiguration class . Sender Class @Component public class Sender { private static final Logger LOGGER = (Logger) LoggerFactory.getLogger(Sender.class); @Autowired private KafkaTemplate<String, String> kafkaTemplate; public void send(String topic, String payload) { LOGGER.info("sending payload='{}' to topic='{}'", payload, topic); kafkaTemplate.send(topic, "1", payload); } } , senderConfiguration class @Configuration public class SenderConfig { @Value("${kafka.bootstrap-servers}") privat
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.