send messages to kafka in batch. added requirement