Re: designing a streaming task for count and event time difference

2020-01-04 Thread Sachin Mittal
Try something like this: stream .groupBy( (key, value) -> value.userId ) .aggregate( () -> new Session(), (aggKey, newValue, aggValue) -> { aggValue.userId = newValue.userId if (newValue.start) { aggValue.start = newValue.start aggValue.duration = 0

designing a streaming task for count and event time difference

2020-01-04 Thread Chris Madge
Hi there, It’s my first voyage into stream processing - I’ve tried a few things but I think I’m struggling to think in the streams way. I wondered if I could be cheeky and ask if someone could give me some clues as to the correct design for my first task to get me started? I have application

designing a streaming task for count and event time difference

2020-01-04 Thread Chris Madge
Hi there, It’s my first voyage into stream processing - I’ve tried a few things but I think I’m struggling to think in the streams way. I wondered if I could be cheeky and ask if someone could give me some clues as to the correct design for my first task to get me started? I have application