MeshWeaver.Hosting.Orleans
2.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MeshWeaver.Hosting.Orleans --version 2.0.3
NuGet\Install-Package MeshWeaver.Hosting.Orleans -Version 2.0.3
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.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.Hosting.Orleans" Version="2.0.3" />
<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.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MeshWeaver.Hosting.Orleans, 2.0.3"
#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.
#addin nuget:?package=MeshWeaver.Hosting.Orleans&version=2.0.3
#tool nuget:?package=MeshWeaver.Hosting.Orleans&version=2.0.3
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Azure.Data.Tables (>= 12.10.0)
- MeshWeaver.Connection.Orleans (>= 2.0.3)
- MeshWeaver.Hosting (>= 2.0.3)
- MeshWeaver.Mesh.Contract (>= 2.0.3)
- MeshWeaver.Messaging.Hub (>= 2.0.3)
- MeshWeaver.ServiceProvider (>= 2.0.3)
- Microsoft.DotNet.Interactive.CSharp (>= 1.0.0-beta.25160.1)
- Microsoft.Orleans.Core (>= 9.1.2)
- Microsoft.Orleans.Runtime (>= 9.1.2)
- Microsoft.Orleans.Sdk (>= 9.1.2)
- Microsoft.Orleans.Server (>= 9.1.2)
- Microsoft.Orleans.Streaming (>= 9.1.2)
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.1.0 | 121 | 4/6/2025 |
2.0.3 | 451 | 3/24/2025 |
2.0.2 | 430 | 3/24/2025 |
2.0.1 | 81 | 3/21/2025 |
2.0.0 | 116 | 3/20/2025 |
2.0.0-preview3 | 56 | 2/28/2025 |
2.0.0-Preview2 | 61 | 2/10/2025 |
2.0.0-preview1 | 60 | 1/6/2025 |