Hi Hangxiang, I was thinking , since we already store entire state in the checkpoint dir so why can't we expose it as a service through the Flink queryable state, in this way I can easily avoid introducing a cache and serve realtime APIs via this state itself and I can go to the database for the historical data.
Thank you. On Wed, Jun 29, 2022 at 11:17 AM Hangxiang Yu <master...@gmail.com> wrote: > Hi, laxmi. > There are two ways that users can access the state store currently: > 1. Queryable state [1] which you could access states in runtime. > 2. State Processor API [2] which you could access states (snapshot) > offline. > > But we have marked the Queryable state as "Reaching End-of-Life". > We are also trying to find a graceful and effective way for users to debug > and troubleshoot. > So could you share your case about what you want to use it for ? > Your feedback is important for us to design it in the long term. Thanks! > > [1] > https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/fault-tolerance/queryable_state/ > [2] > https://nightlies.apache.org/flink/flink-docs-master/docs/libs/state_processor_api/ > [3] https://flink.apache.org/roadmap.html > > Best, > Hangxiang. > > On Tue, Jun 28, 2022 at 8:26 PM laxmi narayan <nit.dgp...@gmail.com> > wrote: > >> Hi Team, >> I am not sure if this is the right use case for the state-store but I >> wanted to serve the APIs using queryable-state, what are the different ways >> to achieve this ? >> >> I have come across a version where we can use Job_Id to connect to the >> state, but is there any other way to expose a specific rest-endpoint etc ? >> >> Any sample example/github link would be nice. >> >> >> >> Thank you. >> >