Generic Apache Kafka producer and consumer