The dotnet command is used to build and run the .NET project.In order to run the producer, use the dotnet run command from the producer directory:
Copy
Ask AI
cd producerdotnet run
You should see output resembling this:
Copy
Ask AI
Produced event to topic purchases: key = sgarcia value = alarm clockProduced event to topic purchases: key = jsmith value = alarm clockProduced event to topic purchases: key = sgarcia value = bookProduced event to topic purchases: key = htanaka value = batteriesProduced event to topic purchases: key = htanaka value = bookProduced event to topic purchases: key = eabara value = batteriesProduced event to topic purchases: key = jbernard value = batteriesProduced event to topic purchases: key = eabara value = t-shirtsProduced event to topic purchases: key = jbernard value = t-shirtsProduced event to topic purchases: key = eabara value = t-shirts10 messages were produced to topic purchases