Re: Calculating time elapsed using event start / stop notification messages

2017-04-21 Thread Eno Thereska
Hi Ali, One starting point would be the low level Processor API, where you get each event and process it. You can also use a persistent state store to keep track of the events seen so far, it can probably be an in-memory store. An an entry can probably be deleted once both start and stop

Calculating time elapsed using event start / stop notification messages

2017-04-21 Thread Ali Akhtar
I have a tricky use case where a user initiates an event (by clicking a button) and then stops it (by clicking it again, losing connection, closing the browser, etc). Each time the event starts or stops, a notification is sent to a kafka topic, with the user's id as the message key and the