Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE PREVIEW: Add Actor State TTL support #849

Open
JoshVanL opened this issue Apr 25, 2023 · 2 comments · May be fixed by #1060
Open

FEATURE PREVIEW: Add Actor State TTL support #849

JoshVanL opened this issue Apr 25, 2023 · 2 comments · May be fixed by #1060
Assignees
Labels
good first issue Good for newcomers P1
Milestone

Comments

@JoshVanL
Copy link

Add first class API support for Actor State TTL dapr/dapr#5899

A dedicated function to Actor State should be created. Psudo code: func (key string, value string, ttl duration). It should be made clear in the SDK documentation/comments that users should always use this function, unless they have specifically created some kind of Actor State clean up out of band of Dapr or don't have an issue with the Actor State store keep state and grow "forever".

Please see the go-sdk for implementation reference.

@artursouza artursouza added this to the v1.10 milestone May 15, 2023
@artursouza artursouza added the good first issue Good for newcomers label May 15, 2023
@JoshVanL JoshVanL changed the title Add Actor State TTL support FEATURE PREVIEW: Add Actor State TTL support May 25, 2023
@JoshVanL
Copy link
Author

UPDATE: Due to the nature of the current implementation of write through caching of actor state and the unavailability of the real TTL expire time of state keys, SDKs will have an inconsistent view of the world when it has a cold cache and the state store has TTL keys. The TTL functionality has been put behind a feature gate in daprd. See dapr/dapr#6400 for more details. This feature is expected to be moved to GA in 1.12.

@artursouza artursouza linked a pull request Jun 26, 2024 that will close this issue
3 tasks
@artursouza artursouza modified the milestones: v1.12, v1.13 Jul 23, 2024
@mikeee mikeee moved this from Backlog to In progress in v1.15 Release Tracking Board Sep 4, 2024
@mikeee mikeee moved this from In progress to In review in v1.15 Release Tracking Board Sep 4, 2024
@artursouza artursouza modified the milestones: v1.13, v1.14 Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers P1
Projects
Status: In review
Development

Successfully merging a pull request may close this issue.

4 participants