mirror of https://github.com/dapr/quickstarts.git
* Changed loop from while to for Signed-off-by: Amulya Varote <amulyavarote@QTM-SWATHIKIL-1.redmond.corp.microsoft.com> * Removed random imports Signed-off-by: Amulya Varote <amulyavarote@QTM-SWATHIKIL-1.redmond.corp.microsoft.com> Co-authored-by: Amulya Varote <amulyavarote@QTM-SWATHIKIL-1.redmond.corp.microsoft.com> |
||
|---|---|---|
| .. | ||
| order-processor | ||
| README.md | ||
README.md
Dapr state management (HTTP client)
In this quickstart, you'll create a microservice to demonstrate Dapr's state management API. The service generates messages to store data in a state store. See Why state management to understand when this pattern might be a good choice for your software architecture.
Visit this link for more information about Dapr and State Management.
Note: This example leverages HTTP
requestsonly. If you are looking for the example using the Dapr Client SDK (recommended) click here.
This quickstart includes one service:
- Python service
order-processor
Run Python service with Dapr
- Open a new terminal window and navigate to
order-processordirectory:
cd order-processor
- Install dependencies:
pip3 install -r requirements.txt
- Run the Python service app with Dapr:
dapr run --app-id order-processor --components-path ../../../components/ -- python3 app.py