Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 775 Bytes

File metadata and controls

34 lines (24 loc) · 775 Bytes

Live Config

Watch configuration values change in real time using ConfigWatcher.

What it shows

  • client.watch() to create a watcher
  • watcher.field() to register typed fields with defaults
  • @field.on_change decorator for reactive callbacks
  • field.changes() blocking iterator for change events
  • field.value for reading the current value at any time

Run

cd examples
make setup
cd live-config
python main.py

Then in another terminal:

decree config set <tenant-id> server.rate_limit 500

Next

Learn more