Chapter 4: Introducing State Management

State management for services and actors is a centerpiece of Dapr: this chapter will illustrate how a Dapr solution can manage the services' state with different store types.

These are the main topics that we will explore:

  • Managing state in Dapr
  • Stateful services in an e-commerce ordering system
  • Azure Cosmos DB as a state store

Most, if not all, of our services and actors in the Dapr applications we are building have data persisted as state.

State could be the status of a request, kept aside to be able to return additional information about a complex interaction at a later stage, or it could be the central information managed by the service, such as the quantity of available product.

State management ...

Get Practical Microservices with Dapr and .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.