A dynamic config is a tool that replaces hard-coded values in your application with configuration parameters defined on the server. This allows you to control the behavior of your application dynamically in near real-time.
For example, a dynamic config called localization could be used to retrieve localized strings for users in different countries. Users in Spanish-speaking countries would see Spanish strings, while users in French and Korean-speaking countries would see French and Korean strings respectively.
The Dynamic Config API provides several functions to interact with dynamic configs:
Create a new dynamic config: This function allows you to create a new dynamic config in the Statsig console.
Read data from existing dynamic configs: This function allows you to retrieve data from existing dynamic configs.
Update properties of a dynamic config: This function allows you to modify the properties of an existing dynamic config.
Delete a dynamic config: This function allows you to remove an existing dynamic config.
Dynamic configs can be used for a variety of purposes, including:
Configuring a new feature for a handful of customers
Defining custom metric types
Keeping a store of legacy data fields on customer domains that are infrequently accessed
Saving the non-secret parts of connection configurations for internal usage