Kafka Clients
Pulsar Clients
- Overview
- Quick Starts
- Websocket
- Message Rest API
- Transactions
- Guides
MQTT Clients
Tutorial
Produce Messages
Run the following command to run the Spring Boot application for the Producer.
Copy
Ask AI
gradle bootRun --args='--producer'
You should see output resembling this:
Copy
Ask AI
2024-11-16T21:09:11.161-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = awalther value = t-shirts
2024-11-16T21:09:11.162-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = htanaka value = t-shirts
2024-11-16T21:09:11.162-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = htanaka value = batteries
2024-11-16T21:09:11.162-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = eabara value = t-shirts
2024-11-16T21:09:11.162-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = htanaka value = t-shirts
2024-11-16T21:09:11.162-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = awalther value = t-shirts
2024-11-16T21:09:11.162-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = eabara value = t-shirts
2024-11-16T21:09:11.224-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = jsmith value = book
2024-11-16T21:09:11.225-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = jsmith value = batteries
2024-11-16T21:09:11.225-08:00 INFO 23421 --- [ad | producer-1] examples.Producer : Produced event to topic purchases: key = jsmith value = gift card
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.