This lab is build to illustrate how the Dapr Rust SDK can be used. In this application we increment a number in the connected Redis Dapr statestore. The diagram below shows the system setup.
All applications that are used throughout the entire course are listed under Installs.
How complete the lab:
- Start Dapr locally:
dapr init
- Run the application:
dapr run --app-id dapr-rust-sdk --app-port 8081 --dapr-http-port 3500 -- cargo run
- Navigate to your browser or use the terminal to hit the endpoint a couple of times to test the application:
curl 127.0.0.1:8081
Done!