Re: Custom state store

2017-11-13 Thread Matthias J. Sax
If you want to plug in a store into a DSL operator like aggregate, it must be a key-value store as the aggregation is key-based (similar it must be a windowed-store or session-store for window/session aggregation). Not sure what code you wrote in 0.11 -- there, is must also be key-value/window/ses

Re: Custom state store

2017-11-13 Thread Boris Lublinsky
Is there an example code for this somewhere? Also does it have to be key/value. In my case a store is just a state, so key is not exposed. It was working fine in the 11.0, but now semantics is very different Boris Lublinsky FDP Architect boris.lublin...@lightbend.com https://www.lightbend.com/ >

Re: Custom state store

2017-11-13 Thread Matthias J. Sax
You can plug in a custom store via `Materialized` parameter that allows to specify a custom `KeyValueBytesStoreSupplier` (and others) -Matthias On 11/13/17 10:26 AM, Boris Lublinsky wrote: > >> On Nov 13, 2017, at 12:24 PM, Boris Lublinsky >> wrote: >> >> It looks like for the custom state st

Re: Custom state store

2017-11-13 Thread Boris Lublinsky
> On Nov 13, 2017, at 12:24 PM, Boris Lublinsky > wrote: > > It looks like for the custom state store implementation the only option is to > use Topology APIs. > The problem is that in the case of DSL, Kafka streams does not provide any > option to create Store Builder for a custom store. > A