mirror of https://github.com/dapr/go-sdk.git
* updates grpc proto for v1.10 Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com> * updates go mod tidy for v1.10 Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com> --------- Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com> |
||
---|---|---|
.. | ||
config | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go |
README.md
Dapr Configuration Example
Step
Prepare
- Dapr installed
Run Get Configuration
dapr run --app-id configuration-api\
--app-protocol grpc \
--app-port 5005 \
--dapr-http-port 3006 \
--log-level debug \
--components-path ./config/ \
go run ./main.go
Result
- Configuration Client Logs
The subscription event order may out of order.
get config = myConfigValue
get updated config key = mySubscribeKey1, value = mySubscribeValue1
get updated config key = mySubscribeKey2, value = mySubscribeValue1
get updated config key = mySubscribeKey3, value = mySubscribeValue1
get updated config key = mySubscribeKey1, value = mySubscribeValue2
get updated config key = mySubscribeKey2, value = mySubscribeValue2
get updated config key = mySubscribeKey3, value = mySubscribeValue2
get updated config key = mySubscribeKey1, value = mySubscribeValue3
get updated config key = mySubscribeKey2, value = mySubscribeValue3
get updated config key = mySubscribeKey3, value = mySubscribeValue3
dapr configuration subscribe finished.
✅ Exited App successfully