Skip to content

Commit 14cfcf9

Browse files
committed
Update actor state store docs to include strong consistency requirement
Signed-off-by: Jonathan Collinge <[email protected]>
1 parent 11b03c5 commit 14cfcf9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

daprdocs/content/en/developing-applications/building-blocks/state-management/state-management-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ You can group write, update, and delete operations into a request, which are the
9595

9696
### Actor state
9797

98-
Transactional state stores can be used to store actor state. To specify which state store to use for actors, specify value of property `actorStateStore` as `true` in the state store component's metadata section. Actors state is stored with a specific scheme in transactional state stores, allowing for consistent querying. Only a single state store component can be used as the state store for all actors. Read the [state API reference]({{% ref state_api.md %}}) and the [actors API reference]({{% ref actors_api.md %}}) to learn more about state stores for actors.
98+
Transactional and strongly consistent state stores can be used to store actor state. To specify which state store to use for actors, specify value of property `actorStateStore` as `true` in the state store component's metadata section. Actors state is stored with a specific scheme in transactional state stores, allowing for consistent querying. Only a single state store component can be used as the state store for all actors. Read the [state API reference]({{% ref state_api.md %}}) and the [actors API reference]({{% ref actors_api.md %}}) to learn more about state stores for actors.
9999

100100
#### Time to Live (TTL) on actor state
101101
You should always set the TTL metadata field (`ttlInSeconds`), or the equivalent API call in your chosen SDK when saving actor state to ensure that state eventually removed. Read [actors overview]({{% ref actors-overview.md %}}) for more information.

daprdocs/content/en/reference/api/state_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ curl -X POST http://localhost:3500/v1.0/state/starwars/transaction \
544544

545545
## Configuring state store for actors
546546

547-
Actors don't support multiple state stores and require a transactional state store to be used with Dapr. [View which services currently implement the transactional state store interface]({{% ref "supported-state-stores.md" %}}).
547+
Actors don't support multiple state stores and require a transactional and strongly consistent state store to be used with Dapr. [View which services currently implement the transactional state store interface]({{% ref "supported-state-stores.md" %}}).
548548

549549
Specify which state store to be used for actors with a `true` value for the property `actorStateStore` in the metadata section of the `statestore.yaml` component file.
550550
For example, the following components yaml will configure Redis to be used as the state store for Actors.

0 commit comments

Comments
 (0)