This example demonstrates the Configuration APIs in Dapr. It demonstrates the following APIs:
- configuration: Get configuration from statestore
Note: Make sure to use the latest proto bindings
pip3 install dapr dapr-ext-grpcdocker exec dapr_redis redis-cli SET orderId1 "100||1"
docker exec dapr_redis redis-cli SET orderId2 "200||1"Change directory to this folder:
cd examples/configurationTo run this example, use the following command:
dapr run --app-id configexample --resources-path components/ -- python3 configuration.pydocker exec dapr_redis redis-cli SET orderId2 "210||2"You should be able to see the following output:
Got key=orderId1 value=100 version=1
Got key=orderId2 value=200 version=1
Subscribe key=orderId2 value=210 version=2