This message was deleted.
# announcements
w
This message was deleted.
h
The latter. Only JS/React and I believe Java currently support streaming updates (i.e. feature/experiment updates). Streaming updates for more platforms is coming soon!
👍 1
l
@happy-autumn-40938 To clarify on the same note, for React/JS SDKs, the worst case scenario for an update to be reflected live will be 60 seconds right? Or does this depend if
autoRefresh
is set to
true
or not?
h
For JS/React, if you have streaming turned off (autoRefresh: false) then the TTL will be the minimum staleness (age) of your cached features. So if you call
loadFeatures
before the TTL expires, the SDK will just used the cached copy instead of fetching new features. You can override the TTL to not be 60 seconds, ex:
configureCache({staleTTL: 5000})
. However, without streaming, the SDK will keep stale results indefinitely until something triggers a refetch (i.e. a user triggering another
loadFeatures
call). With streaming enabled, none of this matters because the SDK will get instant feature updates from the server, which bypasses the cache/TTL logic entirely and re-seeds your SDK cache.
👍 1
146 Views