Use a separate thread to send message to kafka