CN110311855A - User message processing method, device, electronic equipment and storage medium - Google Patents

User message processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110311855A
CN110311855A CN201910557165.1A CN201910557165A CN110311855A CN 110311855 A CN110311855 A CN 110311855A CN 201910557165 A CN201910557165 A CN 201910557165A CN 110311855 A CN110311855 A CN 110311855A
Authority
CN
China
Prior art keywords
message
user
record
list
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910557165.1A
Other languages
Chinese (zh)
Other versions
CN110311855B (en
Inventor
陈慕仪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN201910557165.1A priority Critical patent/CN110311855B/en
Publication of CN110311855A publication Critical patent/CN110311855A/en
Application granted granted Critical
Publication of CN110311855B publication Critical patent/CN110311855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/226Delivery according to priorities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Abstract

The invention discloses a kind of user message processing method, device, electronic equipment and storage mediums, this method comprises: receiving the message that the first user is sent to second user, the first user-association message transmission list, second user association messages receive list;Record is sent for message storage in message transmission list;Record is received for message storage in message sink list;Store message.It is able to use transmission list, list is received and stores caller information and recipient's information respectively, so that transmitting-receiving side's information of message stores to the greatest extent a data in the server, reduces redundant data.Server can originally store the memory space of redundant data, can be used in storing more data, improve resource utilization.

Description

User message processing method, device, electronic equipment and storage medium
Technical field
The present embodiments relate to data processing techniques more particularly to a kind of user message processing method, device, electronics to set Standby and storage medium.
Background technique
With the continuous increase of network flow, the traffic of user and other users is higher and higher.Network side needs to record The historical record of user, and user's intersection record is provided for user.
For the intersection record between user, the form for generalling use master list and standby list is stored.It is recorded in master list Caller information, sending time, the message content of transmission, recipient's information, receiving time etc..Standby list is as the standby of master list Part, it is stored with data content identical with master list.
When being stored by the way of master list and standby list, identical data is stored twice, and there are redundant datas, superfluous Remainder causes resource utilization poor according to occupying system resources.
Summary of the invention
The present invention provides a kind of user message processing method, device, electronic equipment and storage medium, to realize reduction redundancy Data improve resource utilization ratio.
In a first aspect, the embodiment of the invention provides a kind of user message processing methods, comprising:
The message that the first user is sent to second user, the first user-association message transmission list are received, second user is closed Join message sink list;
Record is sent for message storage in message transmission list;
Record is received for message storage in message sink list;
Store message.
Second aspect, the embodiment of the invention also provides a kind of user message processing methods, comprising:
The message request that client is sent is received, client is logged in the first user, and the first user-association message sends column Table;
In response to message request, the transmission record for message storage is searched in message transmission list;
If finding transmission record, determine that the second user for receiving message, second user are associated according to sending to record Message sink list;
The reception record for message storage is searched in message sink list;
If finding reception record, message is searched, client is sent a message to and is shown.
The third aspect, the embodiment of the invention also provides a kind of user message processing methods, comprising:
The message request that client is sent is received, client is logged in second user, and second user association messages receive column Table;
In response to message request, the reception record for message storage is searched in message sink list;
If finding reception record, the first user for sending message is determined according to receiving to record, the first user-association Message transmission list;
The transmission record for message storage is searched in message transmission list;
If finding transmission record, message is searched, client is sent a message to and is shown.
Fourth aspect, the embodiment of the invention also provides a kind of user message processing units, comprising:
Message reception module, the message for being sent to second user for receiving the first user, the first user-association message hair List is sent, second user association messages receive list;
Record storage module is sent, for sending record for message storage in message transmission list;
Record storage module is received, for receiving record for message storage in message sink list;
Message storage module, for storing message.
5th aspect, the embodiment of the invention also provides a kind of user message processing units, comprising:
First message request receiving module, for receiving the message request of client transmission, client is logged in the first use Family, the first user-association message transmission list;
First sends record search module, for searching in message transmission list and disappearing for one in response to message request The transmission record of breath storage;
Second user determining module determines according to sending to record if sending record for finding and receives the of message Two users, the associated message sink list of second user;
First receives record search module, for searching the reception record for message storage in message sink list;
First message searching module, if for find receive record, search message, send a message to client into Row display.
6th aspect, the embodiment of the invention also provides a kind of user message processing units, comprising:
Second message request receiving module, for receiving the message request of client transmission, client is logged in the second use Family, second user association messages receive list;
Second receives record search module, for searching in message sink list and disappearing for one in response to message request The reception record of breath storage;
First user's determining module determines according to receiving to record if receiving record for finding and sends the of message One user, the message transmission list of the first user-association;
Second sends record search module, for searching the transmission record for message storage in message transmission list;
Second message searching module, if for find send record, search message, send a message to client into Row display.
7th aspect the embodiment of the invention also provides a kind of electronic equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, realizes when processor executes program and used as shown in first aspect Family message treatment method.
Eighth aspect the embodiment of the invention also provides a kind of electronic equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, realizes when processor executes program and used as shown in second aspect Family message treatment method.
9th aspect the embodiment of the invention also provides a kind of electronic equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, realizes when processor executes program and used as shown in the third aspect Family message treatment method.
Tenth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the user message processing method as shown in first aspect when the program is executed by processor.
Tenth on the one hand, and the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with calculating Machine program realizes the user message processing method as shown in second aspect when the program is executed by processor.
12nd aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with calculating Machine program realizes the user message processing method as shown in the third aspect when program is executed by processor.
User message processing scheme provided in an embodiment of the present invention, server can be sent to second receiving the first user When the message of user, record is sent for message storage in the message transmission list of the first user-association, is closed in second user Record is received for message storage in the message sink list of connection, and stores the message.Server only stores hair in transmission list Record is sent, only storage receives record in receiving list, and stores message, realizes and only stores a message.Relative to using master The mode of list and standby list is able to use transmission list, receives list and store caller information and recipient's information respectively, makes The transmitting-receiving side's information for obtaining message stores to the greatest extent a data in the server, reduces redundant data.Server can originally store superfluous The memory space of remainder evidence can be used in storing more data, improve resource utilization.
Detailed description of the invention
Fig. 1 is the applicable system authority schematic diagram of the embodiment of the present invention;
Fig. 2 is the flow diagram of one of embodiment of the present invention user message processing method;
Fig. 3 is the flow diagram of another user message processing method in the embodiment of the present invention;
Fig. 4 is the flow diagram of another user message processing method in the embodiment of the present invention;
Fig. 5 is the flow diagram of another user message processing method in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of one of embodiment of the present invention user message processing unit;
Fig. 7 is the structural schematic diagram of another user message processing unit in the embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another user message processing unit in the embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the electronic equipment in the embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Fig. 1 is the system architecture scene that uses of the embodiment of the present invention, and access is by more terminals in network, wherein first terminal 001 is logged in the first user, and second terminal 002 is logged in second user.Optionally, in first terminal 001 and second terminal 002 It is mounted on live streaming application, the first user starts the live streaming application in first terminal 001, logs in the first user in live streaming application Login account, second user start second terminal 002 in live streaming application, live streaming application in log in second user login Account.Optionally, it is mounted on the accessible browser that platform is broadcast live in first terminal 001 and second terminal 002, first uses Family starts the browser in first terminal 001 and accesses live streaming platform, logs in the login account of the first user in live streaming platform;The Two users start the browser in second terminal 002 and access live streaming platform, log in the login account of second user in live streaming platform Number.When first user sends message to second user, server 003 receives the message, and server 003 deposits the message Storage.First user or second user can inquire the message recorded from server by sending message request to server.
First user can initiate invitation message to second user.The invitation of initiation include: live streaming access business invite or Game interaction business is invited.First user can also carry out instant messaging service with second user.
For access business is broadcast live and invites, the first user initiates live streaming access business to second user and invites, for the One user invites second user to be broadcast live access to the first user.At this point, second user can receive to the first Client-initiated Access business is broadcast live to invite.Server stores live streaming access business and invites.Later, the first user can initiate straight to server The message request for broadcasting the invitation of access business is recorded and is invited for inquiring invitation relevant to the first user in live streaming access business It please record.
Game interaction business is invited invites second user to participate in game together with the first user for the first user.First uses Family can send game interaction business to second user and invite, at this point, second user can receive to the first Client-initiated game Interactive service is invited.Server stores game interaction business invitation.Later, the first user can initiate game mutually to server The message request of dynamic business invitation, for inquiring invitation record relevant to the first user in game interaction business and being invited to remember Record.
First user can also carry out instant messaging with second user.Instant messaging is sent to second user in the first user During message or second user send instant communication message to the first user, server records the first user and uses with second The instant communication message sent between family.Instant communication message includes text formatting, audio format or video format.
Fig. 2 is a kind of flow chart of user message processing method provided in an embodiment of the present invention, is suitable for multiple users Between the message that sends the case where being stored, this method is applied to server, comprising:
Step 110 receives the message that the first user is sent to second user.
Wherein, the first user-association message transmission list, second user association messages receive list.
Each user-association has transmission list and receives list.The embodiment of the present invention is carried out with the angle for once sending message Description.For the same user, in the same business scenario, such as instant messaging, game interaction, it can be used as One user sends message, correspondingly, can also be used as second user, receives message.
The first user can be obtained by direct broadcast server and be sent to the message of second user, can also from the first user to When second user sends message, server is sent the message to, then the message store and this disappears by server Breath is sent to second user.The message includes live streaming access business, game interaction business or Instant Messenger shown in above-described embodiment The message of communication service.
In the server, for each user transmission list associated with it and list can be received.For example, the first user is closed It is associated with the reception list of transmission list and the first user-association.Transmission list is used to record the characteristic information of the first user sending. The reception list of first user-association is for recording the received the characteristic information of the first user.Similarly, second user is associated with reception List and the associated transmission list of second user.List is received for recording the received the characteristic information of second user.Second user Associated transmission list is used to record the characteristic information of second user transmission.The characteristic information may include: that message sends and (or connects Receive) timestamp and peer user mark etc., wherein timestamp can be used for the sequence of message.
During the first user sends message to second user, the list being related to is that the transmission of the first user-association arranges Table and the associated reception list of second user.Similarly, during second user sends message to the first user, the column that are related to Table is the reception list of the associated transmission list of second user and the first user-association.First user can be a message transmission In sender, can also be with the recipient in another message transmitting procedure.For the convenience of description, the embodiment of the present invention is only with One user is illustrated for sending message to second user.
Step 120 is directed to message storage transmission record in message transmission list.
It is recorded in message transmission list comprising multiple transmissions.Each transmission records a corresponding message.Record is sent to be used for It indicates to have sent certain message to certain user.The user can indicate by the user identifier of second user, and sending in record can be with The mark for only recording message, does not record message body content.Message body content separate storage, can be by the mark of message from only The body matter of message is searched in vertical memory space.And then message transmission list being capable of more lightweight.
Optionally, step 120 can also be implemented by following manner: determine the number of message;Determine second user User identifier;It is recorded using the transmission of the number of message, the user identifier of second user as message, is stored in message and sends column In table.
The number of message can be a kind of implementation of the mark of message.For message arrangement number, closed in the first user In the message transmission list of connection, is formed according to the temporal characteristics of second user feature, the number and message and send record.In turn Message that certain number when is had sent to certain user be recorded in.It is compiled it should be noted that being sent in record in the embodiment of the present application Number for key value as source body, uniquely corresponding source body can be found by a number.The number can Think the serial number of serial number, or the number generated according to preset algorithm.Wherein, serial number can for since 0, The integer sequence successively increased, such as " 0 ", " 1 ", " 2 ", " 3 " ... " N ", N are the end integer of ascending sequence, and server is to connect The message arrangement received is numbered accordingly.Preset algorithm is see following embodiments.
It being recorded using the transmission of the number of message, the user identifier of second user as message, transmission record illustrates, the One user has sent certain message of the number that number is message to second user.
Further, for the feature of more accurate record message, the time of message can be increased in sending record Stamp.The timestamp may be embodied in number, can also send record in increase a recording parameters, with record message when Between stab.
If the logging timestamp in a manner of increasing recording parameters, with the number of message, the user identifier of second user and The timestamp of message is recorded as the transmission of message.Timestamp is the timestamp for the transmission message that the first user records.If the time Stamp is included in number, can be using timestamp as main fields, and is aided with random number (or ordered numbers) as subsidiary field, composition The number of message.
The above-mentioned preset algorithm for generating number can be with are as follows: firstly, the timestamp of determination message, Platform Type information, Service type information, numbering type mark, random string, timestamp is for determining that transmission is recorded in message transmission list Sequence receives the sequence being recorded in message sink list.Then, by the timestamp of message, Platform Type information, business Type information, numbering type mark, random string group are combined into the number of message.
The time granularity of the timestamp of message can be as accurate as minute and also can be as accurate as the second.Platform class type information is used for Indicate that the first user issues platform used in message.Platform includes the live streaming platform or audio and video playing platform of different brands Deng.For service type information for indicating the message from which kind of business, type of service includes live streaming access business, game interaction Business or instant messaging business.The number that numbering type mark is used to identify generation belongs to be generated according to multiple features of message Number, and can be described as from increase ID marker.Random string is for distinguishing same time, the same platform, same service class Multiple message that type generates.
In one implementation, coding is made of 32 character strings, and character string is made of the linking of multiple fields.Specifically , the number of message successively includes following fields, and 1-14 fields for timestamp, 15-16 are Platform Type information Field, 17-19 be service type information field, 20 for numbering type mark fields, 21-32 are random The field of character string.
Step 130 is directed to message storage reception record in message sink list.
It is recorded in message sink list comprising multiple receptions.Each reception records a corresponding message.Record is received to be used for It indicates to have received certain message to certain user.The user can indicate by the user identifier of the first user, and receiving in record can be with The mark for only recording message, does not record message body content.Message body content separate storage, can be by the mark of message from only The body matter of message is searched in vertical memory space.And then message transmission list being capable of more lightweight.
It should be noted that step 120 does not connect for storing transmission record, step 130 for storing in inventive embodiments Record, step 140 are received for storing source body.The execution sequence of above three step is in no particular order.It illustratively, can be by It is executed according to the sequence of step 120, step 130, step 140.It can also be held according to the sequence of step 130, step 120, step 140 Row.It can also be executed according to the sequence of step 140, step 130, step 120.Step 120, step 130 and step 140 include It is stored according to the number of message.After the number for generating message in the step of first carrying out (such as step 120 first carries out), rear The step of execution (executing after such as step 130 and step 140), directly reads the number of the message generated the step of first carrying out, Without repeatedly generating the number of message.
Optionally, step 120 can also be implemented by following manner: it is optional, determine the number of message;Determine The user identifier of one user;It is recorded using the reception of the number of message, the user identifier of the first user as message, is stored in message It receives in list, wherein the sequence that timestamp is recorded in message sink list for determining reception.
The number of message can be a kind of implementation of the mark of message.For message arrangement number, closed in second user In the message sink list of connection, is formed according to the temporal characteristics of the first user characteristics, the number and message and receive record.In turn The message for when having received certain number of certain user transmission be recorded in.It should be noted that receiving record in the embodiment of the present application Middle number can find unique corresponding source body for the key value as source body, by a number.Step Number used in 130 and number used in step 120 are the same number, can refer to the description in step 120 to number, It does not repeat them here at this time.
It being recorded using the reception of the number of message, the user identifier of the first user as message, reception record illustrates, the Two users receive certain message of the number that the number that the first user sends is message.
Further, for the feature of more accurate record message, the time of message can be increased in receiving record Stamp.The timestamp may be embodied in number, can also receive record in increase a recording parameters, with record message when Between stab.
If the logging timestamp in a manner of increasing recording parameters, with the number of message, the user identifier of the first user and The timestamp of message is recorded as the reception of message.Timestamp is the timestamp for the transmission message that the first user records.It needs Bright, the corresponding timestamp of a piece of news is unique in the server, and the first user can be sent to the time of the message As timestamp, second user can also be received to the time of the message as timestamp.Either-or uses, and guarantees to send Identical timestamp is used to same message in record and reception record.The concrete form of timestamp can refer to step To the explanation of timestamp in 120, it is not repeated herein.
Step 140, storage message.
Server is also opened up in addition to corresponding to different types of service provided with transmission list for each user and receiving list Independent memory space is used to store the body matter of message.The body matter phase not to the utmost of its storage of different types of message Together, too numerous to enumerate.The parameters that message includes can be stored according to the displaying demand of data.When creation for example including message Between, pricing information, quantity information etc..
User message processing method provided in an embodiment of the present invention, server can be sent to second receiving the first user When the message of user, record is sent for message storage in the message transmission list of the first user-association, is closed in second user Record is received for message storage in the message sink list of connection, and stores the message.Server only stores hair in transmission list Record is sent, only storage receives record in receiving list, and stores message, realizes and only stores a message.Relative to using master The mode of list and standby list is able to use transmission list, receives list and store caller information and recipient's information respectively, makes The transmitting-receiving side's information for obtaining message stores to the greatest extent a data in the server, reduces redundant data.Server can originally store superfluous The memory space of remainder evidence can be used in storing more data, improve resource utilization.
Fig. 3 is a kind of user message processing method provided in an embodiment of the present invention, as to the further of above-described embodiment Illustrate, it in embodiments of the present invention, can be with respectively include:
Step 210 receives the message that the first user is sent to second user.
Type of service belonging to message is obtained, type of service includes live streaming access business, game interaction business or Instant Messenger News business
Step 220, the first user-association and belong to type of service message transmission list in, for message store Send record.
Server constructs different processing modules for different types of service, and processing module is used for associated business The message of type is stored.It is two lists of each user's O&M, respectively transmission list and reception in each processing module List.Type of service includes that live streaming access business is invited, game interaction business is invited or instant messaging service.
After receiving the first user and being sent to the message of second user, the first user-association and belong to type of service Transmission list in.
It is step 230, associated in second user and belong in the message sink list of type of service, it is stored for message Receive record.
In the processing module of message, the associated message sink list of second user is found, stores and receives for message Record.
Step 240, storage message.
User message processing method provided in an embodiment of the present invention can be based on business on the basis of the above embodiments The multiple processing modules of type configuration, the transmission list of each processing module difference O&M user and reception list, and then avoid not The problems such as maintenance risk occurred when the list same with business cross-reference is high and data access speed is slow improves message and deposits The reliability and storage efficiency of storage.
Fig. 4 is the flow diagram of user message processing method provided in an embodiment of the present invention, and this method is applied to service Device responds the message request that the first user sends suitable for server, sends and record to the first user feedback, comprising:
Step 310 receives the message request that client is sent, and client is logged in the first user, and the first user-association disappears Cease transmission list.
After first user logs on to client, message request can be sent to server.Message request is used for server Request sends the issued message of the first user.What issued message can issue in a type of service for the first user Entire message.Further, message request may include service type information, timestamp and target object information.Service class Type information indicates request in some type of service, and the transmission of the first user records.Timestamp indicates to request in the period Message Record.Target object information indicates that request is searched between the first user and target object (one or more second users) Message.
Step 320, in response to message request, the transmission record for message storage is searched in message transmission list.
After receiving message request, the transmission list of the first user-association is read.Read the hair stored in transmission list Send record.According to the parameter carried in message request in the transmission list for determining different service types.And the root in transmission list Record is sent according to timestamp and target object information screening.
If step 330 finds transmission record, the second user for receiving message is determined according to sending to record, second uses The associated message sink list in family.
Send user identifier of the record comprising receiving message.The transmission record for meeting search criterion is found, according to transmission The user identifier that record is recorded determines second user.It reads to send and records recorded user identifier;Determine user identifier institute table The user shown is the second user for receiving the message.
Step 340 searches the reception record stored for message in message sink list.
The associated message sink list of second user is searched, the transmission is searched in messaging list and records corresponding reception note Record.When the reception list of the transmission list of the first user and second user has message corresponding transmitting-receiving record, the is determined Two users have received the message of the first user transmission.
Optionally, the number for sending the message in record is obtained;The number comprising message is searched in message sink list Reception record.
When searching the reception record for sending record pairing, can according to sending the number of message recorded in record, The reception record where the number of the message is searched in message sink list, and then is realized and fast and accurately searched.
Further, it after the reception record for message storage is searched in step 340, message sink list, also wraps It includes:
If not finding reception record or not finding message, forbid sending a message to client being shown.
Assuming that storage order is that storage sends record, storage receives record, storage message when storing to message. It can then be searched according to the number of message and receive record.If finding reception record, continue to search in independent memory space Whether the number matched message body content of the message is stored with.If not searching the body matter of message, illustrate to service Device occurs abnormal when storing source body.If not finding the reception record of the number comprising message, illustrate second There is exception or server and exception occurs when write-in receives record into message sink list in user when receiving message, Lead to that the message is not present in message sink list.Forbid sending the message to the first user at this time, and then guarantee sender (the One user) Message Record that is inquired with recipient's (second user) is consistent.
If step 350 finds reception record, message is searched, client is sent a message to and is shown.
If finding reception record, reception is searched in independent memory space and records associated message.Message is sent out It send to client and is shown.
Optionally, message is searched, comprising: obtain the number for sending record or receiving the message in record;According to message Number searches message.
Using message number can accurate localization message, therefore can be read to send record or receive and be recorded in record The number of message.Using the number of message, message body content is searched in independent memory space, and message body content is sent out It send to client.
It should be noted that for the message of instant messaging, after the first user requests to server-initiated messages, server The message and the received message of the first user of the first user transmission will be inquired.And the message and first for sending the first user The received message of user is sent to the client of the first user.
Further, data can be verified by asynchronous thread.Wherein, data include transmission list, receive column The source body of table and independent memory space storage.Verification is for verifying above-mentioned three's compossibility.If it exists it is a kind of certain A record for lacking certain message, it is determined that unqualified to verify.If there is certain message in three, it is determined that verification is qualified.If not By verification, then it is considered as dirty data.Server clears up dirty data, recycles available resources.The mode of asynchronous process is not Influence the processing speed of remote procedure call (Remote Procedure Call, rpc) interface of server and user client communication Degree.
User message processing method provided in an embodiment of the present invention can receive the message request of client transmission;Response In message request, the transmission record for message storage is searched in message transmission list;If finding transmission record, root The second user for receiving message is determined according to sending to record;It searches in the associated message sink list of second user and is deposited for message The reception of storage records;If finding reception record, message is searched, client is sent a message to and is shown.If with Family sends or receives the stage, and client or server are abnormal, then will appear and send record, receive record and source body Query result mismatches, that is, occurs that one or two of above-mentioned three can not be found, and then determine that storage is abnormal, prohibit at this time Only message is sent to client.Only in the presence of three is equal, message is sent to client, and then realize historical record inquiry Consistency.Server is not necessarily to rush just and rollback list dirty data, and then improves the performance of information query interface, so that The message that the initiator and recipient of message inquire is consistent.
Fig. 5 is the flow diagram of user message processing method provided in an embodiment of the present invention, and this method is applied to service Device is recorded suitable for the message request that server response second user is sent to second user feedback reception, comprising:
Step 410 receives the message request that client is sent, and client is logged in second user, and second user association disappears Breath receives list.
After second user logs on to client, message request can be sent to server.Message request is used for server Request sends the received message of second user.What received message can issue in a type of service for second user Entire message.Further, message request may include service type information, timestamp and target object information.Service class Type information indicates request in some type of service, and the transmission of the first user records.Timestamp indicates to request in the period Message Record.Target object information indicates that request is searched between second user and target object (one or more first users) Message.
Step 420, in response to message request, the reception record for message storage is searched in message sink list.
After receiving message request, the associated reception list of second user is read.What is stored in reading reception list connects Receive record.According to the parameter carried in message request in the reception list for determining different service types.And the root in receiving list Record is received according to timestamp and target object information screening.
If step 430 finds reception record, the first user for sending message is determined according to receiving to record, first uses The associated message transmission list in family.
Receive user identifier of the record comprising receiving message.The reception record for meeting search criterion is found, according to reception The user identifier that record is recorded determines the first user.It reads to receive and records recorded user identifier;Determine user identifier institute table The user shown is the first user for sending the message.
Step 440 searches the transmission record stored for message in message transmission list.
The message transmission list for searching the first user-association searches the reception in messaging list and records corresponding transmission note Record.When the transmission list of the reception list of second user and the first user has message corresponding transmitting-receiving record, the is determined Two users have received the message of the first user transmission.
Optionally, the number for receiving the message in record is obtained;The number comprising message is searched in message transmission list Transmission record.
When searching the transmission record for receiving record pairing, can according to receiving the number of message recorded in record, The transmission record where the number of the message is searched in message transmission list, and then is realized and fast and accurately searched.
Further, it after step 440, the transmission record that lookup is stored for message in message transmission list, also wraps It includes:
If not finding transmission record or not finding message, forbid sending a message to client being shown.
Assuming that storage order is that storage sends record, storage receives record, storage message when storing to message, Message is then searched, if not finding message, forbids sending a message to client being shown.
Assuming that storage order is that storage receives record, storage sends record, storage message when storing to message. It can then be searched according to the number of message and send record.If finding transmission record, continue to search in independent memory space Whether the number matched message body content of the message is stored with.If not searching the body matter of message, illustrate to service Device occurs abnormal when storing source body.If not finding the reception record of the number comprising message, illustrate server There is exception when write-in sends record into message transmission list, leads to that the message is not present in message transmission list.This When forbid sending the message to second user, and then guarantee sender (the first user) inquired with recipient's (second user) Message Record be consistent.
If step 450 finds transmission record, message is searched, client is sent a message to and is shown.
If finding transmission record, transmission is searched in independent memory space and records associated message.Message is sent out It send to client and is shown.
Optionally, message is searched, comprising: obtain the number for sending record or receiving the message in record;According to message Number searches message.
Using message number can accurate localization message, therefore can be read to receive record or send in record and record The number of message.Using the number of message, message body content is searched in independent memory space, and message body content is sent out It send to client.
User message processing method provided in an embodiment of the present invention can receive second user and be disappeared by what client was sent Breath request;In response to message request, the reception for message storage is searched in the associated message sink list of second user Record;If finding reception record, the first user for sending message is determined according to receiving to record;It is looked into message transmission list Look for the transmission record for message storage;If finding transmission record, message is searched, client is sent a message to and is shown Show.If sending or receiving the stage in user, client or server are abnormal, then will appear transmission record, receive record It is mismatched with the query result of source body, that is, occurs that one or two of above-mentioned three can not be found, and then determination is deposited Storage is abnormal, forbids sending message to client at this time.Only in the presence of three is equal, message is sent to client, and then realize The consistency of historical record inquiry.
Fig. 6 is a kind of modular structure schematic diagram of user message processing unit provided in an embodiment of the present invention.Such as Fig. 6 institute Show, which is applied to server, comprising: message reception module 41 sends record storage module 42, receives record storage module 43 and message storage module 44.
Message reception module 41, the message for being sent to second user for receiving the first user, the first user-association message Transmission list, second user association messages receive list;
Record storage module 42 is sent, for sending record for message storage in message transmission list;
Record storage module 43 is received, for receiving record for message storage in message sink list;
Message storage module 44, for storing message.
On the basis of the various embodiments described above, sends record storage module 42 and is used for:
Determine the number of message;
Determine the user identifier of second user;
It is recorded using the transmission of the number of message, the user identifier of second user as message, is stored in message transmission list In.
On the basis of the various embodiments described above, receives record storage module 43 and is used for:
Determine the number of message;
Determine the user identifier of the first user;
It is recorded using the reception of the number of message, the user identifier of the first user as message, is stored in message sink list In.
On the basis of the various embodiments described above, receives record storage module 43 and is used for:
Determine timestamp, the Platform Type information, service type information, numbering type mark, random string of message, when Between stamp for determining that the sequence that is recorded in message transmission list of transmission or reception are recorded in the sequence in message sink list;
By the timestamp of message, Platform Type information, service type information, numbering type mark, random string combination For the number of message.
On the basis of the various embodiments described above, the number of message successively includes following fields, and 1-14 are timestamp Field, 15-16 fields for Platform Type information, 17-19 fields for service type information, 20 are number class The field of type mark, 21-32 fields for random string.
It further include that type of service obtains module, for obtaining business belonging to message on the basis of the various embodiments described above Type, type of service include live streaming access business, game interaction business or instant messaging business;
Record storage module 42 is sent to be used for: the first user-association and the message transmission list that belongs to type of service In, it is stored for message and sends record;
It receives record storage module 43 to be used for: message sink list that is associated in second user and belonging to type of service In, it is stored for message and receives record.
User message processing unit provided in an embodiment of the present invention, server can be received in message reception module 41 When first user is sent to the message of second user, record storage module 42 is sent in the message transmission list of the first user-association In for message storage send record, receive record storage module 43 in the associated message sink list of second user for disappearing Breath storage receives record, and message storage module 44 stores the message.Server only stores transmission record in transmission list, is receiving Only storage receives record in list, and stores message, realizes and only stores a message.Relative to using master list and standby list Mode, be able to use transmission list, receive list store caller information and recipient's information respectively so that the transmitting-receiving side of message Information stores to the greatest extent a data in the server, reduces redundant data.The storage that server can originally store redundant data is empty Between, it can be used in storing more data, improve resource utilization.
Fig. 7 is a kind of modular structure schematic diagram of user message processing unit provided in an embodiment of the present invention.Such as Fig. 7 institute Show, which is applied to server, comprising: first message request receiving module 51, first sends record search module 52, second User's determining module 53, first receives record search module 54 and first message searching module 55.
First message request receiving module 51, for receiving the message request of client transmission, client is logged in first User, the first user-association message transmission list;
First sends record search module 52, for searching in message transmission list and being directed to one in response to message request The transmission record of message storage;
Second user determining module 53 determines according to transmission record if sending record for finding and receives message Second user, the associated message sink list of second user;
First receives record search module 54, for searching the reception note for message storage in message sink list Record;
First message searching module 55 searches message, sends a message to client if receiving record for finding It is shown.
On the basis of the various embodiments described above, second user determining module 53 is used for:
It reads to send and records recorded user identifier;
Determine that user represented by user identifier is the second user for receiving the message.
On the basis of the various embodiments described above, the first reception record search module 54 is used for:
Obtain the number for sending the message in record;
The reception record of the number comprising message is searched in message sink list.
On the basis of the various embodiments described above, first message searching module 55 is used for:
Obtain the number for sending record or receiving the message in record;
Message is searched according to the number of message.
On the basis of the various embodiments described above, further includes message disabled module, is used for:
If not finding reception record or not finding message, forbid sending a message to client being shown.
User message processing unit provided in an embodiment of the present invention can receive the message request of client transmission;Response In message request, the transmission record for message storage is searched in message transmission list;If finding transmission record, root The second user for receiving message is determined according to sending to record;It searches in the associated message sink list of second user and is deposited for message The reception of storage records;If finding reception record, message is searched, client is sent a message to and is shown.If with Family sends or receives the stage, and client or server are abnormal, then will appear and send record, receive record and source body Query result mismatches, that is, occurs that one or two of above-mentioned three can not be found, and then determine that storage is abnormal, prohibit at this time Only message is sent to client.Only in the presence of three is equal, message is sent to client, and then realize historical record inquiry Consistency.Server is not necessarily to rush just and rollback list dirty data, and then improves the performance of information query interface, so that The message that the initiator and recipient of message inquire is consistent.
Fig. 8 is a kind of modular structure schematic diagram of user message processing unit provided in an embodiment of the present invention.Such as Fig. 8 institute Show, which is applied to server, comprising: second message request receiving module 61, second receives record search module 62, first User's determining module 63, second sends record search module 64 and second message searching module 65.
Second message request receiving module 61, for receiving the message request of client transmission, client is logged in second User, second user association messages receive list;
Second receives record search module 62, for searching in message sink list and being directed to one in response to message request The reception record of message storage;
First user's determining module 63 determines according to reception record if receiving record for finding and sends message First user, the message transmission list of the first user-association;
Second sends record search module 64, for searching the transmission note for message storage in message transmission list Record;
Second message searching module 65 searches message, sends a message to client if sending record for finding It is shown.
On the basis of the various embodiments described above, first user's determining module 63 is used for:
It reads to receive and records recorded user identifier;
Determine that user represented by user identifier is the second user for sending the message.
On the basis of the various embodiments described above, it is used in the second transmission record search module 64:
Obtain the number for receiving the message in record;
The transmission record of the number comprising message is searched in message transmission list.
It further include disabled module on the basis of the various embodiments described above, if recording or not searching for not finding to send To message, then forbid sending a message to client being shown.
User message processing unit provided in an embodiment of the present invention can receive second user and be disappeared by what client was sent Breath request;In response to message request, the reception for message storage is searched in the associated message sink list of second user Record;If finding reception record, the first user for sending message is determined according to receiving to record;It is looked into message transmission list Look for the transmission record for message storage;If finding transmission record, message is searched, client is sent a message to and is shown Show.If sending or receiving the stage in user, client or server are abnormal, then will appear transmission record, receive record It is mismatched with the query result of source body, that is, occurs that one or two of above-mentioned three can not be found, and then determination is deposited Storage is abnormal, forbids sending message to client at this time.Only in the presence of three is equal, message is sent to client, and then realize The consistency of historical record inquiry.
Method provided by the executable aforementioned all embodiments of the present invention of above-mentioned apparatus, it is corresponding to have the execution above method Functional module and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the aforementioned all implementations of the present invention Method provided by example.It is worth noting that, in the embodiment of above-mentioned user message processing unit, included each unit and Module is only divided according to the functional logic, but is not limited to the above division, as long as corresponding functions can be realized ?;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection being not intended to restrict the invention Range.
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention, as shown in figure 9, the computer is set Standby includes processor 70, memory 71, input unit 72 and output device 73;The quantity of processor 70 can be in computer equipment Be it is one or more, in Fig. 9 by taking a processor 70 as an example;Processor 70, memory 71, input unit in computer equipment 72 can be connected with output device 73 by bus or other modes, in Fig. 9 for being connected by bus.
Memory 71 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, such as the corresponding program instruction/module of user message processing method in the embodiment of the present invention.Processor 70 passes through Software program, instruction and the module being stored in memory 71 are run, thereby executing the various function application of computer equipment And data processing, that is, realize above-mentioned user message processing method.
Optionally, which can be server, this method comprises:
The message that the first user is sent to second user, the first user-association message transmission list are received, second user is closed Join message sink list;
Record is sent for message storage in message transmission list;
Record is received for message storage in message sink list;
Store message.
Further, record is sent for message storage in message transmission list, comprising:
Determine the number of message;
Determine the user identifier of second user;
It is recorded using the transmission of the number of message, the user identifier of second user as message, is stored in message transmission list In.
Further, record is received for message storage in message sink list, comprising:
Determine the number of message;
Determine the user identifier of the first user;
It is recorded using the reception of the number of message, the user identifier of the first user as message, is stored in message sink list In.
Further, the number of message is determined, comprising:
Determine timestamp, the Platform Type information, service type information, numbering type mark, random string of message, when Between stamp for determining that the sequence that is recorded in message transmission list of transmission or reception are recorded in the sequence in message sink list;
By the timestamp of message, Platform Type information, service type information, numbering type mark, random string combination For the number of message.
Further, the number of message successively includes following fields, 1-14 be timestamp field, 15-16 For the field of Platform Type information, 17-19 be service type information field, 20 fields for numbering type mark, 21-32 fields for random string.
Further, after receiving the first user and being sent to the message of second user, further includes:
Type of service belonging to message is obtained, type of service includes live streaming access business, game interaction business or Instant Messenger News business;
Correspondingly, sending record for message storage in message transmission list, comprising:
The first user-association and belong to type of service message transmission list in, for message store send record;
Correspondingly, receiving record for message storage in message sink list, comprising:
It is associated in second user and belong in the message sink list of type of service, it is stored for message and receives record.
Optionally, which can be server, this method comprises:
The message request that client is sent is received, client is logged in the first user, and the first user-association message sends column Table;
In response to message request, the transmission record for message storage is searched in message transmission list;
If finding transmission record, determine that the second user for receiving message, second user are associated according to sending to record Message sink list;
The reception record for message storage is searched in message sink list;
If finding reception record, message is searched, client is sent a message to and is shown.
Further, according to the second user for sending the determining reception message of record, comprising:
It reads to send and records recorded user identifier;
Determine that user represented by user identifier is the second user for receiving the message.
Further, the reception record for message storage is searched in message sink list, comprising:
Obtain the number for sending the message in record;
The reception record of the number comprising message is searched in message sink list.
Further, message is searched, comprising:
Obtain the number for sending record or receiving the message in record;
Message is searched according to the number of message.
Further, it searches and is directed to after the reception record of message storage in message sink list, further includes:
If not finding reception record or not finding message, forbid sending a message to client being shown.
Optionally, which can be server, this method comprises:
The message request that client is sent is received, client is logged in second user, and second user association messages receive column Table;
In response to message request, the reception record for message storage is searched in message sink list;
If finding reception record, the first user for sending message is determined according to receiving to record, the first user-association Message transmission list;
The transmission record for message storage is searched in message transmission list;
If finding transmission record, message is searched, client is sent a message to and is shown.
Optionally, according to the first user for receiving the determining transmission message of record, comprising:
It reads to receive and records recorded user identifier;
Determine that user represented by user identifier is the second user for sending the message.
Optionally, the transmission record for message storage is searched in message transmission list, comprising:
Obtain the number for receiving the message in record;
The transmission record of the number comprising message is searched in message transmission list.
Optionally, it searches and is directed to after the transmission record of message storage in message transmission list, further includes:
If not finding transmission record or not finding message, forbid sending a message to client being shown.
Memory 71 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created number according to computer equipment According to etc..In addition, memory 71 may include high-speed random access memory, it can also include nonvolatile memory, such as extremely A few disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 71 It can further comprise the memory remotely located relative to processor 70, these remote memories can pass through network connection to meter Calculate machine equipment.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and its group It closes.
Input unit 72 can be used for receiving the number or character information of input, and generates and set with the user of computer equipment It sets and the related key signals of function control inputs.Output device 73 may include that display screen etc. shows equipment.
The embodiment of the present invention also provides a kind of computer readable storage medium for being stored with computer program, computer program When being executed by computer processor for executing a kind of user message processing method.It optionally, is server when executing equipment When, this method comprises:
The message that the first user is sent to second user, the first user-association message transmission list are received, second user is closed Join message sink list;
Record is sent for message storage in message transmission list;
Record is received for message storage in message sink list;
Store message.
Further, record is sent for message storage in message transmission list, comprising:
Determine the number of message;
Determine the user identifier of second user;
It is recorded using the transmission of the number of message, the user identifier of second user as message, is stored in message transmission list In.
Further, record is received for message storage in message sink list, comprising:
Determine the number of message;
Determine the user identifier of the first user;
It is recorded using the reception of the number of message, the user identifier of the first user as message, is stored in message sink list In.
Further, the number of message is determined, comprising:
Determine timestamp, the Platform Type information, service type information, numbering type mark, random string of message, when Between stamp for determining that the sequence that is recorded in message transmission list of transmission or reception are recorded in the sequence in message sink list;
By the timestamp of message, Platform Type information, service type information, numbering type mark, random string combination For the number of message.
Further, the number of message successively includes following fields, 1-14 be timestamp field, 15-16 For the field of Platform Type information, 17-19 be service type information field, 20 fields for numbering type mark, 21-32 fields for random string.
Further, after receiving the first user and being sent to the message of second user, further includes:
Type of service belonging to message is obtained, type of service includes live streaming access business, game interaction business or Instant Messenger News business;
Correspondingly, sending record for message storage in message transmission list, comprising:
The first user-association and belong to type of service message transmission list in, for message store send record;
Correspondingly, receiving record for message storage in message sink list, comprising:
It is associated in second user and belong in the message sink list of type of service, it is stored for message and receives record.
Optionally, when executing equipment is server, this method comprises:
The message request that client is sent is received, client is logged in the first user, and the first user-association message sends column Table;
In response to message request, the transmission record for message storage is searched in message transmission list;
If finding transmission record, determine that the second user for receiving message, second user are associated according to sending to record Message sink list;
The reception record for message storage is searched in message sink list;
If finding reception record, message is searched, client is sent a message to and is shown.
Further, according to the second user for sending the determining reception message of record, comprising:
It reads to send and records recorded user identifier;
Determine that user represented by user identifier is the second user for receiving the message.
Further, the reception record for message storage is searched in message sink list, comprising:
Obtain the number for sending the message in record;
The reception record of the number comprising message is searched in message sink list.
Further, message is searched, comprising:
Obtain the number for sending record or receiving the message in record;
Message is searched according to the number of message.
Further, it searches and is directed to after the reception record of message storage in message sink list, further includes:
If not finding reception record or not finding message, forbid sending a message to client being shown.
Optionally, when executing equipment is server, this method comprises:
The message request that client is sent is received, client is logged in second user, and second user association messages receive column Table;
In response to message request, the reception record for message storage is searched in message sink list;
If finding reception record, the first user for sending message is determined according to receiving to record, the first user-association Message transmission list;
The transmission record for message storage is searched in message transmission list;
If finding transmission record, message is searched, client is sent a message to and is shown.
Optionally, according to the first user for receiving the determining transmission message of record, comprising:
It reads to receive and records recorded user identifier;
Determine that user represented by user identifier is the second user for sending the message.
Optionally, the transmission record for message storage is searched in message transmission list, comprising:
Obtain the number for receiving the message in record;
The transmission record of the number comprising message is searched in message transmission list.
Optionally, it searches and is directed to after the transmission record of message storage in message transmission list, further includes:
If not finding transmission record or not finding message, forbid sending a message to client being shown.
Certainly, it is stored with the computer readable storage medium of computer program provided by the embodiment of the present invention, calculates Machine program is not limited to method operation as above, and user message processing method provided by any embodiment of the invention can also be performed In relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set The method that standby (can be personal computer, server or the network equipment etc.) executes each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments here, be able to carry out for a person skilled in the art it is various it is apparent variation, again Adjustment and substitution are without departing from protection scope of the present invention.Therefore, although by above embodiments to the present invention carried out compared with For detailed description, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, can be with Including more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (17)

1. a kind of user message processing method characterized by comprising
The message that the first user is sent to second user is received, the first user-association message transmission list, described second uses Family association messages receive list;
Record is sent for message storage in the message transmission list;
Record is received for message storage in the message sink list;
Store the message.
2. user message processing method according to claim 1, which is characterized in that described in the message transmission list It is stored for the message and sends record, comprising:
Determine the number of the message;
Determine the user identifier of the second user;
It is recorded, is stored in described using the transmission of the number of the message, the user identifier of the second user as the message In message transmission list.
3. user message processing method according to claim 2, which is characterized in that described in the message sink list It is stored for the message and receives record, comprising:
Determine the number of the message;
Determine the user identifier of first user;
It is recorded, is stored in described using the reception of the number of the message, the user identifier of first user as the message In message sink list.
4. user message processing method according to claim 2 or 3, which is characterized in that the volume of the determination message Number, comprising:
Determine timestamp, the Platform Type information, service type information, numbering type mark, random string of the message, institute State timestamp for determine it is described send the sequence that is recorded in the message transmission list or the reception be recorded in it is described Sequence in message sink list;
By the timestamp of the message, the Platform Type information, the service type information, numbering type mark, institute State the number that random string group is combined into the message.
5. user message processing method according to claim 4, which is characterized in that under the number of the message successively includes State field, 1-14 be the timestamp field, 15-16 be the Platform Type information field, 17-19 For the field of the service type information, 20 fields for numbering type mark, 21-32 are random string Field.
6. user message processing method according to claim 1, which is characterized in that be sent to second receiving the first user After the message of user, further includes:
Type of service belonging to the message is obtained, the type of service includes live streaming access business, game interaction business or is When communication traffic;
Correspondingly, described send record for message storage in the message transmission list, comprising:
First user-association and belong to the type of service message transmission list in, for the message store Send record;
Correspondingly, receiving record for message storage in the message sink list, comprising:
It is associated in the second user and belong in the message sink list of the type of service, it is stored for the message Receive record.
7. a kind of user message processing method characterized by comprising
The message request that client is sent is received, the client is logged in the first user, the first user-association message hair Send list;
In response to the message request, the transmission record for message storage is searched in the message transmission list;
If finding transmission record, according to it is described send record and determine receive the second user of the message, described the The message sink list of two user-associations;
The reception record for message storage is searched in the message sink list;
If finding the reception record, the message is searched, the client is sent the message to and is shown.
8. user message processing method according to claim 7, which is characterized in that recorded according to the transmission and determine reception The second user of the message, comprising:
It reads described send and records recorded user identifier;
Determine that user represented by the user identifier is the second user for receiving the message.
9. user message processing method according to claim 7, which is characterized in that searched in the message sink list For the reception record of message storage, comprising:
Obtain the number for sending the message in record;
The reception record of the number comprising the message is searched in the message sink list.
10. user message processing method according to claim 7, which is characterized in that search the message, comprising:
Obtain the number for sending record or the message in the reception record;
The message is searched according to the number of the message.
11. user message processing method according to claim 7, which is characterized in that looked into the message sink list It looks for after the reception record for message storage, further includes:
If not finding the reception record or not finding the message, forbid sending the message to the client It is shown.
12. a kind of user message processing method characterized by comprising
The message request that client is sent is received, the client is logged in second user, and the second user association messages connect Receive list;
In response to the message request, the reception record for message storage is searched in the message sink list;
If finding reception record, according to it is described receive record and determine send the first user of the message, described the The message transmission list of one user-association;
The transmission record for message storage is searched in the message transmission list;
If finding the transmission record, the message is searched, the client is sent the message to and is shown.
13. user message processing method according to claim 11, which is characterized in that recorded according to the reception and determine hair Send the first user of the message, comprising:
It reads described receive and records recorded user identifier;
Determine that user represented by the user identifier is the second user for sending the message.
14. user message processing method according to claim 11, which is characterized in that looked into the message transmission list Look for the transmission record for message storage, comprising:
Obtain the number for receiving the message in record;
The transmission record of the number comprising the message is searched in the message transmission list.
15. user message processing method according to claim 7, which is characterized in that looked into the message transmission list It looks for after the transmission record for message storage, further includes:
If not finding the transmission record or not finding the message, forbid sending the message to the client It is shown.
16. a kind of electronic equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes the use as described in any in claim 1-13 when executing described program Family message treatment method.
17. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The user message processing method as described in any in claim 1-13 is realized when execution.
CN201910557165.1A 2019-06-25 2019-06-25 User message processing method and device, electronic equipment and storage medium Active CN110311855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910557165.1A CN110311855B (en) 2019-06-25 2019-06-25 User message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910557165.1A CN110311855B (en) 2019-06-25 2019-06-25 User message processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110311855A true CN110311855A (en) 2019-10-08
CN110311855B CN110311855B (en) 2022-05-31

Family

ID=68076134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910557165.1A Active CN110311855B (en) 2019-06-25 2019-06-25 User message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110311855B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327687A (en) * 2020-01-21 2020-06-23 香港乐蜜有限公司 Data transmission method and device, electronic equipment and storage medium
CN112295239A (en) * 2020-10-23 2021-02-02 网易(杭州)网络有限公司 Historical message prompting method and device, storage medium and electronic equipment
CN113905002A (en) * 2021-09-30 2022-01-07 北京字跳网络技术有限公司 Message pushing method, device, system and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040193689A1 (en) * 2002-02-15 2004-09-30 Marcela Vasquez Rosenlof Method for distributing information in a presence service system
CN101282201A (en) * 2008-03-28 2008-10-08 中兴通讯股份有限公司 Method and equipment for monitoring message in communication apparatus
CN101299829A (en) * 2007-04-30 2008-11-05 华为技术有限公司 Method and message system implementing medium content management of unification storage
CN101453483A (en) * 2007-11-29 2009-06-10 华为技术有限公司 Storage processing and inquiry method, system and apparatus for session historic record
CN103023750A (en) * 2012-08-01 2013-04-03 福建星网视易信息系统有限公司 Method for getting message by terminal
CN103188297A (en) * 2011-12-29 2013-07-03 北大方正集团有限公司 Method and system for storing and obtaining information
CN104796322A (en) * 2015-03-25 2015-07-22 腾讯科技(深圳)有限公司 Message processing method and equipment
CN106385430A (en) * 2016-08-23 2017-02-08 北京小米移动软件有限公司 Communication message management method and device
CN109600240A (en) * 2018-12-21 2019-04-09 北京云中融信网络科技有限公司 Group Communications method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040193689A1 (en) * 2002-02-15 2004-09-30 Marcela Vasquez Rosenlof Method for distributing information in a presence service system
CN101299829A (en) * 2007-04-30 2008-11-05 华为技术有限公司 Method and message system implementing medium content management of unification storage
CN101453483A (en) * 2007-11-29 2009-06-10 华为技术有限公司 Storage processing and inquiry method, system and apparatus for session historic record
CN101282201A (en) * 2008-03-28 2008-10-08 中兴通讯股份有限公司 Method and equipment for monitoring message in communication apparatus
CN103188297A (en) * 2011-12-29 2013-07-03 北大方正集团有限公司 Method and system for storing and obtaining information
CN103023750A (en) * 2012-08-01 2013-04-03 福建星网视易信息系统有限公司 Method for getting message by terminal
CN104796322A (en) * 2015-03-25 2015-07-22 腾讯科技(深圳)有限公司 Message processing method and equipment
CN106385430A (en) * 2016-08-23 2017-02-08 北京小米移动软件有限公司 Communication message management method and device
CN109600240A (en) * 2018-12-21 2019-04-09 北京云中融信网络科技有限公司 Group Communications method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327687A (en) * 2020-01-21 2020-06-23 香港乐蜜有限公司 Data transmission method and device, electronic equipment and storage medium
CN111327687B (en) * 2020-01-21 2023-02-21 卓米私人有限公司 Data transmission method and device, electronic equipment and storage medium
CN112295239A (en) * 2020-10-23 2021-02-02 网易(杭州)网络有限公司 Historical message prompting method and device, storage medium and electronic equipment
CN113905002A (en) * 2021-09-30 2022-01-07 北京字跳网络技术有限公司 Message pushing method, device, system and storage medium

Also Published As

Publication number Publication date
CN110311855B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
KR102029277B1 (en) Device Identifier-Dependent Operation Processing for Packet-Based Data Communications
CN109522330B (en) Cloud platform data processing method, device, equipment and medium based on block chain
US7969461B2 (en) System and method for exchanging connection information for videoconferencing units using instant messaging
CN110311855A (en) User message processing method, device, electronic equipment and storage medium
US8352931B2 (en) Data push service method and system using data pull model
US8489695B2 (en) Proxy communications on a social network
CN108965469B (en) Dynamic management method, device, equipment and storage medium for members of block chain network
CN103716326A (en) Resource access method and URG
CN109521956B (en) Cloud storage method, device, equipment and storage medium based on block chain
CN104113572B (en) Dissemination method, system and the fore device of user-generated content
CN109474838A (en) A kind of data processing method, equipment, system and storage medium
CN109522462B (en) Cloud query method, device, equipment and storage medium based on block chain
CN115334025B (en) Decentralized instant messaging method, decentralized instant messaging device, decentralized instant messaging equipment and storage medium
CN110263579A (en) A kind of data processing method, system and relevant device
KR20130082588A (en) Method for providing social networking service group inviting service and sns server thereof
CN104753756A (en) Group creating and group sharing methods, devices and systems
CN110636063B (en) Method and device for controlling secure interaction of equipment, electronic equipment and storage medium
CN107196839B (en) Service data processing method and device
CN106789987A (en) The multi-service of mobile terminal single-sign-on interconnects the method and system of APP
US9628490B2 (en) Trusted contact name validation
CN104917754A (en) Video data sending and receiving methods, servers and clients
CN102469039A (en) Intelligent network communication system and method
CN114554251B (en) Multimedia data requesting method and device, storage medium and electronic device
CN110601850A (en) Scenic spot information recording method, related equipment and storage medium
CN106067861B (en) A kind of method and device that discussion group is added

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant