Message Order Preservation with Integration Messages
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The inconsistency between the sending and receiving sequences of messages in instant messaging applications due to varying processing times for different types of media content, such as text, images, and videos, affects user experience.
Innovation Solution
A message order-preserving method where a sending device determines if a previous message is not fully sent and encapsulates reference information with the next message, using a specified protocol, ensuring the receiving device displays messages in the correct sequence by either showing placeholders or delaying the display of subsequent messages until the previous ones are received.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of energy
If message content with large data volume (file, video, audio) is compressed and encrypted before transmission, then network traffic is saved and transmission security is ensured, but transmission time varies significantly for different message types and sizes, causing sending sequence to be inconsistent with receiving sequence
Solution Approach 1:
The sending device performs preliminary actions by determining whether previous messages are completely sent before transmitting the current message. It proactively checks the transmission status and prepares appropriate handling (such as adding identification information or adjusting transmission timing) in advance, preventing sequence inconsistency before it occurs. This preliminary check and preparation ensure that messages are received in the correct sequence while maintaining efficient transmission of compressed and encrypted content.
2Reliability
If different types of messages (text, image, video, file) are transmitted with varying processing times, then message content security is ensured through compression and encryption, but the sending sequence becomes inconsistent with the receiving sequence, affecting user experience
Solution Approach 1:
The system implements feedback mechanisms where the sending device continuously monitors the transmission status of previous messages and uses this information to control the transmission of subsequent messages. The receiving device also provides feedback by acknowledging message receipt, allowing the sending device to adjust its transmission strategy. This feedback loop ensures that security measures (compression and encryption) do not compromise user experience, as messages are received and displayed in the correct sequence.
3Productivity
If the terminal device performs compression and encryption processing on message content before transmission, then transmission security is improved and network efficiency is enhanced, but the transmission time for different message types varies, causing sequence inconsistency
Solution Approach 1:
Before transmitting compressed and encrypted message content, the sending device performs a preliminary check to determine whether previous messages have been completely transmitted. This preliminary action allows the system to maintain high network transmission efficiency through compression and encryption while preventing sequence inconsistency by adjusting transmission timing or adding identification information based on the check result.
Data Source
Figure 1
Figure 2(a)
Figure 2(b)
AI summary
A message order-preserving method, a readable medium, and an electronic device are provided. The method includes: A first electronic device generates a first message to be sent to a second electronic device, and starts to send the first message to the second electronic device. The first electronic device generates a second message to be sent to the second electronic device, and before sending the second message to the second electronic device, determines that sending of the first message is not completed. The first electronic device sends an integration message including the second message to the second electronic device. After receiving the integration message, the second electronic device displays the first message and the second message based on the integration message. Reference information of a message that is not sent completely and a to-be-sent message are sent together, and a sequence of displaying a message to a user on a receiving end is that a message that is sent first is displayed before a message that is sent later, so that the user perceives that a receiving sequence of the message is consistent with a sending sequence of the message, and this improves user experience.