Re: Store a state at a RDBMS before TTL passes by

2023-07-11 Thread Shammon FY
Hi Anastasios, I think you may need to implement a customized trigger to emit record when a session window is created. You can refer to [1] for more detailed information. [1] https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/operators/windows/#triggers Best, Shammon FY

Re: Store a state at a RDBMS before TTL passes by

2023-06-15 Thread Shammon FY
Hi Anastasios, What you want sounds like a session window [1], maybe you can refer to the doc for more details. [1] https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/operators/windows/#session-windows Best, Shammon FY On Thu, Jun 15, 2023 at 10:03 PM Anastasios Makris <

Store a state at a RDBMS before TTL passes by

2023-06-15 Thread Anastasios Makris
Hi Flink users, I created a KeyedStream that tracks for each user of my website some metrics. It's time a user produces an event the metrics are recomputed and change. I would like to keep the outcome of a user's session at an RDBMS, which will be a single row. The first and obvious solution