Hello, as documentation says, the KafkaProducer.send() method is asynchronous and it just returns immediately.I found out that it's not so true when the Kafka server it's trying to connect isn't online.Of course it happens only on the first send() method invocation. It means that if the Kafka server isn't reachable when my application starts for the first time, the send() method isn't so asynchronous but it blocks.I know that it's trying to connect to the Kafka server but why it doesn't save the message into the buffer and returns immediately ?Is it a behavior or a bug ? Thanks,Paolo
Paolo PatiernoSenior Software Engineer Windows Embedded & IoTMicrosoft Azure Advisor Twitter : @ppatierno Linkedin : paolopatierno Blog : DevExperienceBlog : Embedded101