Re: Kafka Streams, read standby time window store

2023-09-07 Thread Bruno Cadonna
Thanks Igor for the insights! If you feel this should be changed, feel free to open a JIRA ticket. Best, Bruno On 9/6/23 9:07 PM, Igor Maznitsa wrote: Hi Bruno Looks like that I have found error in my code. The error was that I split create of  StoreQueryParameters and my code looked like sn

Re: Kafka Streams, read standby time window store

2023-09-06 Thread Igor Maznitsa
Hi Bruno Looks like that I have found error in my code. The error was that I split create of  StoreQueryParameters and my code looked like snippet below /*var query = StoreQueryParameters.fromNameAndType(TABLE_NAME, queryableStoreType);*/ /*if (useStale) {*/ /*    query.enableStaleStore(); *

Re: Kafka Streams, read standby time window store

2023-09-06 Thread Bruno Cadonna
Hi Igor, Sorry to hear you have issues with querying standbys! I have two questions to clarify the situation: 1. Did you enable querying stale stores with StoreQueryParameters.fromNameAndType(TABLE_NAME, queryableStoreType).enableStaleStores() as described in the blog post? 2. Since you a

Kafka Streams, read standby time window store

2023-09-05 Thread Igor Maznitsa
Hello 1. I am starting two Kafka Streams applications worked in same group with num.standby.replicas=1 2. Application A has active TimeWindow data store and application B has the standby version of the data store Is there any way to read the standby store time window data in bounds of B ap

Re: Kafka Window Store Retention Policy + Outage

2021-10-13 Thread Matthias J. Sax
ntion config instead of what feels like the standard/default 7 day retention? There is no particular reason... In fact, it's changed in 3.0.0 and retention time is set according to "window-size + grace-period" if not specified otherwise. Is there a way to configure a window s

Kafka Window Store Retention Policy + Outage

2021-09-08 Thread Gray, John
Kafka specifically adds only a day to the window retention config instead of what feels like the standard/default 7 day retention? Is there a way to configure a window store to be compacted only, and Kafka Streams can just tombstone the topic when the window is closed/emitted? I would imagine the answer t

Re: Window Store

2021-02-23 Thread Navneeth Krishnan
s Guozhang. > > > > I don't see the remove method in window stores. Am I missing something? > It > > would be very nice to implement the optimization you had mentioned. > > > > Thanks > > > > On Tue, Feb 23, 2021 at 11:11 AM Guozhang Wang > wrot

Re: Window Store

2021-02-23 Thread Guozhang Wang
e I think your design with a KVstore plus a > book-keeping > > window store would work better. One minor optimization you can try > though, > > is that instead of trying to check if the TTL has changed or not when > > expiring from the window store, you can try to delete from the

Re: Window Store

2021-02-23 Thread Navneeth Krishnan
s a book-keeping > window store would work better. One minor optimization you can try though, > is that instead of trying to check if the TTL has changed or not when > expiring from the window store, you can try to delete from the window store > whenever you are updating the kv-store. Mor

Re: Window Store

2021-02-23 Thread Guozhang Wang
I see. In that case I think your design with a KVstore plus a book-keeping window store would work better. One minor optimization you can try though, is that instead of trying to check if the TTL has changed or not when expiring from the window store, you can try to delete from the window store

Re: Window Store

2021-02-21 Thread Navneeth Krishnan
t; I have a question about how I can use window stores to achieve > > this > > > > use > > > > > > > case. Thanks for all the help. > > > > > > > > > > > > > > A user record will be created when the user first logins and &

Re: Window Store

2021-02-19 Thread Guozhang Wang
gt; > > > records > > > > > > needs to be cleaned up after 10 mins of inactivity. Thus for each > > > user > > > > > > there will be a TTL but the TTL value will be updated each time > > when > > > > the > > > > > > user is a

Re: Window Store

2021-02-18 Thread Liam Clarke-Hutchinson
t; when > > > the > > > > > user is active before he becomes inactive for the entire 10 min > > period. > > > > We > > > > > are currently using PAPI for all our topologies and I was thinking > of > > > > > implementing it u

Re: Window Store

2021-02-17 Thread Navneeth Krishnan
> > > implementing it using a punctuator. > > > > > > > > My initial logic was to have a KV store with each user as key and TTL > > as > > > > the value and run a scheduled task every minute that looks at all the > > > > records which

Re: Window Store

2021-02-16 Thread Liam Clarke-Hutchinson
tor. > > > > > > My initial logic was to have a KV store with each user as key and TTL > as > > > the value and run a scheduled task every minute that looks at all the > > > records which have TTL value lesser than the timestamp. But the problem > > in &g

Re: Window Store

2021-02-15 Thread Navneeth Krishnan
d run a scheduled task every minute that looks at all the > > records which have TTL value lesser than the timestamp. But the problem > in > > this approach was performance. When there are more than 1M records it > takes > > more than a few seconds to complete this ta

Re: Window Store

2021-02-15 Thread Liam Clarke-Hutchinson
eduled task every minute that looks at all the > records which have TTL value lesser than the timestamp. But the problem in > this approach was performance. When there are more than 1M records it takes > more than a few seconds to complete this task. > > Next approach is to have a w

Window Store

2021-02-15 Thread Navneeth Krishnan
run a scheduled task every minute that looks at all the records which have TTL value lesser than the timestamp. But the problem in this approach was performance. When there are more than 1M records it takes more than a few seconds to complete this task. Next approach is to have a window store and

Re: KTable#through from window store to key value store

2016-12-17 Thread Eno Thereska
terialize a table with > the updated values. > > It is possible to the access the new table as a KeyValueStore also, but it > is much less convenient and I also expected that if I have a window store > it would still be a window store after transformation/through. > > Thanks, &

Re: KTable#through from window store to key value store

2016-12-16 Thread Mikael Högqvist
ected that if I have a window store it would still be a window store after transformation/through. Thanks, Mikael On Fri, Dec 16, 2016 at 6:20 PM Eno Thereska wrote: > Hi Mikael, > > Currently that is not possible. Could you elaborate why you'd need that > since you can query fro

Re: KTable#through from window store to key value store

2016-12-16 Thread Eno Thereska
Hi Mikael, Currently that is not possible. Could you elaborate why you'd need that since you can query from tableOne. Thanks Eno > On 16 Dec 2016, at 10:45, Mikael Högqvist wrote: > > Hi, > > I have a small example topology that count words per minute (scala): > >words > .map { (key

KTable#through from window store to key value store

2016-12-16 Thread Mikael Högqvist
Hi, I have a small example topology that count words per minute (scala): words .map { (key, word) => new KeyValue(word, Long.box(1L)) } .groupByKey(Serdes.String, Serdes.Long) .count(TimeWindows.of(5 * 60 * 1000L), tableOne) .through(new WindowedSerde, Se