Instant Messaging System with Targeted Media Feedback
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing Instant Messaging (IM) systems face inefficiencies in managing system resources and reducing occupied time due to the unnecessary propagation of media information to users, leading to high device memory and bandwidth usage.
Innovation Solution
An IM system and method that involves a first server and a second server, along with a database, to manage request and feedback messages between browser devices and media information pushing devices, ensuring only necessary information is sent by recording corresponding relationships and using AJAX polling for message management.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If media information is pushed to all users, then user coverage is improved, but system resource usage increases
Solution Approach 1:
The system pre-establishes corresponding relationships between browser device IDs, media information IDs, and request message IDs in a database before media information is pushed. This preliminary structuring of data relationships enables efficient targeted delivery without requiring system-wide broadcasting, thus improving user coverage while conserving system resources.
Solution Approach 2:
The system implements a feedback mechanism where browser devices send feedback messages to indicate whether they need the pushed media information. The server receives and processes these feedback messages, using the feedback to determine whether to continue pushing media information to specific devices. This feedback loop enables the system to adapt to actual user needs, improving coverage for interested users while avoiding waste on uninterested ones.
2Loss of information
If feedback messages are sent to all users, then information completeness is improved, but occupied system time increases
Solution Approach 1:
The system extracts and sends only the specific feedback messages that are actually needed by each browser device, rather than broadcasting all feedback messages to all users. By using the pre-established corresponding relationships to identify which users need which feedback, the system maintains information completeness for relevant users while dramatically reducing the time occupied by unnecessary message transmissions.
3Device complexity
If request messages are managed without structured relationships, then system complexity is reduced, but message tracking accuracy decreases
Solution Approach 1:
The system pre-establishes structured corresponding relationships between browser device IDs, media information IDs, and request message IDs in a database before media information pushing operations begin. This preliminary structuring enables accurate tracking of which users requested which media information without adding significant system complexity, as the relationships are stored in a straightforward database format that can be efficiently queried.
Data Source
AI summary
Embodiments of the present disclosure provide an IM system and method. The method includes: receiving and storing a request message from a browser device, which comprises a browser device ID and a media information ID, configuring a request message ID for the request message, recording a first corresponding relationship between the browser device ID, the media information ID and the request message ID; receiving a request message request from a media information pushing device, finding the request message according to the media information ID in the request message request, sending the request message to the media information pushing device; receiving and storing a feedback message obtained by the media information pushing device according to the request message, recording a second corresponding relationship between a feedback message ID and the request message ID; receiving a feedback message request from the browser device, finding the feedback message according to the browser device ID and sending the feedback message to the browser device.


