Kafka - with Java/Python
You want to consume messages from two Kafka topics topicA and topicB using one Python KafkaConsumer instance. Which code snippet correctly sets this up?
from kafka import KafkaConsumer
consumer = KafkaConsumer(_____)
for msg in consumer:
print(f"Topic: {msg.topic}, Message: {msg.value.decode()}")