Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

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