VOOZH about

URL: https://www.nuget.org/packages/Lakona.Game.Cluster.Rpc/

⇱ NuGet Gallery | Lakona.Game.Cluster.Rpc 0.2.0




Lakona.Game.Cluster.Rpc 0.2.0

dotnet add package Lakona.Game.Cluster.Rpc --version 0.2.0
 
 
NuGet\Install-Package Lakona.Game.Cluster.Rpc -Version 0.2.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="Lakona.Game.Cluster.Rpc" Version="0.2.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lakona.Game.Cluster.Rpc" Version="0.2.0" />
 
Directory.Packages.props
<PackageReference Include="Lakona.Game.Cluster.Rpc" />
 
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 Lakona.Game.Cluster.Rpc --version 0.2.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Lakona.Game.Cluster.Rpc, 0.2.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 Lakona.Game.Cluster.Rpc@0.2.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=Lakona.Game.Cluster.Rpc&version=0.2.0
 
Install as a Cake Addin
#tool nuget:?package=Lakona.Game.Cluster.Rpc&version=0.2.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Lakona.Game.Cluster.Rpc

Lakona.Game.Cluster.Rpc contains the Lakona.Rpc adapter layer for explicit Lakona.Game cluster node-to-node messaging, remote node-directory calls, and remote route-directory calls.

The package stays outside Lakona.Game.Cluster so core route contracts remain transport-neutral. It provides:

  • a Lakona.Rpc method contract for sending ClusterMessage envelopes between nodes
  • ClusterNodeMessenger, an INodeMessenger implementation backed by a Lakona.Rpc client factory
  • ClusterClientFactory, a reusable client cache over application-provided Lakona.Rpc transports
  • IClusterTransportFactory, the boundary where projects choose TCP, WebSocket, KCP, security, and endpoint policy
  • TcpClusterTransportFactory, a TCP transport factory for endpoint addresses such as tcp://127.0.0.1:20010
  • ClusterMessageBinder, a server-side binder that dispatches inbound cluster messages into an IClusterMessageHandler
  • NodeDirectoryClient, an INodeDirectory client backed by Lakona.Rpc calls
  • NodeDirectoryBinder, a server-side binder that exposes an application-provided INodeDirectory
  • RouteDirectoryClient, an IRouteDirectory client backed by Lakona.Rpc calls
  • RouteDirectoryBinder, a server-side binder that exposes an application-provided IRouteDirectory

It does not provide durable route directory storage, external platform discovery bindings, durable queues, gameplay DTOs, actor migration, or transparent remote actor clients. A route directory service can expose InMemoryRouteDirectory for smoke tests, or a project-owned durable implementation for production-specific policy.

Directory Hosting And Bootstrap

The shared node and route directories are ordinary node-local implementations exposed over the node's advertised cluster endpoint. A data node can own durable directory storage while gateway and battle nodes use Lakona:Cluster:Seeds to create remote directory clients.

Example data node that owns the shared directories and business features:

{
 "Lakona": {
 "Node": {
 "Id": "data-1"
 },
 "Feature": [ "database", "state-store", "matchmaking", "leaderboard" ],
 "Cluster": {
 "Endpoint": "tcp://10.0.0.1:21001",
 "Seeds": [ "tcp://10.0.0.1:21001" ]
 }
 }
}

Example gateway node with only endpoint-local client RPC exposure:

{
 "Lakona": {
 "Node": {
 "Id": "gateway-1"
 },
 "Feature": [],
 "Endpoints": [
 {
 "Transport": "websocket",
 "Host": "0.0.0.0",
 "Port": 20000,
 "Path": "/ws",
 "RpcServices": [ "login", "player" ]
 }
 ],
 "Cluster": {
 "Endpoint": "tcp://10.0.0.2:21002",
 "Seeds": [ "tcp://10.0.0.1:21001" ]
 }
 }
}

Feature declares cluster-discoverable node capability. RpcServices declares services exposed only on that client endpoint. Nodes that do not register a local INodeDirectory or IRouteDirectory use Lakona:Cluster:Seeds as the public bootstrap input and register themselves, client-session routes, and lease refreshes through the remote directory node.

Additional concrete transport factories should be added only with passing cross-process smoke tests. The package exposes IClusterTransportFactory so consuming projects can wire custom Lakona.Rpc transport policy while the package keeps the node messaging protocol and status mapping centralized.

Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 (1)

Showing the top 1 NuGet packages that depend on Lakona.Game.Cluster.Rpc:

Package Downloads
Lakona.Game.Server

Server-side actor runtime, RPC hosting helpers, session lifecycle, and reliable push infrastructure for Lakona.Game applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 114 6/17/2026