Best practices for Kafka producer and consumer