![]() |
VOOZH | about |
dotnet add package Lakona.Game.Cluster.Rpc --version 0.2.0
NuGet\Install-Package Lakona.Game.Cluster.Rpc -Version 0.2.0
<PackageReference Include="Lakona.Game.Cluster.Rpc" Version="0.2.0" />
<PackageVersion Include="Lakona.Game.Cluster.Rpc" Version="0.2.0" />Directory.Packages.props
<PackageReference Include="Lakona.Game.Cluster.Rpc" />Project file
paket add Lakona.Game.Cluster.Rpc --version 0.2.0
#r "nuget: Lakona.Game.Cluster.Rpc, 0.2.0"
#:package Lakona.Game.Cluster.Rpc@0.2.0
#addin nuget:?package=Lakona.Game.Cluster.Rpc&version=0.2.0Install as a Cake Addin
#tool nuget:?package=Lakona.Game.Cluster.Rpc&version=0.2.0Install as a Cake Tool
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:
ClusterMessage envelopes between nodesClusterNodeMessenger, an INodeMessenger implementation backed by a Lakona.Rpc client factoryClusterClientFactory, a reusable client cache over application-provided Lakona.Rpc transportsIClusterTransportFactory, the boundary where projects choose TCP, WebSocket, KCP, security, and endpoint policyTcpClusterTransportFactory, a TCP transport factory for endpoint addresses such as tcp://127.0.0.1:20010ClusterMessageBinder, a server-side binder that dispatches inbound cluster messages into an IClusterMessageHandlerNodeDirectoryClient, an INodeDirectory client backed by Lakona.Rpc callsNodeDirectoryBinder, a server-side binder that exposes an application-provided INodeDirectoryRouteDirectoryClient, an IRouteDirectory client backed by Lakona.Rpc callsRouteDirectoryBinder, a server-side binder that exposes an application-provided IRouteDirectoryIt 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.
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. |
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. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0 | 114 | 6/17/2026 |