feat(journaling): add Redis journal storage provider - #9823
Merged
Merged
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a Redis implementation for Orleans Durable Jobs, enabling persistent job storage using Redis Streams. The implementation follows the same patterns as the existing Azure Storage provider, providing distributed job scheduling that survives silo restarts and cluster reconfigurations.
Key changes:
- Implements
RedisJobShardManagerandRedisJobShardfor Redis-backed job persistence using Redis Streams - Adds batching support for job operations with configurable batch sizes and flush intervals
- Includes comprehensive test coverage mirroring the Azure Storage provider tests
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
Orleans.slnx |
Adds the new Redis DurableJobs project to the solution |
test/Extensions/Tester.Redis/Tester.Redis.csproj |
Adds project reference for testing the Redis DurableJobs implementation |
test/Extensions/Tester.Redis/DurableJobs/RedisJobShardManagerTests.cs |
Test class delegating common shard manager tests to the shared test runner |
test/Extensions/Tester.Redis/DurableJobs/RedisJobShardManagerTestFixture.cs |
Test fixture providing Redis-specific test infrastructure and cleanup |
test/Extensions/Tester.Redis/DurableJobs/RedisDurableJobsTests.cs |
Integration tests using a test cluster to verify end-to-end functionality |
src/Redis/Orleans.DurableJobs.Redis/RedisStreamJsonSerializer.cs |
Utility for serializing/deserializing job operations to/from Redis Streams using source-generated JSON |
src/Redis/Orleans.DurableJobs.Redis/RedisOperationsManager.cs |
Centralized manager for all Redis operations including Lua scripts for atomic operations |
src/Redis/Orleans.DurableJobs.Redis/RedisJobShardManager.cs |
Core manager implementing shard lifecycle, ownership, and assignment logic |
src/Redis/Orleans.DurableJobs.Redis/RedisJobShardManager.Log.cs |
Logging definitions for RedisJobShardManager using source-generated LoggerMessage attributes |
src/Redis/Orleans.DurableJobs.Redis/RedisJobShard.cs |
Individual shard implementation with batch processing and stream-based persistence |
src/Redis/Orleans.DurableJobs.Redis/RedisJobShard.Log.cs |
Logging definitions for RedisJobShard using source-generated LoggerMessage attributes |
src/Redis/Orleans.DurableJobs.Redis/README.md |
Documentation for the Redis DurableJobs package with configuration examples |
src/Redis/Orleans.DurableJobs.Redis/Properties/AssemblyInfo.cs |
Assembly metadata enabling test visibility |
src/Redis/Orleans.DurableJobs.Redis/Orleans.DurableJobs.Redis.csproj |
Project file defining package metadata and dependencies |
src/Redis/Orleans.DurableJobs.Redis/JobOperation.cs |
Data structure representing job operations with JSON serialization context |
src/Redis/Orleans.DurableJobs.Redis/Hosting/RedisJobShardOptionsValidator.cs |
Configuration validator ensuring valid Redis DurableJobs options |
src/Redis/Orleans.DurableJobs.Redis/Hosting/RedisJobShardOptions.cs |
Configuration options for Redis DurableJobs including connection settings and batching parameters |
src/Redis/Orleans.DurableJobs.Redis/Hosting/RedisDurableJobsExtensions.cs |
Extension methods for configuring Redis DurableJobs in the silo builder |
This was referenced Aug 31, 2026
Merged
This was referenced Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Redis-backed Orleans.Journaling provider which implements
IJournalStorageProviderandIJournalStorageCatalog, so Orleans.DurableJobs can use Redis through the Journaling backing store.Highlights:
Microsoft.Orleans.Journaling.Redis.GrainJournalingprovider and addsAddRedisJournalStoragehosting APIs.