Multi-Client Object Operation Ordering via Server Sequence Assignment
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In multi-client interaction scenarios, ensuring the order of operation behaviors on multiple terminals is challenging, leading to inconsistent object states and negatively impacting the interactive effect.
Innovation Solution
An operation method and apparatus that involve performing a first operation on an object by a first client in response to a preset event, and reporting an effective message to a server to trigger a notification message sent to the first client and at least one second client, ensuring consistent operation behaviors across terminals.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multi-client interaction is enabled without operation ordering, then client interaction capability is improved, but object state consistency deteriorates
Solution Approach 1:
The system performs preliminary actions by establishing operation ordering rules and sequence number assignment mechanisms before multi-client operations occur. The server pre-configures the framework for handling operations, ensuring that when multiple clients interact with the same object, their operations are automatically ordered and applied in a consistent sequence across all terminals, preventing state inconsistency while maintaining interaction flexibility
Solution Approach 2:
The system implements feedback mechanisms where the server monitors operation sequences from multiple clients, compares sequence numbers, and provides feedback by rejecting out-of-order operations or requesting retransmission. This feedback loop ensures that object state consistency is maintained by correcting any deviations from the established operation order, while still allowing clients to interact freely
2Stability of the object's composition
If operation ordering is enforced across multiple terminals, then object state consistency is improved, but system complexity increases
Solution Approach 1:
The server acts as an intermediary that centralizes the operation ordering logic. Instead of implementing complex ordering mechanisms in each client terminal, the server receives operations from multiple clients, assigns sequence numbers, determines the execution order, and distributes the ordered operations back to clients. This intermediary approach simplifies client-side implementation while maintaining strong consistency across all terminals
Solution Approach 2:
The server implements a universal operation ordering mechanism that handles multiple types of operations from multiple clients through a single standardized process. The same sequence number assignment and ordering logic applies regardless of which client initiates the operation or what type of operation it is, reducing system complexity by avoiding specialized handling for different scenarios
Data Source
AI summary
Embodiments of the disclosure disclose an operation method for an object, an operation apparatus for an object, an electronic device, and a storage medium, and the method is applied to a first client and includes: performing a first operation on a first object of the first client in response to a preset event; reporting an effective message to a server in response to the performing of the first operation taking effect, to trigger the server to generate a notification message, and trigger the notification message to be sent to the first client and at least one second client that is in real-time communication with the first client, to enable the at least one second client to perform the first operation on the first object; and in response to receiving the notification message, maintaining the first operation that has taken effect.


