MeshWeaver.Hosting.Orleans
2.5.0
dotnet add package MeshWeaver.Hosting.Orleans --version 2.5.0
NuGet\Install-Package MeshWeaver.Hosting.Orleans -Version 2.5.0
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="MeshWeaver.Hosting.Orleans" Version="2.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.Hosting.Orleans" Version="2.5.0" />
<PackageReference Include="MeshWeaver.Hosting.Orleans" />
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 MeshWeaver.Hosting.Orleans --version 2.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MeshWeaver.Hosting.Orleans, 2.5.0"
#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 MeshWeaver.Hosting.Orleans@2.5.0
#: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=MeshWeaver.Hosting.Orleans&version=2.5.0
#tool nuget:?package=MeshWeaver.Hosting.Orleans&version=2.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MeshWeaver.Hosting.Orleans
Overview
MeshWeaver.Hosting.Orleans provides a distributed hosting model for MeshWeaver using Microsoft Orleans. Each message hub is represented as a virtual actor (grain) in the Orleans cluster, enabling automatic distribution, scalability, and fault tolerance.
How It Works
- Each message hub is mapped to an Orleans grain
- Messages are dispatched through Orleans silos
- Grains are automatically distributed across the cluster
- Virtual actor model ensures hubs are always addressable
- Orleans handles activation/deactivation and placement of hubs
Usage
var builder = WebApplication.CreateBuilder(args);
// Configure Orleans cluster
builder.Host.UseOrleans(orleans =>
{
orleans.UseLocalhostClustering();
// Configure other Orleans options
});
// Configure MeshWeaver with Orleans hosting
builder.UseMeshWeaver(
new MeshAddress(),
config => config
.ConfigureWebPortal()
.ConfigurePortalMesh()
.UseOrleansMesh()
.ConfigureServices(services => services.AddArticles())
);
var app = builder.Build();
app.StartPortalApplication();
Features
- Distributed message processing
- Automatic scalability through Orleans clustering
- Fault tolerance and automatic recovery
- Virtual actor model for message hubs
- Transparent hub activation/deactivation
- Location transparency for message routing
Benefits
- Scalability: Automatically scales across multiple servers
- Reliability: Built-in fault tolerance through Orleans
- Persistence: Optional state persistence for hubs
- Distribution: Automatic workload distribution
- Recovery: Automatic failure recovery
Integration
- Built on MeshWeaver.Hosting
- Uses Microsoft Orleans for distribution
- Compatible with all mesh message patterns
See Also
- Orleans Documentation - Learn more about the Orleans virtual actor model
- Main MeshWeaver Documentation - More about MeshWeaver hosting options
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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.
-
net9.0
- Azure.Data.Tables (>= 12.11.0)
- MeshWeaver.Connection.Orleans (>= 2.5.0)
- MeshWeaver.Hosting (>= 2.5.0)
- MeshWeaver.Mesh.Contract (>= 2.5.0)
- MeshWeaver.Messaging.Hub (>= 2.5.0)
- MeshWeaver.ServiceProvider (>= 2.5.0)
- Microsoft.DotNet.Interactive.CSharp (>= 1.0.0-beta.25323.1)
- Microsoft.Orleans.Core (>= 9.2.1)
- Microsoft.Orleans.Runtime (>= 9.2.1)
- Microsoft.Orleans.Sdk (>= 9.2.1)
- Microsoft.Orleans.Server (>= 9.2.1)
- Microsoft.Orleans.Streaming (>= 9.2.1)
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 |
|---|---|---|
| 2.5.0 | 152 | 11/3/2025 |
| 2.4.0 | 142 | 10/2/2025 |
| 2.3.0 | 197 | 8/4/2025 |
| 2.2.0 | 489 | 7/21/2025 |
| 2.1.0 | 169 | 4/6/2025 |
| 2.0.3 | 498 | 3/24/2025 |
| 2.0.2 | 473 | 3/24/2025 |
| 2.0.1 | 121 | 3/21/2025 |
| 2.0.0 | 151 | 3/20/2025 |
| 2.0.0-preview3 | 93 | 2/28/2025 |
| 2.0.0-Preview2 | 94 | 2/10/2025 |
| 2.0.0-preview1 | 96 | 1/6/2025 |