Orleans.Streaming.Grains 7.2.89

There is a newer version of this package available.
See the version list below for details.
dotnet add package Orleans.Streaming.Grains --version 7.2.89                
NuGet\Install-Package Orleans.Streaming.Grains -Version 7.2.89                
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="Orleans.Streaming.Grains" Version="7.2.89" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Orleans.Streaming.Grains --version 7.2.89                
#r "nuget: Orleans.Streaming.Grains, 7.2.89"                
#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.
// Install Orleans.Streaming.Grains as a Cake Addin
#addin nuget:?package=Orleans.Streaming.Grains&version=7.2.89

// Install Orleans.Streaming.Grains as a Cake Tool
#tool nuget:?package=Orleans.Streaming.Grains&version=7.2.89                

Orleans.Streaming.Grains

NuGet

This is a Streaming Provider that uses Orleans' built-in StatefulGrain system for queuing messages. The extra added value of this project is the FireAndForgetDelivery option which can be disabled for tests, so they are easier to write with TestCluster.

Usage

In production you should register the provider using the extension method for ISiloBuilder. It is also required to add Grains storage providers for actual state and for subscriptions. The example below uses MemoryGrainStorage which should not be used if you require the stream queues to be persistent.

siloBuilder.AddMemoryGrainStorageAsDefault()
           .AddMemoryGrainStorage(name: "PubSubStore")
           .AddGrainsStreams(name: "Default",
                             queueCount: 1,
                             retry: TimeSpan.FromMinutes(1),
                             poison: TimeSpan.FromMinutes(3));

In test you should register the provider using the extension method for ISiloBuilder. It is also required to add Grains storage providers for actual state and for subscriptions. The example below uses MemoryGrainStorage which should not be used if you require the stream queues to be persistent. In this situation, every OnNextAsync invocation can be awaited and the code will wait until that message is accepted by all subscribers.

siloBuilder.ConfigureServices(Configure)
           .AddMemoryGrainStorageAsDefault()
           .AddMemoryGrainStorage(name: "PubSubStore")
           .AddGrainsStreamsForTests(name: "Default",
                                     queueCount: 3,
                                     retry: TimeSpan.FromSeconds(1),
                                     poison: TimeSpan.FromSeconds(3));

Compromise

In high throughput and high volume environments you will want to collect the TransactionItemGrain objects early so they don't overload the memory of your silo. Use the below configuration and adjust it to your requirements:

siloBuilder.Configure<GrainCollectionOptions>(options =>
{
    options.CollectionAge = TimeSpan.FromMinutes(1);
    options.CollectionQuantum = TimeSpan.FromSeconds(5);
    options.ClassSpecificCollectionAge[typeof(TransactionItemGrain<>).FullName] = options.CollectionQuantum * 2;
});

Project Contents:

  • Orleans.Streaming.Grains implements the Grain Stream Provider.
  • Orleans.Streaming.Grains.Test test the Grain Stream Provider in an Orleans TestingHost.

Make sure to open the project folder in VS Code with Remote - Containers extension enabled.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.115-rc1 422 12/21/2023
7.2.110 338 12/1/2023
7.2.108 117 12/1/2023
7.2.107 538 11/14/2023
7.2.105 131 11/14/2023
7.2.104 113 11/14/2023
7.2.103 146 11/8/2023
7.2.102 113 11/8/2023
7.2.101 113 11/8/2023
7.2.100 113 11/8/2023
7.2.99 103 11/8/2023
7.2.97 635 11/2/2023
7.2.96 125 11/2/2023
7.2.93 168 9/27/2023
7.2.92 132 9/27/2023
7.2.91 142 9/25/2023
7.2.90 124 9/25/2023
7.2.89 133 9/25/2023
7.2.88 132 9/25/2023
7.2.87 137 9/25/2023
7.2.86 115 9/21/2023
7.2.85 140 9/21/2023
7.2.83 105 9/21/2023
7.2.82 133 9/21/2023
7.2.81 140 9/20/2023
7.2.80 146 9/14/2023
7.2.79 123 9/13/2023
7.2.78 144 9/13/2023
7.2.76 172 9/11/2023
7.2.75 158 9/4/2023
7.2.74 121 9/1/2023
7.2.73 134 9/1/2023
7.2.69 151 8/29/2023
7.2.67 147 8/22/2023
7.2.65 153 8/4/2023
7.2.63 148 8/4/2023
7.2.61 170 8/3/2023
7.2.60 172 8/3/2023
7.2.54 159 8/2/2023
1.0.53 166 8/2/2023
1.0.50 141 8/2/2023
1.0.49 159 8/1/2023
1.0.48 169 8/1/2023
1.0.47 147 8/1/2023
1.0.46 165 8/1/2023
1.0.45 144 7/31/2023
1.0.44 150 7/28/2023
1.0.43 158 7/27/2023
1.0.42 161 7/27/2023
1.0.41 167 7/27/2023
1.0.40 137 7/27/2023
1.0.34 144 7/26/2023
1.0.21 158 7/25/2023
1.0.20 162 7/25/2023
1.0.19 169 7/25/2023
1.0.17 155 7/25/2023
1.0.16 151 7/25/2023
1.0.15 170 7/24/2023
1.0.14 157 7/21/2023
1.0.12 172 7/21/2023
1.0.11 149 7/21/2023
1.0.10 123 7/20/2023
1.0.9 183 7/20/2023
1.0.8 161 7/20/2023
1.0.6 179 7/20/2023
1.0.0 157 7/20/2023