Live Streaming Resource Allocation via Queue-State Synchronization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In live streaming rooms, resource object contention leads to high failure rates and poor user experience due to excessive burden on streamers for state maintenance and synchronization, disrupting the service process when the streamer side is abnormal.
Innovation Solution
A method and apparatus for allocating resource objects in live streaming rooms using synchronization data and local data to determine target users automatically, reducing backend burden and streamer involvement by maintaining state data and synchronization between primary and secondary nodes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If streamer side maintains state and handles resource allocation manually, then resource allocation can be controlled, but streamer-side burden increases and service process is disrupted when streamer is abnormal
Solution Approach 1:
The patent extracts the state maintenance and resource allocation functions from the streamer side and relocates them to the server side. The server independently manages resource object states, waiting queues, and allocation decisions, freeing the streamer from these burdens while ensuring service continuity even when streamer is unavailable.
Solution Approach 2:
The server acts as an intermediary between users and resource objects, managing the waiting queue and allocation logic centrally. This mediator approach allows automated resource allocation without requiring streamer intervention, improving reliability while reducing operational burden.
2Ease of operation
If automated allocation is implemented, then streamer burden is reduced, but complexity of state synchronization between primary and secondary nodes increases
Solution Approach 1:
The system segments data into synchronization data (stored on both primary and secondary nodes) and local data (stored only on primary node). This segmentation allows automated allocation while managing synchronization complexity by clearly defining what needs to be replicated and what can remain local.
Solution Approach 2:
The system performs preliminary actions by pre-synchronizing resource object state data to both primary and secondary nodes before allocation is needed. This ensures that when automated allocation occurs, both nodes have the necessary data, reducing real-time synchronization complexity.
3Reliability
If synchronization data is maintained on both primary and secondary nodes, then service availability is improved, but data storage requirements and synchronization overhead increase
Solution Approach 1:
The system applies local quality by storing different types of data differently: synchronization data (resource object states) is stored on both primary and secondary nodes for high availability, while local data (streamer-specific information) is stored only on the primary node, optimizing storage usage while maintaining service availability.
Data Source
AI summary
Provided is a method for allocating resource objects based on live streaming rooms. The method is applicable to a primary node on a server side, and includes: acquiring synchronization data and local data corresponding to a predetermined resource object in a target live streaming room, wherein the synchronization data is synchronously stored between the primary node and a secondary node, and includes a waiting queue of waiting users; and the local data is stored in the primary node, and includes second user data of an invited user; determining a target user based on a sequence of the waiting users in the waiting queue; acquiring a current state of the target user by comparing the synchronization data and the local data for the target user; and determining, based on the current state, whether to send an invitation for allocating the predetermined resource object to a target user side.


