Microsoft.Orleans.Clustering.DynamoDB 9.2.0-preview2

Prefix Reserved
This is a prerelease version of Microsoft.Orleans.Clustering.DynamoDB.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.Orleans.Clustering.DynamoDB --version 9.2.0-preview2
                    
NuGet\Install-Package Microsoft.Orleans.Clustering.DynamoDB -Version 9.2.0-preview2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Orleans.Clustering.DynamoDB" Version="9.2.0-preview2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Orleans.Clustering.DynamoDB" Version="9.2.0-preview2" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Orleans.Clustering.DynamoDB" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Orleans.Clustering.DynamoDB --version 9.2.0-preview2
                    
#r "nuget: Microsoft.Orleans.Clustering.DynamoDB, 9.2.0-preview2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Orleans.Clustering.DynamoDB@9.2.0-preview2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Orleans.Clustering.DynamoDB&version=9.2.0-preview2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Orleans.Clustering.DynamoDB&version=9.2.0-preview2&prerelease
                    
Install as a Cake Tool

Microsoft Orleans Clustering for DynamoDB

Introduction

Microsoft Orleans Clustering for DynamoDB provides cluster membership functionality for Microsoft Orleans using Amazon's DynamoDB. This allows Orleans silos to coordinate and form a cluster using DynamoDB as the backing store.

Getting Started

To use this package, install it via NuGet:

dotnet add package Microsoft.Orleans.Clustering.DynamoDB

Example - Configuring DynamoDB Membership

using Microsoft.Extensions.Hosting;
using Orleans.Hosting;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Threading.Tasks;

namespace ExampleGrains;

// Define a grain interface
public interface IHelloGrain : IGrainWithStringKey
{
    Task<string> SayHello(string greeting);
}

// Implement the grain interface
public class HelloGrain : Grain, IHelloGrain
{
    public Task<string> SayHello(string greeting)
    {
        return Task.FromResult($"Hello, {greeting}!");
    }
}

var builder = Host.CreateApplicationBuilder(args)
    .UseOrleans(siloBuilder =>
    {
        siloBuilder
            // Configure DynamoDB clustering
            .UseDynamoDBClustering(options =>
            {
                options.AccessKey = "YOUR_AWS_ACCESS_KEY";
                options.SecretKey = "YOUR_AWS_SECRET_KEY";
                options.Region = "us-east-1";
                options.TableName = "OrleansClusteringTable";
                options.CreateIfNotExists = true;
            });
    });

var host = builder.Build();
await host.StartAsync();

// Get a reference to a grain and call it
var client = host.Services.GetRequiredService<IClusterClient>();
var grain = client.GetGrain<IHelloGrain>("user123");
var response = await grain.SayHello("DynamoDB");

// Print the result
Console.WriteLine($"Grain response: {response}");

// Keep the host running until the application is shut down
await host.WaitForShutdownAsync();

Documentation

For more comprehensive documentation, please refer to:

Feedback & Contributing

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Microsoft.Orleans.Clustering.DynamoDB:

Package Downloads
Microsoft.Orleans.OrleansAWSUtils

Library of utility types for Amazon AWS of Microsoft Orleans.

Xunit.Orleans.TestFramework

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Microsoft.Orleans.Clustering.DynamoDB:

Repository Stars
PiotrJustyna/road-to-orleans
This repository illustrates the road to orleans with practical, real-life examples. From most basic, to more advanced techniques.
Version Downloads Last Updated
9.2.1 2,787 7/16/2025
9.2.0 546 7/14/2025
9.2.0-preview3 2,969 6/10/2025
9.2.0-preview2 548 6/4/2025
9.2.0-preview1 963 4/4/2025
9.1.2 48,621 2/13/2025
9.0.1 33,794 11/23/2024
9.0.0 898 11/14/2024
8.2.0 55,557 7/12/2024
8.2.0-preview1 208 5/22/2024
8.1.0 52,886 4/17/2024
8.1.0-preview3 265 3/11/2024
8.1.0-preview2 137 2/23/2024
8.1.0-preview1 169 2/13/2024
8.0.0 54,370 1/5/2024
8.0.0-rc2 297 12/20/2023
8.0.0-rc1 225 12/4/2023
7.2.7 150 10/15/2024
7.2.6 10,026 3/9/2024
7.2.5 998 2/22/2024
7.2.4 23,747 12/2/2023
7.2.3 15,271 11/3/2023
7.2.2 4,456 10/16/2023
7.2.1 31,667 7/11/2023
7.2.0 285 7/7/2023
7.1.2 45,085 4/19/2023
7.1.1 11,520 3/23/2023
7.1.0 4,497 2/1/2023
7.0.0 38,740 11/8/2022
7.0.0-rc2 370 10/19/2022
4.0.0-preview2 1,929 8/4/2022
4.0.0-preview1 2,130 2/10/2022
3.8.0 190 5/6/2025
3.8.0-preview5 233 5/12/2025
3.8.0-preview3 189 4/8/2025
3.8.0-preview2 135 4/4/2025
3.8.0-preview1 185 3/31/2025
3.7.2 10,456 5/10/2024
3.7.1 17,888 5/27/2023
3.7.0 7,974 3/23/2023
3.6.5 54,074 8/15/2022
3.6.4 503 8/10/2022
3.6.3 538 8/4/2022
3.6.2 22,103 4/15/2022
3.6.1 2,674 4/5/2022
3.6.0 20,424 1/20/2022
3.5.1 13,381 11/8/2021
3.5.0 25,147 9/3/2021
3.4.4 497 10/4/2021
3.4.3 31,646 6/3/2021
3.4.2 57,875 4/5/2021
3.4.1 15,397 2/3/2021
3.4.0 86,718 1/6/2021
3.4.0-rc1 521 12/9/2020
3.3.0 40,230 9/9/2020
3.3.0-rc2 515 9/2/2020
3.3.0-rc1 505 8/19/2020
3.2.2 6,225 7/22/2020
3.2.1 869 7/2/2020
3.2.0 1,575 6/4/2020
3.2.0-rc2 491 5/20/2020
3.2.0-rc1 529 5/7/2020
3.1.7 2,027 5/19/2020
3.1.6 5,939 4/16/2020
3.1.5 784 4/9/2020
3.1.4 1,320 3/26/2020
3.1.3 1,063 3/16/2020
3.1.2 2,510 3/5/2020
3.1.0 1,203 2/23/2020
3.1.0-rc3 588 2/13/2020
3.1.0-rc2 614 2/12/2020
3.1.0-rc1 662 2/10/2020
3.0.2 28,648 12/12/2019
3.0.1 846 11/27/2019
3.0.0 981 10/24/2019
3.0.0-rc2 574 10/16/2019
3.0.0-rc1 1,691 10/9/2019
3.0.0-beta1 1,372 8/16/2019
2.4.5 13,033 12/29/2019
2.4.4 1,184 11/27/2019
2.4.3 1,418 10/10/2019
2.4.2 5,880 8/31/2019
2.4.1 1,687 8/14/2019
2.4.0 1,751 8/8/2019
2.3.6 1,758 7/24/2019
2.3.5 7,492 6/14/2019
2.3.4 1,607 6/4/2019
2.3.3 1,302 6/2/2019
2.3.2 16,579 5/9/2019
2.3.1 2,089 4/26/2019
2.3.0 3,531 3/20/2019
2.3.0-rc2 727 3/13/2019
2.3.0-rc1 807 3/4/2019
2.2.4 2,354 2/25/2019
2.2.3 2,647 1/17/2019
2.2.0 2,710 12/13/2018
2.2.0-rc1 1,005 12/4/2018
2.2.0-beta1 936 10/21/2018
2.1.2 3,856 10/11/2018
2.1.0 1,836 9/28/2018
2.1.0-rc2 1,434 9/21/2018
2.1.0-rc1 1,229 9/14/2018
2.1.0-beta1 1,258 8/27/2018
2.0.0 9,250 3/28/2018
2.0.0-rc2 5,021 3/13/2018
2.0.0-rc1 1,457 2/26/2018
2.0.0-beta3 3,083 12/21/2017