Merchant Platform Real-Time Message Push via Long Connection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In traditional e-commerce systems, merchants may miss important notifications due to not refreshing their pages in a timely manner, leading to untimely receipt of system messages.
Innovation Solution
An information processing method and apparatus that sends an information request to a platform side at a preset time interval after login, receives system messages in real-time, and displays them on the merchant platform application, eliminating the need for repeated page refreshes and ensuring timely notification receipt.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the merchant manually refreshes the page to obtain system messages, then the merchant can receive notifications, but the merchant may miss important notifications if not refreshing in time
Solution Approach 1:
The system establishes a long connection before the merchant needs the message, proactively preparing the communication channel in advance. This allows the server to push messages immediately when they are generated, without waiting for the merchant to initiate a refresh request.
Solution Approach 2:
The system implements a feedback mechanism where the server actively monitors and pushes messages to the merchant's client. The long connection enables bidirectional communication, allowing the server to detect when messages need to be sent and automatically push them to the client, creating a closed-loop feedback system.
2Ease of operation
If the merchant fails to refresh the page for a long time, then the merchant can operate continuously without interruption, but the merchant side will not be able to obtain any system messages
Solution Approach 1:
The long connection maintains continuous communication between the server and client throughout the merchant's operation period. This continuous connection ensures that the communication channel remains open and active, allowing messages to be transmitted at any time without requiring periodic refreshes or reconnections.
Solution Approach 2:
The long connection acts as an intermediary mechanism that bridges the server and client. It enables the server to push messages through this intermediate channel, ensuring that information reaches the client even when the client is not actively requesting updates.
3Reliability
If the merchant manually refreshes the page frequently to ensure message receipt, then the merchant can receive timely notifications, but the operational efficiency decreases due to repeated refresh operations
Solution Approach 1:
The system implements self-service by automatically pushing messages from the server to the client without requiring manual intervention. The long connection enables the system to autonomously manage message delivery, eliminating the need for the merchant to perform refresh operations.
Solution Approach 2:
The long connection is established in advance, preparing the communication infrastructure before messages need to be delivered. This preliminary setup allows for immediate message push capability, removing the need for repeated refresh actions during operation.
Data Source
AI summary
Embodiments of the present disclosure provide an information processing method and apparatus, and a device, the method includes: sending an information request to a platform side at a preset time interval if it is determined that a merchant platform application has been logged in; receiving a system message sent by the platform side in response to the information request in real time, where the system message is sent by a service side to the platform side in real time; and displaying the system message and/or prompt information of the system message on the merchant platform application. This embodiment does not require the merchant to obtain a new system message by refreshing a page, avoiding a repeated refresh operation by the merchant and avoiding the merchant missing an important notification due to not being able to obtain the system message in time.


