Repository navigation
Add Redis-backed checkpoint storage for distributed workflow persistence #2401
Description
Activity
- added.NETUsage: [Issues, PRs], Target: .NetUsage: [Issues, PRs], Target: .NetpythonUsage: [Issues, PRs], Target: PythonUsage: [Issues, PRs], Target: PythontriageUsage: [Issues], Target: All issues that still need to be triagedUsage: [Issues], Target: All issues that still need to be triaged
on Nov 23, 2025 - changed the title
[-]Add Redis-backed checkpoint storage for distributed workflow persistence[/-][+].NET: Add Redis-backed checkpoint storage for distributed workflow persistence[/+]on Nov 23, 2025 - changed the title
[-].NET: Add Redis-backed checkpoint storage for distributed workflow persistence[/-][+]Python: Add Redis-backed checkpoint storage for distributed workflow persistence[/+]on Nov 23, 2025 - changed the title
[-]Python: Add Redis-backed checkpoint storage for distributed workflow persistence[/-][+]Add Redis-backed checkpoint storage for distributed workflow persistence[/+]on Nov 23, 2025 - removedtriageUsage: [Issues], Target: All issues that still need to be triagedUsage: [Issues], Target: All issues that still need to be triaged
on Nov 28, 2025 - addedquestionUsage: [Issues, PRs], Target: all issues or PRs where additional context is needed from the authorUsage: [Issues, PRs], Target: all issues or PRs where additional context is needed from the author
on Jun 2, 2026 - addedworkflowsUsage: [Issues, PRs], Target: WorkflowsUsage: [Issues, PRs], Target: Workflows
on Jun 18, 2026 - assigned and unassigned
on Aug 18, 2026 Hi, is the Python side of this still open to contribution? I'd be interested in implementing the Redis checkpoint storage and adding the corresponding tests, following the existing Cosmos implementation.
I saw the earlier .NET attempt in #2799 was closed as outdated. I'd start with Python and can take on the .NET side afterward if that's still needed.
I'd like to pick up the .NET side of this, since #2799 was closed as outdated.
Plan: a new
Microsoft.Agents.AI.Redispackage (alpha) withRedisCheckpointStore : JsonCheckpointStoreon StackExchange.Redis. It keeps a per-session sorted set scored by a commit counter, soRetrieveIndexAsynckeeps commit order even for checkpoints in the same second. Writes are atomic through one Lua script, keys are hash-tagged so it works on Redis Cluster, and there is an optional per-session TTL. It comes with unit tests, tests against a real Redis that skip when none is available (like the Cosmos emulator tests), and a03-workflows/Checkpoint/CheckpointWithRedissample. It also addresses the Copilot comments from #2799.Peter Ibekwe (@peibekwe), is a separate
Microsoft.Agents.AI.Redispackage the right home, or would you prefer it inMicrosoft.Agents.AI.Valkey? I've opened it as a draft PR: #9253. Happy to adjust the location or scope.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Problem
The Agent Framework currently supports only two checkpoint storage implementations:
These options are useful for development and simple scenarios, but they limit adoption in production environments. Workflows often need to be resumed across processes, pods, or machines, which requires a distributed and durable checkpoint store.
Proposal
Introduce a RedisCheckpointStorage implementation that persists workflow checkpoints in Redis. This will enable:
Implementation Plan
RedisCheckpointStorageclass, mirroringInMemoryCheckpointStorageandFileCheckpointStorage.aioredisfor async operations.RedisCheckpointStoreimplementingICheckpointStore.CheckpointManagerfor workflow runs.StackExchange.Redisfor connection pooling and resilience.Impact
This enhancement will: