Node Framework and Task Management
The Node Framework is designed to ensure seamless and autonomous operation of nodes within the decentralized network. It comprises multiple specialized components, each responsible for different aspects of node functionality.
Version Handler
The Version Handler periodically checks for updates to dApp versions. When a new version is detected, it automatically schedules the update process, replacing the outdated version. If a dApp version is deprecated, it is removed from the system, ensuring only active and verified versions are deployed on nodes.
Session Handler
The Session Handler is responsible for detecting new game sessions and managing their initialization. When a session request is received, the Session Handler checks if the required resources (CPU, RAM, and storage) are available. If resources are sufficient, it deploys the necessary game logic container and starts the session.
To optimize resource allocation, sessions are dynamically assigned to nodes based on real-time load balancing. This ensures that no single node is overwhelmed while keeping resource utilization efficient across the network.
Proof Handler
The Proof Handler plays a crucial role in verifying session outcomes. As game sessions progress, nodes generate proofs detailing session events and results. These proofs are collected and validated to confirm their integrity.
Once a session concludes, the Proof Handler ensures the generated proof is cryptographically signed and submitted to the network for validation. This allows for transparent and verifiable game outcomes, ensuring fairness and accountability across the system.
Timeout Handler
The Timeout Handler ensures that inactive or orphaned session containers are properly terminated. In cases where a session should end but fails to exit normally, the Timeout Handler enforces automatic cleanup to free up system resources. This prevents unnecessary congestion and ensures the network remains stable and efficient.
Task Execution and Worker Pool
To manage the execution of various node operations efficiently, the Node Framework includes a Worker Pool with a dynamic Task Queue. This mechanism allows the system to process high volumes of tasks concurrently while prioritizing critical operations.
Each task—such as verifying a new proof, initializing a game session, or handling an update request—is queued and executed based on priority levels. This ensures responsiveness and scalability, even under high network load conditions.
With this framework, nodes in the Alliance Games Multiplayer Network can operate autonomously with minimal manual intervention, creating a self-sustaining and resilient decentralized backend for multiplayer gaming.
Last updated