0

I am new to python using ldclient library to get value from LaunchDarkly in backend server. Does it get cache on backend server or there is network call on every reference?

I had assumption it would be getting cached with some TTL + any LD flag changes would do push the changes or restart the connection

Abhay Kumar
  • 403
  • 1
  • 5
  • 12

1 Answers1

2

Yes it is as you assumed. The SDK downloads all feature flags on initialization. Through a websocket connection, flag changes are automatically "streamed" into the SDK running in your application process.

You would typically not restart your application on flag changes.

StephenKing
  • 36,187
  • 11
  • 83
  • 112
  • Do you know if this is mentioned somewhere in the documentation? I could only find how to register a datastore (like redis) to store data. I'd like to figure out what is the latency and what if you've multiple instances running, will there be inconsistencies. – LostMage Jan 06 '23 at 15:22
  • Does maybe convince the section "Plan for a large initial payload from the streaming endpoint" on this page convince you? https://docs.launchdarkly.com/sdk/concepts/getting-started – StephenKing Jan 08 '23 at 19:11
  • We're evaluating multiple flags for thousands of requests per second. Latency is negligible as you can believe me, decisions are taken locally in the server side SDK. Everything is stored locally. – StephenKing Jan 08 '23 at 19:13