Kafka Clients
Pulsar Clients
- Overview
- Quick Starts
- Websocket
- Message Rest API
- Transactions
- Guides
MQTT Clients
Tutorial
Produce Messages
Make the producer.py
file executable by running the following command:
Copy
Ask AI
chmod +x producer.py
Run the producer by executing the following command:
Copy
Ask AI
./producer.py
You should see output resembling this:
Copy
Ask AI
Produced event to topic purchases: key = jbernard value = alarm clock
Produced event to topic purchases: key = eabara value = gift card
Produced event to topic purchases: key = jsmith value = batteries
Produced event to topic purchases: key = sgarcia value = alarm clock
Produced event to topic purchases: key = jsmith value = book
Produced event to topic purchases: key = sgarcia value = alarm clock
Produced event to topic purchases: key = awalther value = batteries
Produced event to topic purchases: key = awalther value = gift card
Produced event to topic purchases: key = awalther value = book
Produced event to topic purchases: key = htanaka value = book
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.