Re: Stateful functions presentation code (UI part)

2019-11-01 Thread Flavio Pompermaier
Thanks Igal for the detailed explanantion. I know that this was only a demo, I just wanted to reason a bit on the pros and cons of sending data to an UI from Flink. Best, Flavio Il Ven 1 Nov 2019, 12:21 Igal Shilman ha scritto: > Hi Flavio, let me try to clarify: > > The intention of this

Re: Stateful functions presentation code (UI part)

2019-11-01 Thread Igal Shilman
Hi Flavio, let me try to clarify: The intention of this example is to demonstrate how different entities (drivers, passengers, etc') participates in a protocol (ride matching). For that we have the stateful functions application, and a standalone java application that just generates the events to

Re: Stateful functions presentation code (UI part)

2019-10-31 Thread Flavio Pompermaier
Thanks Igal, this is more or less what I was expecting..this implies that ALL events are received on the UI side. I was concerned about the tradeoffs of this choice: when I zoom on the map I could simply ignore messages outside the boundaries (but I still spend many cpu resource in the reading of

Re: Stateful functions presentation code (UI part)

2019-10-31 Thread Igal Shilman
For that particular example, the simulator [1] is responsible for simulating physical drivers and passengers that interact with their corresponding stateful functions [2]. The interaction between the simulator and the stateful functions is happening via four Kafka topics: * to-driver - messages

Re: Stateful functions presentation code (UI part)

2019-10-31 Thread Flavio Pompermaier
Yes, I'm interested in how to read data from a UI..which egress should I use? If we use a kafka queue, how to filter data received in the topic? Should I use a correlation id or use a new topic per user? Il Gio 31 Ott 2019, 16:08 Igal Shilman ha scritto: > Hi Flavio, > > We haven't included the

Re: Stateful functions presentation code (UI part)

2019-10-31 Thread Igal Shilman
Hi Flavio, We haven't included the UI source code just yet, we've only used it for demos and talks. The reason is that (1) we didn't put a lot of effort and time there (2) didn't check the time to go through the individual dependencies and licences. But we will add that very soon. Would having

Re: Stateful functions presentation code (UI part)

2019-10-31 Thread Flavio Pompermaier
Hi Vino, I already checked that code but I can't find the UI part :( On Thu, Oct 31, 2019 at 12:32 PM vino yang wrote: > Hi Flavio, > > Please see this link.[1] > > Best, > Vino > > [1]: >

Re: Stateful functions presentation code (UI part)

2019-10-31 Thread vino yang
Hi Flavio, Please see this link.[1] Best, Vino [1]: https://github.com/ververica/stateful-functions/tree/master/stateful-functions-examples/stateful-functions-ridesharing-example Flavio Pompermaier 于2019年10月31日周四 下午4:53写道: > Hi to all, > yould it be possible to provide also the source code

Stateful functions presentation code (UI part)

2019-10-31 Thread Flavio Pompermaier
Hi to all, yould it be possible to provide also the source code of the UI part of the ride sharing example? It would be interesting to me how the UI is reading the data from the Kafka egress. Best, Flavio