CN106487643B - Information storage method and device for instant messaging - Google Patents

Information storage method and device for instant messaging Download PDF

Info

Publication number
CN106487643B
CN106487643B CN201510543210.XA CN201510543210A CN106487643B CN 106487643 B CN106487643 B CN 106487643B CN 201510543210 A CN201510543210 A CN 201510543210A CN 106487643 B CN106487643 B CN 106487643B
Authority
CN
China
Prior art keywords
client
data
service processor
request
user
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.)
Active
Application number
CN201510543210.XA
Other languages
Chinese (zh)
Other versions
CN106487643A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510543210.XA priority Critical patent/CN106487643B/en
Priority to PCT/CN2016/078119 priority patent/WO2016177220A1/en
Publication of CN106487643A publication Critical patent/CN106487643A/en
Application granted granted Critical
Publication of CN106487643B publication Critical patent/CN106487643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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]
    • 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/18Commands or executable codes

Abstract

The invention provides an information storage method and device for instant messaging, wherein the information storage method comprises the following steps: receiving a link establishment request sent by a client, establishing a first communication link with the client and a second communication link with a service processor; receiving a login request sent by the client, the communication link of which is successfully established, determining a service processor corresponding to the client according to the second communication link, and authenticating the identity of a user logging in the client by the service processor; and receiving a storage request sent by the user with successful identity authentication, and storing the storage data in the storage request to a data storage module. The embodiment of the invention can process, store the messages of large-concurrency and large-flow data, and can ensure the safety and reliability of the data.

Description

Information storage method and device for instant messaging
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information storage method and apparatus for instant messaging.
Background
With the development of mobile communication technology, the bandwidth of mobile data transmission speed is higher and higher. People are no longer limited to using traditional mobile phone short messages to communicate with each other, but tend to use a fast and convenient communication mode, namely Instant Message (IM) based on mobile internet, to communicate with each other, but with the wide application of Instant messaging, their functions are increasingly rich. People are no longer satisfied with only the intercommunication of messages, and it is also desirable that instant messaging software be able to implement more functions. One of them is to save all history messages sent by itself and to restore the saved history messages when they need to be restored. These historical messages are not only text messages, but also multimedia files such as pictures, video, voice, music, etc. In order to meet the above requirements of users, a set of instant messaging storage system is needed to be implemented, which can store the history messages of instant messaging in real time and recover the history messages of users in real time according to the requirements of users.
Because the storage of instant messaging has the characteristics of large concurrency and large data volume, theoretically, the storage system needs to meet the following requirements:
1. transmission and storage of large-capacity data: the user saves not only text messages but also binary files such as pictures, videos, voice, music, and the like. The capacity of the files is generally large, and an instant messaging storage system is required to meet the requirement of receiving and storing large-capacity data;
2. large concurrent data transfers can be handled. The number of users of instant messaging software is in the tens of millions. In this case, the number of users who are online at the same time is also large. Therefore, the instant messaging storage system is required to meet the requirement that a large number of users simultaneously store data;
3. realizing dynamic expansion of the server cluster: for such a large data volume processing, a single service processor certainly cannot meet the performance requirement, and a server cluster is required to share and process the service. Therefore, it is necessary to implement dynamic expansion of servers, that is, dynamically increase the number of servers without interrupting the service;
4. load balancing: since there are a plurality of servers processing user requests, in order to prevent an overload imposed on a certain server from occurring. Therefore, a load balancing technology is required to be adopted to ensure that the traffic borne by each server is approximately equal;
5. reliability of data storage: the storage system must ensure that data stored by a user is not lost when a single point of failure occurs;
6. security of data storage: data stored in the storage system contains much private information of a user, and in order to ensure that the data is not acquired by other useful people, the data must be encrypted by using an encryption algorithm and decrypted and returned to the user when the user needs to recover.
7. Legitimacy of the user: the storage system must verify the identity of the user, ensure that the user has legal authority to store and acquire data, and prevent others from impersonating the legal user to make data impact on the server.
In summary, the storage system provided in the prior art cannot simultaneously satisfy the above seven requirements, for example, a storage system capable of guaranteeing a large concurrency and a large data traffic cannot simultaneously guarantee the security and reliability of data.
Disclosure of Invention
The invention aims to provide an instant messaging information storage method and device, and solves the problems that a storage system in the prior art cannot simultaneously meet the requirements of large concurrency and large flow data and the safety and reliability of the data.
In order to achieve the above object, an embodiment of the present invention provides an information storage method for instant messaging, including:
receiving a link establishment request sent by a client, establishing a first communication link with the client and a second communication link with a service processor;
receiving a login request sent by the client, the communication link of which is successfully established, determining a service processor corresponding to the client according to the second communication link, and authenticating the identity of a user logging in the client by the service processor;
and receiving a storage request sent by the user with successful identity authentication, and storing the storage data in the storage request to a data storage module.
Wherein, the information storage method further comprises:
receiving a list request sent by the user, searching a summary list of the stored data of the user from the data storage module and returning the summary list to the client;
and receiving a data recovery request determined by the user according to the abstract list, searching data required to be recovered from the data storage module according to the data recovery request, and returning the data to the client.
Wherein, the information storage method further comprises:
and receiving a log-out request sent by the user, setting the state of the user as a non-log-in state by the service processor, disconnecting the first communication link, and deleting the corresponding relation between the second communication link and the client.
The steps of receiving a link establishment request sent by a client, establishing a first communication link with the client and a second communication link with a service processor comprise:
creating an interception port, receiving a link establishment request sent by a client from the frame interception port, and establishing a first communication link with the client;
distributing a service processor to the client according to the link establishment request, adding a client identifier to the link establishment request, and then forwarding the link establishment request to the service processor, wherein the service processor distributes a memory to the client;
if the distribution is successful, establishing a second communication link with the service processor successfully, receiving a link establishing success response returned by the service processor and forwarding the link establishing success response to the client;
and if the distribution fails, the second communication link is failed to be established, a link establishment failure response returned by the service processor is received, and the link establishment failure response is forwarded to the client.
The step of receiving a login request sent by the client, the communication link of which is successfully established, and determining a service processor corresponding to the client according to the second communication link, and authenticating the identity of a user logging in the client by the service processor comprises the following steps:
receiving a login request sent by the client, wherein the communication link is successfully established;
determining a service processor corresponding to the client according to the second communication link, adding a client identifier to the login request, forwarding the login request to the corresponding service processor, and sending the login request added with the client identifier to an authentication module by the service processor to perform identity authentication on a user logging in the client;
if the identity authentication is successful, receiving a login success response returned by the service processor according to the authentication success response fed back by the authentication module and forwarding the login success response to the client;
and if the identity authentication fails, receiving a login failure response returned by the service processor according to the authentication failure response fed back by the authentication module and forwarding the login failure response to the client.
Wherein, if the identity authentication fails, the information storage method further comprises:
after receiving a login failure response returned by the service processor, disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client;
and sending a link breaking request to the service processor, so that the service processor releases the memory allocated to the client according to the link breaking request.
The steps of receiving a storage request sent by the user with successful authentication and storing storage data in the storage request to a data storage module comprise:
receiving a storage request sent by the user with successful identity authentication, wherein the storage request comprises a user identifier, storage time, storage data size and storage data;
the storage request is added with a client identifier and then forwarded to a service processor corresponding to the client, the service processor verifies the storage request, the storage data are stored in a memory allocated to the client after the verification is passed, the storage data are stored on a plurality of data storage nodes in a data storage module after the storage data are collected, and the data storage nodes feed back a storage success response or a storage failure response to the service processor;
receiving a successful storage response forwarded by the service processor and forwarding the successful storage response to the client side, wherein the successful storage response is successfully stored; and receiving a storage failure response forwarded by the service processor, forwarding the storage failure response to the client, and failing to store.
Wherein, the step of receiving the list request sent by the user, searching the summary list of the stored data of the user from the data storage module and returning the summary list to the client comprises the following steps:
receiving a list request sent by a user;
and the list request is added with a client identifier and then forwarded to a service processor corresponding to the client, the service processor verifies the list request, searches the storage data stored by the user from the storage module after the verification is passed, and generates a summary list according to the storage data and returns the summary list to the client.
The steps of receiving a data recovery request determined by the user according to the summary list, searching data required to be recovered from the data storage module according to the data recovery request, and returning the data to the client comprise:
receiving a data recovery request determined by the user according to the abstract list, wherein the data recovery request comprises a user identifier and a time point requiring recovery;
the data recovery request is added with a client identifier and then forwarded to a service processor corresponding to the client, the service processor verifies the data recovery request, and the data required to be recovered is searched from the storage module after the verification is passed;
and receiving the data requiring recovery and forwarding the data requiring recovery to a client.
Wherein, the step of receiving the log-out request sent by the user, setting the state of the user to be the non-log-in state by the service processor, disconnecting the first communication link, and deleting the corresponding relationship between the second communication link and the client comprises:
receiving a login quitting request sent by the user;
determining a service processor corresponding to the client according to the communication link, adding a client identifier to the login quitting request, forwarding the login quitting request to the service processor, sending the login quitting request added with the client identifier to an authentication module by the service processor, setting the user in a non-login state by the authentication module, and feeding back a login quitting response to the service processor;
receiving a log-out response forwarded by the service processor, disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client;
and sending a link breaking request to the service processor, so that the service processor releases the memory allocated to the client according to the link breaking request.
The embodiment of the invention also provides an information storage device for instant messaging, which comprises:
the link establishing module is used for receiving a link establishing request sent by a client, establishing a first communication link with the client and a second communication link with a service processor;
the login module is used for receiving a login request sent by the client terminal with a successfully established communication link, determining a service processor corresponding to the client terminal according to the second communication link, and authenticating the identity of a user logging in the client terminal by the service processor;
and the storage module is used for receiving the storage request sent by the user with successful authentication and storing the storage data in the storage request to the data storage module.
Wherein the information storage device further comprises:
the searching module is used for receiving the list request sent by the user, searching the abstract list of the stored data of the user from the data storage module and returning the abstract list to the client;
and the data recovery module is used for receiving a data recovery request determined by the user according to the abstract list, searching data required to be recovered from the data storage module according to the data recovery request and returning the data to the client.
Wherein the information storage device further comprises:
and the log-out module is used for receiving the log-out request sent by the user, setting the state of the user to be a non-log-in state by the service processor, disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client.
The technical scheme of the invention at least has the following beneficial effects:
in the information storage method and the information storage device for instant messaging of the embodiment of the invention, the first communication link with the client and the second communication link with the service processor are pre-established to ensure that the stored data of the same user are all sent to the same service processor, and the service processor supports dynamic capacity expansion to meet the storage requirements of high-capacity data and high-flow data; the identity of a user logging in the client is verified, and the safety and reliability of stored data are guaranteed; the information storage method can store the historical information of the instant messaging user, can meet the requirements of high concurrency, large-flow data and large-capacity storage, and can simultaneously save the reliability and safety of data storage.
Drawings
Fig. 1 is a flowchart illustrating basic steps of an information storage method for instant messaging according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a component structure of an information storage system according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a user login process in an information storage method of instant messaging according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a user storing history messages in an information storing method of instant messaging according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a user recovering history message in an instant messaging information storage method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a user log-out process in an instant messaging information storage method according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a structure of an instant messaging information storage device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The invention provides an instant messaging information storage method and device aiming at the problem that a storage system in the prior art cannot simultaneously meet the requirements of large concurrency, large-flow data and data safety and reliability, wherein the storage data of the same user are ensured to be sent to the same service processor by pre-establishing a first communication link between the storage system and a client and a second communication link between the storage system and the service processor, and the service processor supports dynamic capacity expansion and meets the storage requirements of large-capacity data and large-flow data; the identity of a user logging in the client is verified, and the safety and reliability of stored data are guaranteed; the information storage method can store the historical information of the instant messaging user, can meet the requirements of high concurrency, large-flow data and large-capacity storage, and can simultaneously save the reliability and safety of data storage.
As shown in fig. 1, an embodiment of the present invention provides an information storage method for instant messaging, including:
step 11, receiving a link establishment request sent by a client, establishing a first communication link with the client and a second communication link with a service processor;
step 12, receiving a login request sent by the client terminal with a successfully established communication link, determining a service processor corresponding to the client terminal according to the second communication link, and performing identity authentication on a user logging in the client terminal by the service processor;
and step 13, receiving a storage request sent by the user with successful authentication, and storing the storage data in the storage request to a data storage module.
As shown in fig. 2, the information storage method of instant messaging provided by the above embodiment of the present invention is applied to a message distribution module, and in step 11, a first communication link is a communication link between the message distribution module and the client, and a second communication link is a communication link between the message distribution module and the service processor. After the first communication link and the second communication link are established successfully, a user can log in the client by using a user name and a password, the client sends a login request to the message distribution module, the message distribution module determines the second communication link according to the client identification, determines the service processor according to the second communication link and then sends the login request to the service processor for identity verification, and the security and the reliability of the user identity are guaranteed, so that the security of the subsequent steps of data storage, data acquisition and the like is saved. After the user logs in successfully, the data required to be stored can be sent to the message distribution module through the storage request, the message distribution module forwards the data to the service processor, and the service processor stores the data to the data storage module. The integrity of data storage and the safety of data storage are ensured by establishing a communication link and logging in the user to store data.
After the user stores the data, at a certain subsequent time, the user may need to view the previously stored data, and the information storage method provided by the embodiment of the present invention further includes:
step 14, receiving the list request sent by the user, searching the abstract list of the stored data of the user from the data storage module and returning the abstract list to the client;
and step 15, receiving a data recovery request determined by the user according to the summary list, searching data required to be recovered from the data storage module according to the data recovery request, and returning the data to the client.
The user does not know or remember which data is stored in advance, so that the user firstly sends a list request which is a summary list for requesting to list the stored data, and the client receives the summary list, selects a list item of the data required to be recovered from the list to form a data recovery request, so as to receive the data required to be recovered by the user and returned by the data storage module.
The data recovery process provided by the embodiment of the invention acquires the abstract list of the stored data in advance, thereby avoiding the recovery failure caused by the requirement of a user on recovering the data which is not stored, and improving the efficiency of data recovery. Meanwhile, the data stored by the user is permanently stored in the data storage module, so that the high efficiency of data recovery is ensured.
Further, the information storage method provided by the embodiment of the present invention further includes:
and step 16, receiving a log-out request sent by the user, setting the state of the user to be a non-log-in state by the service processor, disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client.
In the embodiment of the invention, a user logs in a client and logs out of the client after completing a series of operations (the terminal electricity consumption is caused by logging in the client for a long time or potential safety hazards exist in the client which can be directly logged in by other people without verification), correspondingly, after logging out of the client, the user needs to disconnect a first communication link between the client and a message distribution module, so that the connection between other clients and the message distribution module is conveniently established; meanwhile, the corresponding relation between the client and the second communication link needs to be deleted, so that the other clients can establish contact with the service processor conveniently.
Specifically, step 11 in the above embodiment of the present invention includes:
step 111, creating an interception port, receiving a link establishment request sent by a client from the frame interception port, and establishing a first communication link with the client;
step 112, allocating a service processor to the client according to the link establishment request, and forwarding the link establishment request plus a client identifier to the service processor, where the service processor allocates a memory to the client;
step 113, if the allocation is successful, establishing a second communication link with the service processor successfully, receiving a link establishment success response returned by the service processor and forwarding the link establishment success response to the client;
step 114, if the allocation fails, the second communication link is failed to be established, and a link establishment failure response returned by the service processor is received and forwarded to the client.
Accordingly, step 12 in the above embodiment of the present invention includes:
step 121, receiving a login request sent by the client, where the communication link is successfully established;
step 122, determining a service processor corresponding to the client according to the second communication link, adding a client identifier to the login request, and forwarding the login request to the corresponding service processor, wherein the service processor sends the login request added with the client identifier to an authentication module to perform identity authentication on a user logging in the client;
step 123, if the identity authentication is successful, receiving a login success response returned by the service processor according to the authentication success response fed back by the authentication module and forwarding the login success response to the client;
and step 124, if the identity authentication fails, receiving a login failure response returned by the service processor according to the authentication failure response fed back by the authentication module, and forwarding the login failure response to the client.
Further, if the authentication fails, the information storage method further includes:
step 1241, after receiving a login failure response returned by the service processor, disconnecting the first communication link and deleting the corresponding relationship between the second communication link and the client;
step 1242, sending a link breaking request to the service handler, so that the service handler releases the memory allocated to the client according to the link breaking request.
Specifically, the user login flow is illustrated, and the steps are as shown in fig. 3, and described as follows:
step 21, the message distribution module creates an interception port to prepare for receiving a link request from an instant messaging client user;
step 22, the instant communication client sends a request for establishing a link to the IP address where the message distribution module is located;
step 23, the message distribution module receives the link establishment request of the instant messaging client, and the service processor is operated according to the following rules:
traversing all the service processors establishing the connection, and searching the service processor with the least number of the currently processed terminals as the service processor of the client;
and after the service processor is found, encapsulating an instant communication client-side link establishment request and sending the link establishment request to the service processor. The request carries the IP address and port number of the instant messaging client. And simultaneously, the link information is stored by taking the IP address and the port number as keywords.
Step 24, the service processor receives the link establishment request of the instant messaging client sent by the message distribution module, allocates client resources according to the IP address and the port number of the instant messaging client, applies for the memory resources of the client cache message, returns a successful response to the message distribution module if allocation is successful, or returns a failed response with the IP address and the port number of the instant messaging client in the response.
And step 25, if the message distribution module receives the successful response of the service processor, the link establishment is successful. Finding a client link (a first communication link) according to the IP address and the port number, storing the corresponding relation between the client link and the service processor, and then adding 1 to the number of the currently processed terminals of the service processor;
step 26, if the message distribution module receives the failure response of the service processor, disconnecting the link with the instant communication client;
step 27, after the instant messaging client-side is successfully linked, sending a user login request, wherein the request comprises a user name and a password, and the password is encrypted by using MD5 to ensure data security;
step 28, the message distribution module receives the login request of the instant messaging client, finds the corresponding service processor according to the client link, adds the IP address and the port number of the instant messaging client to the request message, and sends the request message to the corresponding service processor;
step 29, after receiving the message, the service processor sends the request message to the authentication module;
step 210, the authentication module receives the login request message sent by the service processor, and first checks whether the user name and the password are legal, and then checks whether the user is already in an unregistered state. If the user name and the password are legal and the user is in a non-login state, returning a success response to the service processor, otherwise, returning a failure response;
step 211, the service processor receives the response of the user authentication module, judges whether the authentication is successful, if the authentication is successful, returns a login success response to the message distribution module, otherwise returns a login failure response; and after receiving the login response of the service processor, the message distribution module judges whether the authentication is successful.
Step 212, if the authentication is successful, a login success response is returned to the instant messaging client, and the instant messaging client is allowed to continue the subsequent process
Step 213, if the authentication fails, returning a login failure response to the instant messaging client, then disconnecting the link with the instant messaging client, deleting the corresponding relation between the link and the service processor, reducing the number of the currently processed terminals of the service processor by 1, and then sending a link disconnection request to the service processor, wherein the link disconnection request comprises the IP address and the port number of the instant messaging client; and after receiving the link-breaking request of the message distribution module, the service processor finds the allocated resources according to the IP address and the port number and releases the allocated memory resources.
Specifically, step 13 in the above embodiment of the present invention includes:
step 131, receiving a storage request sent by the user with successful authentication, wherein the storage request includes a user identifier, storage time, storage data size and storage data;
step 132, forwarding the storage request plus a client identifier to a service processor corresponding to the client, verifying the storage request by the service processor, storing the storage data into a memory allocated to the client after the verification is passed, storing the storage data onto a plurality of data storage nodes in a data storage module after the storage data are collected, and feeding back a storage success response or a storage failure response to the service processor by the data storage nodes;
step 133, receiving a successful storage response forwarded by the service processor and forwarding the successful storage response to the client, where the storage is successful; and receiving a storage failure response forwarded by the service processor, forwarding the storage failure response to the client, and failing to store.
Specifically, the user stores the historical message flow description, and the steps are as shown in fig. 4, and are described as follows:
step 31, after the instant messaging client successfully logs in, sending a storage request to a message distribution module, wherein keywords of the request comprise a user name, storage time, data size and storage data, and the storage data is a complete data packet formed by packaging a history message, a video file, a picture file, a voice file and other binary files according to a certain format and is encrypted by using an encryption algorithm;
step 32, after receiving the storage request message, the message distribution module finds out the corresponding service processor according to the link of the instant messaging client, adds the IP address and the port number of the instant messaging client to the request message, and forwards the request message to the service processor;
step 33, after receiving the storage request message sent by the message distribution module, the service processor finds the allocated user resource by using the IP address and the port number as keywords, first verifies whether the user name belongs to the IP address and the port number, and if the user name is in the logged-on state, stores the data in the allocated memory. If the verification fails, a failure response is returned.
Because the data may arrive at the server in multiple packets, it is necessary to determine whether the data is collected according to the size of the data in the message, and if the data is collected, the user name and the time are used as keywords to store the data cached in the memory in the data storage module.
And step 34, the data storage module obtains N nodes for storing data according to the keywords, wherein N is configurable, and then stores the data to the N data nodes, and each data node has a copy of the data. Therefore, when one data node is down, data can be acquired from other data nodes. And the data storage module successfully stores the data and returns a successful response, otherwise, the data storage module returns a failed response.
And step 35, after receiving the response of the data storage module, the service processor returns a success or failure response to the message distribution module according to whether the response is successful or not. The response contains the IP address and the port number of the instant messaging client. And the message distribution module finds the client link according to the IP address and the port number in the response. And then returns a success response or a failure response to the client.
Step 36, if the instant messaging client receives a successful response, the storage process is ended;
step 37, if the instant communication client receives the failure response, it decides whether to retry according to whether the maximum retry number is reached. If the longest retry number is not reached, repeating the step 31 and continuing to send the storage request; otherwise, the whole storage flow is ended.
Further, step 14 in the above embodiment of the present invention includes:
step 141, receiving a list request sent by a user;
and 142, forwarding the list request plus a client identifier to a service processor corresponding to the client, verifying the list request by the service processor, searching the storage data stored by the user from the storage module after the verification is passed, generating a summary list according to the storage data, and returning the summary list to the client.
Accordingly, step 15 comprises:
step 151, receiving a data recovery request determined by the user according to the summary list, where the data recovery request includes a user identifier and a time point at which recovery is required;
152, forwarding the data recovery request plus a client identifier to a service processor corresponding to the client, verifying the data recovery request by the service processor, and searching data required to be recovered from the storage module after the verification is passed;
step 153, receiving the data requiring recovery, and forwarding the data requiring recovery to the client.
Specifically, the user recovers the historical message flow description, the steps of which are shown in fig. 5, and are described as follows:
step 41, after the instant communication client logs in successfully, a list request message is sent to the message distribution module, and a summary list of the stored data is listed.
Step 42, after receiving the list request message, the message distribution module finds out the corresponding service processor according to the link of the instant messaging client, adds the IP address and the port number of the instant messaging client to the request message, and forwards the request message to the service processor;
step 43, after receiving the list request message sent by the message distribution module, the service processor finds out the allocated user resources by using the IP address and the port number as keywords, first verifies whether the user name belongs to the IP address and the port number, and whether the status is logged in, and if the verification is correct, queries all the stored data records of the user from the data storage module according to the user name.
And step 44, the data storage module receives the query request of the service processor, finds all the stored data of the user according to the user name, generates a summary list and returns the summary list to the service processor, and if the query is not successful, returns a null list.
And step 45, the service processor packages the abstract list into a response message according to the query result, and returns the response message to the message distribution module, wherein the response message also comprises the IP address and the port number of the instant messaging client.
Step 46, the message distribution module finds the client link according to the IP address and the port number in the response, and returns the summary list to the instant communication client;
step 47, the instant messaging client lists the received stored data summaries, selects one of them, and sends a request for recovering data. The request message carries the username and the point in time at which recovery is required.
Step 48, after receiving the recovery request message, the message distribution module finds out the corresponding service processor according to the link of the instant communication client, adds the IP address and the port number of the instant communication client to the request message, and forwards the request message to the service processor;
step 49, after receiving the recovery request message sent by the message distribution module, the service processor finds the allocated user resources by using the IP address and the port number as keywords, first verifies whether the user name belongs to the IP address and the port number, and whether the state is logged in, and if the verification is correct, queries the stored data from the data storage module by using the user name and the time as keywords. If the verification fails, a failure response is returned.
And step 410, after receiving the query request, the data storage module obtains a node for storing data according to the keyword. And selecting a valid data node to acquire data. And if all the data nodes can not acquire the data, returning failure. Otherwise, returning the acquired data to the service processor.
Step 411, after the service processor receives the query result, if the query fails, a failure response is returned. If the query is successful, the acquired data is packaged into a response message and returned to the message distribution module. The response also carries the IP address and the port number of the instant messaging client.
In step 412, the message distribution module finds the client link according to the IP address and port number in the response. And if the response is a failure response, returning the failure response. Otherwise, the acquired data is completely returned to the instant communication client.
If the instant messaging client receives a successful response, the instant messaging client decrypts all the history messages according to the returned data packet, and then recovers all the history messages in step 413. The entire recovery history message flow ends.
Further, step 16 in the above embodiment of the present invention includes:
step 161, receiving a log-out request sent by the user;
step 162, determining a service processor corresponding to the client according to the communication link, adding a client identifier to the login quitting request, and forwarding the client identifier to the service processor, sending the login quitting request added with the client identifier to an authentication module by the service processor, setting the user to be in a non-login state by the authentication module, and feeding back a login quitting response to the service processor;
step 163, receiving the log-out response forwarded by the service processor, disconnecting the first communication link and deleting the corresponding relationship between the second communication link and the client;
and step 164, sending a link breaking request to the service processor, so that the service processor releases the memory allocated to the client according to the link breaking request.
Specifically, the user logs out of the login flow description, and the steps are as shown in fig. 6 and described as follows:
step 51, when the instant communication client prepares to log out, sending a user log-out request, wherein the request comprises a user name;
step 52, the message distribution module receives the log-out request of the instant messaging client, finds the corresponding service processor according to the link of the client, adds the log-out request message to the IP address and the port number of the instant messaging client, and then sends the message to the corresponding service processor;
step 53, after receiving the log-off request message, the service processor sends the request message to the user authentication module;
step 54, the user authentication module receives the log-out request message sent by the service processor, and sets the user in the non-log-in state. Then returning a response;
step 55, the service processor receives the response of the user authentication module and returns the response to the message distribution module, wherein the response contains the IP address and the port number of the instant messaging client.
And step 56, after receiving the response of the service processor, the message distribution module finds the link of the instant messaging client according to the IP address and the port number in the response, deletes the corresponding relation between the link and the service processor, reduces the number of the currently processed terminals of the service processor by 1, disconnects the link with the instant messaging client, and simultaneously sends a link disconnection request to the service processor.
And 57, after receiving the link-breaking request of the message distribution module, the service processor finds the allocated resources according to the IP address and the port number, and releases the allocated memory resources.
In summary, the method for storing information of instant messaging provided by the embodiment of the present invention can store user history information of instant messaging, and can meet the requirements of high concurrency, large-flow data and large-capacity storage, and can ensure reliability and security of data storage, and at the same time, can verify the validity of a user.
In order to better achieve the above object, as shown in fig. 7, an embodiment of the present invention further provides an information storage device for instant messaging, including:
a link establishing module 71, configured to receive a link establishing request sent by a client, establish a first communication link with the client and a second communication link with a service processor;
the login module 72 is configured to receive a login request sent by the client that a communication link is successfully established, determine a service handler corresponding to the client according to the second communication link, and authenticate an identity of a user logging in the client by the service handler;
the saving module 73 is configured to receive a storage request sent by the user with successful authentication, and save the storage data in the storage request to the data storage module.
Specifically, in the foregoing embodiment of the present invention, the information storage apparatus further includes:
the searching module is used for receiving the list request sent by the user, searching the abstract list of the stored data of the user from the data storage module and returning the abstract list to the client;
and the data recovery module is used for receiving a data recovery request determined by the user according to the abstract list, searching data required to be recovered from the data storage module according to the data recovery request and returning the data to the client.
Specifically, in the foregoing embodiment of the present invention, the information storage apparatus further includes:
and the log-out module is used for receiving the log-out request sent by the user, setting the state of the user to be a non-log-in state by the service processor, disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client.
Specifically, in the embodiment of the present invention, the link establishing module includes:
the first establishing submodule is used for establishing a listening port, receiving a link establishing request sent by a client from the frame listening port and establishing a first communication link with the client;
the distribution submodule is used for distributing a service processor to the client according to the link establishment request, adding a client identifier to the link establishment request and then forwarding the link establishment request to the service processor, and distributing a memory to the client by the service processor;
the second establishing submodule is used for successfully establishing a second communication link with the service processor if the distribution is successful, receiving a link establishing success response returned by the service processor and forwarding the link establishing success response to the client;
and the third establishing submodule is used for receiving a link establishing failure response returned by the service processor and forwarding the link establishing failure response to the client if the allocation fails and the second communication link is established unsuccessfully.
Specifically, in the above embodiment of the present invention, the login module 72 includes:
the first receiving module is used for receiving a login request sent by the client side, wherein the communication link is successfully established;
the first login submodule is used for determining a service processor corresponding to the client according to the second communication link, adding a client identifier to the login request and then forwarding the login request to the corresponding service processor, and the service processor sends the login request added with the client identifier to an authentication module to carry out identity authentication on a user logging in the client;
the second login submodule is used for receiving a login success response returned by the service processor according to the authentication success response fed back by the authentication module if the identity authentication is successful and forwarding the login success response to the client;
and the third login sub-module is used for receiving a login failure response returned by the service processor according to the authentication failure response fed back by the authentication module and forwarding the login failure response to the client if the identity authentication fails.
Specifically, in the foregoing embodiment of the present invention, the information storage apparatus further includes:
the first deleting module is used for disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client after receiving a login failure response returned by the service processor if the identity authentication fails;
and the first release module is used for sending a link breaking request to the service processor, so that the service processor releases the memory allocated to the client according to the link breaking request.
Specifically, in the above embodiment of the present invention, the saving module 73 includes:
the second receiving module is used for receiving a storage request sent by the user with successful identity authentication, wherein the storage request comprises a user identifier, storage time, storage data size and storage data;
the forwarding module is used for forwarding the storage request plus a client identifier to a service processor corresponding to the client, verifying the storage request by the service processor, storing the storage data into a memory allocated to the client after the verification is passed, storing the storage data onto a plurality of data storage nodes in the data storage module after the storage data are collected, and feeding back a storage success response or a storage failure response to the service processor by the data storage nodes;
the third receiving module is used for receiving the successful storage response forwarded by the service processor and forwarding the successful storage response to the client side, and the storage is successful; and receiving a storage failure response forwarded by the service processor, forwarding the storage failure response to the client, and failing to store.
Specifically, in the foregoing embodiment of the present invention, the searching module includes:
the fourth receiving module is used for receiving the list request sent by the user;
and the searching subunit is used for forwarding the list request plus the client identifier to a service processor corresponding to the client, verifying the list request by the service processor, searching the storage data stored by the user from the storage module after the verification is passed, generating a summary list according to the storage data, and returning the summary list to the client.
Specifically, the data recovery module in the above embodiment of the present invention includes:
a fifth receiving module, configured to receive a data recovery request determined by the user according to the summary list, where the data recovery request includes a user identifier and a time point at which recovery is required;
the recovery submodule is used for forwarding the data recovery request to a service processor corresponding to the client after adding a client identifier to the data recovery request, verifying the data recovery request by the service processor, and searching data requiring recovery from the storage module after the verification is passed;
and the receiving and forwarding module is used for receiving the data requiring recovery and forwarding the data requiring recovery to the client.
Specifically, in the above embodiment of the present invention, the exit module includes:
a sixth receiving module, configured to receive a login logout request sent by the user;
the response module is used for determining a service processor corresponding to the client according to the communication link, adding a client identifier to the log-out request and then forwarding the log-out request to the service processor, sending the log-out request added with the client identifier to the authentication module by the service processor, setting the user in a non-log-in state by the authentication module and feeding back a log-out response to the service processor;
the second deleting module is used for receiving the log-out response forwarded by the service processor, disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client;
and the second release module is used for sending a link breaking request to the service processor, so that the service processor releases the memory allocated to the client according to the link breaking request.
It should be noted that the information storage device for instant messaging according to the embodiments of the present invention is a storage device to which the information storage method for instant messaging is applied, and all embodiments and advantageous effects of the information storage method for instant messaging are applicable to the information storage device.
In order to better achieve the above object, as shown in fig. 2, an embodiment of the present invention further provides an information storage system, which includes the storage device (message distribution module), a plurality of service processors, an authentication module, and a data storage module. The authentication module is used for verifying the legality of a user needing to store the history message; the message distribution module is used for ensuring load balance among the service processors and realizing the distribution of messages to each service processor; the service processor is used for bearing actual service logic, mainly processing the request of storing and recovering historical information of a user and can dynamically expand; the data storage module is mainly used for storing data of a user, ensuring the safety and reliability of the data and dynamically expanding the storage nodes.
The specific functions of the four modules are as follows:
1. user authentication module
The main function of the user authentication module is to verify the validity of the user identity, and the functions to be realized specifically are as follows:
receiving a user name and a password transmitted by the service processor, verifying whether the user name and the password are correct, if so, successfully logging in the user, returning to the successful logging in, and otherwise, returning to the failed logging in;
if the user logs in successfully, setting the user in a logged-in state, and if so, receiving a login request initiated by the user, and if the state is the logged-in state, returning login failure;
and receiving a user log-out command transmitted by the service processor, and setting the state of the user to be a log-out state.
2. Message distribution module
The message distribution module is an overall control module and mainly has the function of distributing the request messages of the users to each service processor according to a certain rule. The functions that need to be realized specifically are as follows:
and receiving a link establishment request of the instant communication client, and saving the link establishment information of the user.
And receiving a link disconnection request of the instant messaging client, and clearing the stored user link establishment information. And sending the link-breaking request to a service processor to remove the related user login information.
And receiving user authentication information sent by the service processor, and determining whether to actively disconnect the link with the instant communication client according to the success or not of the user authentication information.
The nginx framework and multithreading technology are used to meet the performance requirements of large concurrency. Data can be processed in time under the condition that a large number of users are on line at the same time;
and dynamic expansion of the service processor is supported. When the service processor is started, the link establishment request is actively sent to the message distribution module. After receiving the link establishment request, the message distribution module establishes a stable long link with the service processor;
and judging the load condition of each service processor, and distributing the request message to the service processor with the lightest load to ensure load balance, wherein the data of the user can only be sent to the same service processor in the whole life cycle from the establishment of the link to the disconnection of the link of the same user.
And packaging the request message of the user, adding the IP address and the port number of the mobile phone user, and sending the request message to the service processor. Thus, when the service processor returns a message reply, the IP address and the port number are carried. The message distribution module finds the original link of the mobile phone user according to the IP address and the port number, and returns the response message through the original link.
3. Service processor
The service processing module mainly has the function of processing the request message of the user and completing the corresponding service processing logic. The functions that need to be realized specifically are as follows:
when starting, it sends a request for building link to the message distributing module to build a long stable link.
And receiving a user link establishment request sent by the message distribution module, and creating resource information of the instant messaging client according to the user IP address and the port number encapsulated in the message.
And receiving a user login request sent by the message distribution module, and transmitting the user login request to the user authentication module for verification. And if the verification is successful, returning a verification success response. And if the verification fails, returning a verification failure response.
And after the stored messages are collected completely, the whole data is stored in the data storage module by taking the user name and the time as key words.
And receiving a user list request sent by the message distribution module, and returning the summary information of the storage package stored at all time points of the user so as to facilitate the user to select recovery.
And receiving a user recovery message request sent by the message distribution module, inquiring user data in the data storage module according to the user name and the selected time as keywords, and completely returning the user data to the message distribution module so as to return the user data to the instant messaging client.
And receiving a user login quitting request sent by the message distribution module, transmitting the user login quitting request to the user authentication module, and clearing the user login state.
And receiving a user link-breaking request sent by the message distribution module, and clearing the instant messaging client resource information according to the IP address and the port number.
And regularly checking the user information of the instant messaging client to determine whether the user information has no message interaction for a long time. And if the time interval exceeds a certain threshold value, sending a link breaking request to the message distribution module, and actively breaking the link with the instant communication client.
The response returned by the service processor to the message distribution module is provided with the IP address and the port number of the instant messaging client, so that the message distribution module finds the original link according to the response.
4. Data storage module
The data storage module has a main function of storing data stored by a user, and needs to meet the requirements of reliability, expandability and mass data storage. The functions that need to be realized specifically are as follows:
and the data is stored redundantly, the same data is stored on a plurality of machines, and when one machine is down, the data can be acquired from other machines.
The node can be expanded rapidly, and when the existing data storage capacity reaches the limit, the storage capacity can be expanded by expanding the node and increasing machines, so that the requirement of mass data is met.
And data distribution, namely storing the data to different nodes according to the stored key. And when the acquired data is read, a plurality of nodes stored by the acquired data are found according to the key, and an effective node is selected for data reading.
The storage system can process, store large-concurrency and large-flow data messages, and can guarantee the safety and reliability of the data.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. An information storage method for instant messaging is characterized by comprising the following steps:
receiving a link establishment request sent by a client, establishing a first communication link with the client and a second communication link with a service processor;
receiving a login request sent by the client, the communication link of which is successfully established, determining a service processor corresponding to the client according to the second communication link, and authenticating the identity of a user logging in the client by the service processor;
receiving a storage request sent by the user with successful identity authentication, and storing storage data in the storage request to a data storage module;
receiving a list request sent by the user, searching a summary list of the stored data of the user from the data storage module and returning the summary list to the client;
receiving a data recovery request determined by the user according to the abstract list, searching data required to be recovered from the data storage module according to the data recovery request, and returning the data to the client;
receiving a log-out request sent by the user, setting the state of the user to be a non-log-in state by the service processor, disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client;
the method for establishing the link comprises the following steps of receiving a link establishment request sent by a client, and establishing a first communication link with the client and a second communication link with a service processor, wherein the step of establishing the first communication link with the client and the step of establishing the second communication link with the service processor comprise the following steps:
creating an interception port, receiving a link establishment request sent by a client from the interception port, and establishing a first communication link with the client;
distributing a service processor to the client according to the link establishment request, adding a client identifier to the link establishment request, and then forwarding the link establishment request to the service processor, wherein the service processor distributes a memory to the client;
if the distribution is successful, establishing a second communication link with the service processor successfully, receiving a link establishing success response returned by the service processor and forwarding the link establishing success response to the client;
if the distribution fails, the second communication link is failed to be established, a link establishment failure response returned by the service processor is received and forwarded to the client,
wherein, the request for establishing link has IP address and port number of the instant communication client, and saves link information by using the IP address and port number as key words, the login request includes user name and password, and the password is encrypted by MD5 to ensure data security,
the data storage module obtains N nodes for storing data according to the keywords, wherein N is configurable, and then the data is stored on the N data nodes, and each data node has a copy of the data.
2. The method as claimed in claim 1, wherein the step of receiving the login request sent by the client with a successful communication link establishment and determining, according to the second communication link, that the service processor corresponding to the client is authenticated by the service processor with respect to the user logged in the client comprises:
receiving a login request sent by the client, wherein the communication link is successfully established;
determining a service processor corresponding to the client according to the second communication link, adding a client identifier to the login request, forwarding the login request to the corresponding service processor, and sending the login request added with the client identifier to an authentication module by the service processor to perform identity authentication on a user logging in the client;
if the identity authentication is successful, receiving a login success response returned by the service processor according to the authentication success response fed back by the authentication module and forwarding the login success response to the client;
and if the identity authentication fails, receiving a login failure response returned by the service processor according to the authentication failure response fed back by the authentication module and forwarding the login failure response to the client.
3. The method of claim 2, wherein if the authentication fails, the method further comprises:
after receiving a login failure response returned by a service processor, disconnecting a first communication link and deleting the corresponding relation between the second communication link and the client;
and sending a link breaking request to the service processor, so that the service processor releases the memory allocated to the client according to the link breaking request.
4. The method for storing information of instant messaging according to claim 3, wherein the step of receiving the storage request sent by the user with successful authentication and saving the storage data in the storage request to the data storage module comprises:
receiving a storage request sent by the user with successful identity authentication, wherein the storage request comprises a user identifier, storage time, storage data size and storage data;
the storage request is added with a client identifier and then forwarded to a service processor corresponding to the client, the service processor verifies the storage request, the storage data are stored in a memory allocated to the client after the verification is passed, the storage data are stored on a plurality of data storage nodes in a data storage module after the storage data are collected, and the data storage nodes feed back a storage success response or a storage failure response to the service processor;
receiving a successful storage response forwarded by the service processor and forwarding the successful storage response to the client side, wherein the successful storage response is successfully stored; and receiving a storage failure response forwarded by the service processor, forwarding the storage failure response to the client, and failing to store.
5. The method as claimed in claim 4, wherein the step of receiving the list request sent by the user, searching the summary list of the stored data of the user from the data storage module and returning the summary list to the client comprises:
receiving a list request sent by a user;
and the list request is added with a client identifier and then forwarded to a service processor corresponding to the client, the service processor verifies the list request, searches the storage data stored by the user from the storage module after the verification is passed, and generates a summary list according to the storage data and returns the summary list to the client.
6. The method as claimed in claim 5, wherein the step of receiving a data recovery request determined by the user according to the summary list, searching for data requiring recovery from the data storage module according to the data recovery request, and returning the data to the client comprises:
receiving a data recovery request determined by the user according to the abstract list, wherein the data recovery request comprises a user identifier and a time point requiring recovery;
the data recovery request is added with a client identifier and then forwarded to a service processor corresponding to the client, the service processor verifies the data recovery request, and the data required to be recovered is searched from the storage module after the verification is passed;
and receiving the data requiring recovery and forwarding the data requiring recovery to a client.
7. The method as claimed in claim 6, wherein the step of receiving a log-out request from the user, setting the state of the user to be a non-log-in state by the service handler, disconnecting the first communication link, and deleting the corresponding relationship between the second communication link and the client comprises:
receiving a login quitting request sent by the user;
determining a service processor corresponding to the client according to the communication link, adding a client identifier to the login quitting request, forwarding the login quitting request to the service processor, sending the login quitting request added with the client identifier to an authentication module by the service processor, setting the user in a non-login state by the authentication module, and feeding back a login quitting response to the service processor;
receiving a log-out response forwarded by the service processor, disconnecting the first communication link and deleting the corresponding relation between the second communication link and the client;
and sending a link breaking request to the service processor, so that the service processor releases the memory allocated to the client according to the link breaking request.
8. An information storage device for instant messaging, comprising:
the link establishing module is used for receiving a link establishing request sent by a client, establishing a first communication link with the client and a second communication link with a service processor;
the login module is used for receiving a login request sent by the client terminal with a successfully established communication link, determining a service processor corresponding to the client terminal according to the second communication link, and authenticating the identity of a user logging in the client terminal by the service processor;
the storage module is used for receiving a storage request sent by the user with successful identity authentication and storing the storage data in the storage request to the data storage module;
the searching module is used for receiving the list request sent by the user, searching the abstract list of the stored data of the user from the data storage module and returning the abstract list to the client;
the data recovery module is used for receiving a data recovery request determined by the user according to the abstract list, searching data required to be recovered from the data storage module according to the data recovery request and returning the data to the client;
a log-out module for receiving log-out request sent by the user, the service processor sets the state of the user as a non-log-in state to disconnect the first communication link and delete the corresponding relation between the second communication link and the client,
the link establishing module includes:
the first establishing submodule is used for establishing an interception port, receiving a link establishing request sent by a client from the interception port and establishing a first communication link with the client;
the distribution submodule is used for distributing a service processor to the client according to the link establishment request, adding a client identifier to the link establishment request and then forwarding the link establishment request to the service processor, and distributing a memory to the client by the service processor;
the second establishing submodule is used for successfully establishing a second communication link with the service processor if the distribution is successful, receiving a link establishing success response returned by the service processor and forwarding the link establishing success response to the client;
a third establishing submodule, configured to, if allocation fails, establish the second communication link unsuccessfully, receive a link establishment failure response returned by the service processor and forward the link establishment failure response to the client,
wherein, the request for establishing link has IP address and port number of the instant communication client, and saves link information by using the IP address and port number as key words, the login request includes user name and password, and the password is encrypted by MD5 to ensure data security,
the data storage module obtains N nodes for storing data according to the keywords, wherein N is configurable, and then the data is stored on the N data nodes, and each data node has a copy of the data.
CN201510543210.XA 2015-08-28 2015-08-28 Information storage method and device for instant messaging Active CN106487643B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510543210.XA CN106487643B (en) 2015-08-28 2015-08-28 Information storage method and device for instant messaging
PCT/CN2016/078119 WO2016177220A1 (en) 2015-08-28 2016-03-31 Instant message information storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510543210.XA CN106487643B (en) 2015-08-28 2015-08-28 Information storage method and device for instant messaging

Publications (2)

Publication Number Publication Date
CN106487643A CN106487643A (en) 2017-03-08
CN106487643B true CN106487643B (en) 2021-03-09

Family

ID=57217425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510543210.XA Active CN106487643B (en) 2015-08-28 2015-08-28 Information storage method and device for instant messaging

Country Status (2)

Country Link
CN (1) CN106487643B (en)
WO (1) WO2016177220A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659578B (en) * 2017-10-18 2020-08-25 锐捷网络股份有限公司 Authentication method and device
CN112054905B (en) * 2020-08-21 2022-02-11 郑州信大捷安信息技术股份有限公司 Secure communication method and system of mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155149A (en) * 2006-09-27 2008-04-02 腾讯科技(深圳)有限公司 Message record backup method and system
CN102426547A (en) * 2011-09-29 2012-04-25 深圳市万兴软件有限公司 Method and system for recovering cloud data
CN102752387A (en) * 2012-06-29 2012-10-24 用友软件股份有限公司 Data storage processing system and data storage processing method
CN103684980A (en) * 2012-09-17 2014-03-26 阿里巴巴集团控股有限公司 Method and system for synchronizing chatting records in instant chat tool
CN104202185A (en) * 2014-08-25 2014-12-10 腾讯科技(深圳)有限公司 Backup method and backup device for communication data
CN104301382A (en) * 2014-09-03 2015-01-21 惠州Tcl移动通信有限公司 Cloud data backup and recovery method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7028103B2 (en) * 2001-11-08 2006-04-11 International Business Machines Corporation Multi-media synchronization system
US7882178B2 (en) * 2007-09-05 2011-02-01 International Business Machines Corporation Method and system for using business rules to control invitations to join instant message collaborations

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155149A (en) * 2006-09-27 2008-04-02 腾讯科技(深圳)有限公司 Message record backup method and system
CN102426547A (en) * 2011-09-29 2012-04-25 深圳市万兴软件有限公司 Method and system for recovering cloud data
CN102752387A (en) * 2012-06-29 2012-10-24 用友软件股份有限公司 Data storage processing system and data storage processing method
CN103684980A (en) * 2012-09-17 2014-03-26 阿里巴巴集团控股有限公司 Method and system for synchronizing chatting records in instant chat tool
CN104202185A (en) * 2014-08-25 2014-12-10 腾讯科技(深圳)有限公司 Backup method and backup device for communication data
CN104301382A (en) * 2014-09-03 2015-01-21 惠州Tcl移动通信有限公司 Cloud data backup and recovery method

Also Published As

Publication number Publication date
WO2016177220A1 (en) 2016-11-10
CN106487643A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106375270B (en) Token generation and authentication method and authentication server
CN101068245B (en) Shared file issuing and downloading method and file sharing control system
US8448233B2 (en) Dealing with web attacks using cryptographically signed HTTP cookies
US11303431B2 (en) Method and system for performing SSL handshake
CN107483383B (en) Data processing method, terminal, background server and storage medium
US20120297031A1 (en) Anonymous Signalling
CN112600678B (en) Data processing method, device, equipment and storage medium
CN113347206A (en) Network access method and device
CN113507483B (en) Instant messaging method, device, server and storage medium
US20190166042A1 (en) Method for data transmitting, centralized controller, forwarding plane device and communication apparatus
US10291607B1 (en) Providing real-time events to applications
CN113708929B (en) Method for regularly pushing quantum key by edge gateway of Internet of things
CN109729000B (en) Instant messaging method and device
CN110909030B (en) Information processing method and server cluster
US20230128131A1 (en) Protecting Application Private Keys with Remote and Local Security Controllers and Local MPC Key Generation
CN106487643B (en) Information storage method and device for instant messaging
US10931662B1 (en) Methods for ephemeral authentication screening and devices thereof
US8739306B2 (en) System and method for accessing private digital content
CN106027555A (en) Method and system for improving network security of content delivery network by employing SDN (Software Defined Network) technology
CN107104964B (en) Network security terminal and use method
CN107547431B (en) Message processing method and device
CN111385324A (en) Data communication method, device, equipment and storage medium
US11659384B2 (en) Data center 5G network encrypted multicast-based authority authentication method and system
CN110995730B (en) Data transmission method and device, proxy server and proxy server cluster
CN113612811A (en) Method, system, equipment and medium for client mounting in multiple channels

Legal Events

Date Code Title Description
C06 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