Connection Management Device for WebSocket Relay Load Distribution
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In communication systems utilizing WebSocket connections, determining the optimal relay server for terminal devices to maintain efficient communication while avoiding load concentration and promptly detecting server faults is challenging, especially when dealing with a large number of concurrent connections and potential server failures.
Innovation Solution
A connection management device and method that includes a storage system for state information about relay servers, an update unit for regular and irregular updates, and a determination unit to select the most suitable relay server based on load conditions and connection numbers, allowing for dynamic re-routing in case of failures.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If multiple relay servers are provided to handle concurrent connections, then the system can support more terminal devices, but load concentration may occur on specific servers
Solution Approach 1:
The connection management device periodically acquires state information from relay servers including loaded conditions and terminal connection numbers, then uses this feedback to determine optimal connection destinations for new terminal devices, preventing load concentration
Solution Approach 2:
The system dynamically determines connection destinations based on real-time state information of relay servers, allowing the load distribution to adapt to changing conditions rather than using a fixed allocation strategy
2Loss of time
If state information is updated frequently to detect server faults promptly, then fault detection speed improves, but server load increases
Solution Approach 1:
The connection management device performs periodic acquisition of state information from relay servers at predetermined intervals, balancing the need for timely fault detection with the requirement to minimize server load by avoiding continuous monitoring
Data Source
AI summary
According to an embodiment, a connection management device is in a communication system in which relay devices are provided for relaying communication between two terminal devices associated with each other in advance. The connection management device determines the relay device with which each terminal device should establish connection. The connection management device includes a storage, an update unit, a request reception unit, and a determination unit. The storage stores state information including a loaded condition and/or terminal connection number for each relay device. The update unit updates the storage in accordance with a predetermined rule. The request reception unit receives, from any one of the terminal devices, a determination request of the relay device with which the terminal device should establish connection. The determination unit determines the relay device with which the terminal device making the determination request should establish connection, based on the state information stored in the storage.


