This tutorial is part 5 of Building Microservice Applications with Azure Container Apps and Dapr. In this post, we will use Dapr State Management API to switch from in-memory store to a key/value persistent store (Azure Cosmos DB). We will also demonstrate how to use Redis for storing tasks when running the application locally. The State Management API allows saving, reading, and querying key/value pairs in supported state stores without installing any specific NuGet packages or writing custom code. The tutorial also covers an overview of Dapr State Management API and the state store template component file structure. The source code and demo application are available on GitHub.