Package Description
Install
| Product | Versions |
|---|---|
| .NET |
README
Microsoft Orleans Journaling for Redis
Introduction
Microsoft Orleans Journaling for Redis provides a Redis-backed implementation of the Orleans Journaling storage and catalog abstractions. Orleans Durable Jobs can use Orleans Journaling as a backing store, so this provider can persist durable job state through the journaling layer.
The provider stores each journal as Redis string data plus Redis hash metadata. Per-journal reads and mutations use atomic Lua scripts. Journal discovery scans metadata keys on each connected primary Redis server and reads the canonical journal id from each hash. Configure Redis persistence, such as AOF with an appropriate appendfsync setting, according to the durability guarantees required by your application.
Getting Started
Install the package:
dotnet add package Microsoft.Orleans.Journaling.Redis
Configure the silo:
using Orleans.Journaling;
using StackExchange.Redis;
builder.UseOrleans(siloBuilder =>
{
siloBuilder
.UseLocalhostClustering()
.AddRedisJournalStorage(options =>
{
options.ConfigurationOptions = ConfigurationOptions.Parse("localhost:6379");
});
});
If the Redis connection is already registered in dependency injection, configure it using a keyed service and the GrainJournaling provider configuration ServiceKey.
Documentation
Feedback & Contributing
- If you have any issues or would like to provide feedback, please open an issue on GitHub
- Join our community on Discord
- Follow the @msftorleans Twitter account for Orleans announcements
- Contributions are welcome! Please review our contribution guidelines
- This project is licensed under the MIT license
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.