Hi Boyang, Basically I don’t want to load all the states upfront. For local kv store, when the very first message arrives I basically do a http request to an external service and load the data.
I can do the same for global state store but since the global states are read only I couldn’t figure out a better way to do it. Thanks On Thu, Apr 2, 2020 at 1:38 PM Boyang Chen <reluctanthero...@gmail.com> wrote: > Hey Navneeth, > > could you clarify a bit on what you mean by `lazy load`, specifically how > you make it happen with local KV store? > > On Thu, Apr 2, 2020 at 12:09 PM Navneeth Krishnan < > reachnavnee...@gmail.com> > wrote: > > > Hi All, > > > > Is there a recommend way for lazy loading the global state store. I'm > using > > PAPI and I have the local KV state stores in lazy load fashion so that I > > don't end up loading unnecessary data. Similarly I want to get the global > > state store to be loaded only when the request has the id for which the > > data is not present. > > > > Thanks > > >