Created 05-18-2016 05:56 PM
The TruckEventsProducer code implements a sleep() after each send():
producer.send(data);
Thread.sleep(1000);
Why is this necessary?
Created 05-18-2016 07:40 PM
it is for demo purposes, do not include this line in your production code. It's there to simulate new events every one second.
View solution in original post