My initial code sends 1000 messages to a Kafka message queue using the aiokafka producer client.
aiokafka
import as