Share app settings or feature flags. Update once, everyone sees the changes.
You want to toggle features or share configuration across multiple instances of your app without redeploying.
Store your config in WrenDB. All instances fetch it on startup or periodically refresh.
# Store your config
curl -X POST https://wrendb.com/api/item/$STASH_ID/app-config \
-H "Authorization: Bearer $WREN_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"features": {
"new_ui": true,
"beta_access": false,
"maintenance_mode": false
},
"api_rate_limit": 1000,
"cache_ttl": 300
}'
# In your app (Python)
import requests
import json
def get_config():
response = requests.get(
f'https://wrendb.com/api/item/{STASH_ID}/app-config'
)
return response.json()
config = get_config()
if config['features']['new_ui']:
# Use new UI
pass