Kafka Clients
Pulsar Clients
- Overview
- Quick Starts
- Websocket
- Message Rest API
- Transactions
- Guides
MQTT Clients
Tutorial
Produce Messages
Execute the compiled producer binary in order to produce messages to the purchases
topic.
Copy
Ask AI
./out/producer
You should see output resembling this:
Copy
Ask AI
Produced event to topic purchases: key = awalther value = batteries
Produced event to topic purchases: key = htanaka value = alarm clock
Produced event to topic purchases: key = awalther value = t-shirts
Produced event to topic purchases: key = eabara value = t-shirts
Produced event to topic purchases: key = jbernard value = t-shirts
Produced event to topic purchases: key = eabara value = alarm clock
Produced event to topic purchases: key = jbernard value = t-shirts
Produced event to topic purchases: key = sgarcia value = gift card
Produced event to topic purchases: key = jsmith value = t-shirts
Produced event to topic purchases: key = jsmith value = alarm clock
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.