ExperimentMar 18, 2024
[All updates]

Experiment NodeJS SDK Stream Flag Config Updates

Peter Zhu
Peter Zhu

Description: Customers who use the NodeJS server-side SDK can now listen for flag config updates and receive them generally within 1 second instead of continuously polling for flag config changes.

Why: Currently, customers’ servers have to keep polling at an interval to receive the newest set of flags.

Now, we can push updates to the SDK and customers’ servers can serve the freshest flag configs right after they make changes in Experiment. They are able to perform use cases such as a kill switch to stop or modify an experiment instantly.

Where: In Node JS server side Experiment SDK. Requires opting in using streamUpdates configuration.

Useful Resources: https://www.docs.developers.amplitude.com/experiment/sdks/nodejs-sdk/#initialize-local