CN112019870A - Message classification processing method and device and electronic equipment - Google Patents
Message classification processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN112019870A CN112019870A CN202010877885.9A CN202010877885A CN112019870A CN 112019870 A CN112019870 A CN 112019870A CN 202010877885 A CN202010877885 A CN 202010877885A CN 112019870 A CN112019870 A CN 112019870A
- Authority
- CN
- China
- Prior art keywords
- message processing
- asynchronous
- server
- real
- response data
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 238000012545 processing Methods 0.000 claims abstract description 283
- 230000004044 response Effects 0.000 claims abstract description 150
- 238000000034 method Methods 0.000 claims abstract description 30
- 230000008569 process Effects 0.000 abstract description 17
- 238000004458 analytical method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23106—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
Abstract
The invention provides a message hierarchical processing method, a message hierarchical processing device and electronic equipment, which can divide data to be responded into real-time response data and asynchronous response data based on a message processing request, and process the real-time response data through a first server by a first server to obtain a real-time message processing result; the asynchronous response data are processed through the second server to obtain an asynchronous message processing result, and then the real-time message processing result and the asynchronous message processing result are sent to the client, so that the requirement of users on timely response of concerned messages is met, and meanwhile, the processing pressure of the first server can be relieved by processing the asynchronous response data through the second server.
Description
Technical Field
The present invention relates to the field of information processing, and in particular, to a method and an apparatus for hierarchical processing of messages, and an electronic device.
Background
With the development of internet technology, the application of network live broadcast is more and more extensive. Live systems use long connections for real-time message processing, where a long connection means that multiple data packets can be sent continuously over one connection. However, the current long connection method for real-time message processing cannot meet the message processing requirement of the live broadcast system.
For example, in the online education live broadcast process, the logic server in the live broadcast room can bear the logic processing process of all real-time messages in the live broadcast room, and with the continuous development of services, the processing flow of a certain message type is more and more complex, so that the response time of the logic service is prolonged, and the processing pressure of the logic server is increased.
Disclosure of Invention
In view of this, the present invention provides a message hierarchical processing method, device and electronic device, which satisfy the requirement of users regarding timely response of messages and reduce the processing pressure of a logic server.
In order to solve the technical problems, the invention adopts the following technical scheme:
a message hierarchical processing method comprises the following steps:
in response to a message processing request, dividing data to be responded into real-time response data and asynchronous response data, wherein the real-time response data is associated with the message processing request;
processing the real-time response data through a first server to obtain a real-time message processing result;
processing the asynchronous response data through a second server to obtain an asynchronous message processing result;
sending the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request;
wherein the first server and the second server are two servers that are relatively independent.
Optionally, the asynchronous response data includes an asynchronous response message queue generated by the first server, and the dividing the data to be responded into real-time response data and asynchronous response data in response to the message processing request includes:
analyzing the message processing request to obtain demand information, wherein the demand information represents feedback information required to be obtained by a client corresponding to the message processing request;
determining real-time response data associated with the demand information in data to be responded;
and generating an asynchronous response message queue by the first server for the data except the real-time response data in the data to be responded.
Optionally, the analyzing the message processing request to obtain the requirement information includes:
analyzing the message processing request to obtain a type identifier corresponding to the message processing request;
and acquiring the demand information matched with the type identification.
Optionally, the method further comprises:
caching the asynchronous message processing result;
and responding to a feedback instruction of the client for the asynchronous message processing result, and sending the asynchronous message processing result to the client.
Optionally, the sending the asynchronous message processing result to the client in response to receiving a feedback instruction for the asynchronous message processing result from the client includes:
responding to a received statistical request sent by a client, and carrying out information statistics on the asynchronous message processing result to obtain a statistical result;
and sending the statistical result to the client.
Optionally, the second server includes a plurality of sub-servers, and the processing the asynchronous response data by the second server to obtain an asynchronous message processing result includes:
and distributing the asynchronous response data to each sub-server so that each sub-server generates an asynchronous message processing result.
A message classification processing apparatus comprising:
the dividing unit is used for responding to a message processing request and dividing data to be responded into real-time response data and asynchronous response data, wherein the real-time response data is associated with the message processing request;
the first processing unit is used for processing the real-time response data through the first server to obtain a real-time message processing result;
the second processing unit is used for processing the asynchronous response data through a second server to obtain an asynchronous message processing result;
a sending unit, configured to send the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request;
wherein the first server and the second server are two servers that are relatively independent.
A message hierarchy processing system, the system comprising:
the client is used for generating a message processing request and sending the message processing request to the first server;
the first server is used for dividing data to be responded into real-time response data and asynchronous response data, processing the real-time response data to obtain a real-time message processing result, and feeding the real-time message processing result back to the client; the asynchronous response data is also sent to a second server;
and the second server is used for processing the asynchronous response data to obtain an asynchronous message processing result and sending the asynchronous message processing result to the client.
A storage medium comprising a stored program, wherein the program performs the message ranking processing method as described in any one of the above.
An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
in response to a message processing request, dividing data to be responded into real-time response data and asynchronous response data, wherein the real-time response data is associated with the message processing request;
processing the real-time response data through a first server to obtain a real-time message processing result;
processing the asynchronous response data through a second server to obtain an asynchronous message processing result;
sending the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request;
wherein the first server and the second server are two servers that are relatively independent.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a message hierarchical processing method, a message hierarchical processing device and electronic equipment, which can divide data to be responded into real-time response data and asynchronous response data based on a message processing request, and process the real-time response data through a first server by a first server to obtain a real-time message processing result; the asynchronous response data are processed through the second server to obtain an asynchronous message processing result, so that the requirement of users on timely response of the concerned messages is met, and meanwhile, the processing pressure of the first server can be relieved by processing the asynchronous response data through the second server.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for hierarchical processing of a message according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a processing flow of answering report according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a server topology according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a message hierarchical processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, a long connection is provided in live systems for real-time message processing. The live broadcast room logic service bears the logic processing process of all real-time messages in the live broadcast room, but with the development of services, the processing flow specific to a certain message type becomes more and more complex.
The inventor of the present invention has found, through research on the above application scenarios, that if hierarchical processing of real-time message communication is possible, the following advantages will be obtained:
the steps of processing a message can be classified into different levels, processing results which are unnecessary by a requester are processed asynchronously, so that the response time is shortened, and the processing pressure of a server can be relieved.
An embodiment of the present invention provides a message hierarchical processing method, which is used for implementing hierarchical processing of message communication, and with reference to fig. 1, the method specifically includes:
s101, responding to the message processing request, and dividing data to be responded into real-time response data and asynchronous response data.
The message processing request originates from a client and may refer to a request that it wishes to obtain data that meets certain conditions from the current live data. For example, the message processing request is whether all students in the current live room are performing live learning.
The data to be responded refers to all live broadcast data currently, namely all data generated by the current live broadcast, such as flow data, interactive data, access data and the like. The real-time response data is data associated with the message processing request, namely data capable of completing the message processing request in the data to be responded. The asynchronous response data refers to data corresponding to a processing result that is not concerned by the current client, such as statistical data that can be statistically ranked.
And S102, processing the real-time response data through the first server to obtain a real-time message processing result.
S103, processing the asynchronous response data through a second server to obtain an asynchronous message processing result.
It should be noted that, in the implementation architecture of the present invention, the first server and the second server are independent servers, specifically, the first server may be a logic server, and the second server may be a micro server. And then, the real-time response data is processed through the first server to obtain a real-time message processing result, and the asynchronous response data is processed through the second server to obtain an asynchronous message processing result. Therefore, the real-time response data and the asynchronous response data are separately processed, the steps of processing the message are reduced, the data to be processed of the first server are reduced, the response speed is higher, and the pressure of the server is reduced.
In a possible implementation manner, the second server in the embodiment of the present invention may include a plurality of slave servers, and distribute the asynchronous response data to each of the sub servers, so that each of the sub servers generates an asynchronous message processing result. Namely, when asynchronous data is processed, the data can be analyzed based on the processing flow and distributed to the corresponding server for processing according to the analysis result, so that the processing efficiency is higher.
And S104, sending the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request.
The real-time message processing result obtained by the first server is directly fed back to the client sending the message processing request, the asynchronous message processing result obtained by the second server after processing can be directly sent to the client, or the asynchronous message processing result can be cached firstly and then sent when the request instruction of the user is obtained. In another possible implementation manner of the present invention, the corresponding prompt information is generated according to the asynchronous message processing result, so that the client determines whether to generate the request instruction of the asynchronous message processing result according to the prompt information. In this embodiment, the asynchronous message processing result may be cached, and the asynchronous message processing result may be sent to the client in response to receiving a request instruction for the asynchronous message processing result from the client.
The asynchronous message processing result can be cached firstly, and when a statistical request sent by a client is received, the asynchronous message processing result is subjected to information statistics to obtain a statistical result; and sending the statistical result to the client. The general statistical request needs to perform statistics on information meeting certain conditions, for example, statistics on information in a certain time period, so that the asynchronous message processing result can be cached first, and after the statistical condition is met, a statistical result is generated and fed back to the client.
For example, when the asynchronous message processing result is cached, prompt information corresponding to the asynchronous message processing result is generated, and if feedback information which can be displayed is generated by the client according to the prompt information, the asynchronous message processing result is sent to the client, so that the client displays the asynchronous message processing result. Specifically, if the asynchronous message processing result is an interactive data ranking list, the generated prompt information is the text information of the ranking list, and when the client user clicks the ranking list, all data of the interactive data ranking list is sent to the client, so that the client displays the chart information corresponding to the ranking list.
It should be noted that, when the client does not need to display the asynchronous data processing result, the asynchronous data processing result is switched from the cache state to the storage state, that is, stored in the target area, so that the result can be directly called and obtained through the storage information in the target area when the request corresponding to the asynchronous data is processed next time.
In a possible implementation manner of the embodiment of the present invention, the asynchronous response data includes an asynchronous response message queue generated by the first server, that is, the asynchronous response data is sent to the second server in the form of a message queue for processing. Wherein, said responding to the message processing request, dividing the data to be responded into real-time response data and asynchronous response data, including:
analyzing the message processing request to obtain demand information, wherein the demand information represents feedback information required to be obtained by a client corresponding to the message processing request;
determining real-time response data associated with the demand information in data to be responded;
and generating an asynchronous response message queue by the first server for the data except the real-time response data in the data to be responded.
When a message processing request sent by a client is received, the message processing request is analyzed to obtain demand information, and the demand information refers to feedback information which can be expected to be obtained by a client user. And then determining corresponding real-time response data in the data to be responded according to the requirement information, wherein the real-time response data is data to be processed immediately when a message processing request sent by the client is received. Therefore, the real-time response data is processed, and the demand information expected by the user can be obtained. A message queue of asynchronous response data, which may be the message queue through data extraction, is then generated by the first server and sent to the second server so that the second server can process the message. For example, a type identifier corresponding to each message processing request may be determined, the type identifier may be matched with the requirement information, and the processing flow corresponding to the message processing request may be split by the processing mode corresponding to the type identifier, so as to obtain real-time response data and asynchronous response data. So that real-time response data and asynchronous response data can be quickly determined according to the message processing request.
The following is an example of an online educational live scene. Referring to fig. 2, a processing flow of answering report is shown. The process comprises 9 steps:
step 1: judging whether the user answers the questions repeatedly;
step 2: counting the item options;
and step 3: counting the correct number of people in the live broadcast room;
and 4, step 4: counting the number of answering people in the live broadcast room;
and 5: adding a ranking list of a live broadcast room;
step 6: adding the ranking list of the group;
and 7: counting the number of the answering people of the team;
and 8: counting the number of the answers of the team;
and step 9: and generating a prompt language that the college students are all in the study.
From the perspective of the client-side reporter, the reporter only relates to whether reporting is successful or not, and the reporter does not care about the statistics of each option and various people, so that the real-time message request processing steps can be classified into two types: one category is concerned by the requester, such as whether to repeat the answer (step 1) and the prompt of college classmates who are studying (step 9) in the above processing flow, and one category can be concerned by other users in the system, such as various statistics (steps 2-8). According to this hierarchy, data of interest to the requestor can be returned after processing in the process flow, and the statistical process can be asynchronously processed in another service.
Because the embodiment of the present invention includes the first server and the second server, and the real-time response data is processed by the first server, when only the real-time response data needs to be processed, load balancing of the two servers may be considered, and a processing procedure of the real-time data is allocated to the two processors, or if the message processing request can be split into two sub-requests, data corresponding to each sub-request is respectively allocated to the first server and the second server to be processed, but it should be noted that since the first server and the second server process real-time data in the process, when the processing result is returned to the client, the processing result is immediately returned after the processing is completed. The method can improve the processing efficiency of the server.
When data processing is performed on a message processing request, a new demand is generated, and needs to be analyzed to determine whether the current demand should be returned immediately after submission or whether delayed reception is allowed, if the current demand is processed by a first server, and if the current demand is processed asynchronously by a second server. Or splitting the flow of the newly added message processing request according to the corresponding service logic to obtain real-time response data and asynchronous response data, and sending the corresponding data to a server for processing the data. Therefore, the embodiment of the present invention further includes: responding to a new message processing request received in the process of processing the current message processing request, and analyzing the message processing request; if the analysis result meets the real-time message processing condition (for example, the analysis result is data concerned by the requester), adding the new message processing request to a real-time message processing queue; and if the analysis result meets the asynchronous message processing condition, adding the new message processing request to an asynchronous message processing queue. The real-time message processing condition refers to a condition that the parsing result is data that the requester cares about, for example, whether the parsing result includes specific identification information, where the identification information represents an identification corresponding to the data that the requester cares about. The asynchronous message processing condition refers to a condition that the analysis result is data which is not in the interest of the requester temporarily, for example, the analysis result indicates that the new message processing request is request information selected by the requester through a recommendation interface, that is, the request is not a request directly issued by the requester and can be request data which is not in the interest of the requester temporarily.
The embodiment of the invention also provides a message hierarchical processing system, which comprises:
the client is used for generating a message processing request and sending the message processing request to the first server;
the first server is used for dividing data to be responded into real-time response data and asynchronous response data, processing the real-time response data to obtain a real-time message processing result, and feeding the real-time message processing result back to the client; the asynchronous response data is also sent to a second server;
and the second server is used for processing the asynchronous response data to obtain an asynchronous message processing result and pushing the asynchronous message processing result to the client.
The message classification processing system will be described below with the first server function as a logical service and the second server function as a microservice. Referring to fig. 3, a schematic diagram of a server topology according to an embodiment of the present invention is shown and described with reference to the process flow provided in fig. 2.
After the client sends the request, the logic service processes only the data concerned with the requesting client, and then triggers the return of step 2 in fig. 2; meanwhile, the logic service asynchronously sends data processing requests 3-1 to 3-n message queues, the micro service separates the request messages, and sends the processing results to the client through the push service after processing. Specifically, for each processing step of the message in fig. 2, after the logic service has processed step 1 and step 9, the logic service may return data, and steps 2 to 8 may all be sent to a message queue, and the results are sequentially pushed to the client after the micro service has been processed.
In the embodiment of the invention, the message grading processing improves the response time of the logic service, the response time is shortened because the steps of the current request processing are reduced, and meanwhile, the new requirement of the current request processing is increased immediately afterwards, and the time for the current request processing cannot be prolonged unlimitedly. The code complexity of the logic service is reduced, and because all the data processing is performed in the logic service, the code complexity of the logic service is reduced after a plurality of functions are split into the micro-service.
Referring to fig. 4, an embodiment of the present invention further provides a message classification processing apparatus, including:
a dividing unit 10, configured to, in response to a message processing request, divide data to be responded into real-time response data and asynchronous response data, where the real-time response data is associated with the message processing request;
the first processing unit 20 is configured to process the real-time response data through the first server to obtain a real-time message processing result;
the second processing unit 30 is configured to process the asynchronous response data through a second server to obtain an asynchronous message processing result;
a sending unit 40, configured to send the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request;
wherein the first server and the second server are two servers that are relatively independent.
On the basis of the above embodiment, the asynchronous response data includes an asynchronous response message queue generated by the first server, and the dividing unit includes:
the analysis subunit is configured to analyze the message processing request to obtain demand information, where the demand information represents feedback information that needs to be obtained by a client corresponding to the message processing request;
the determining subunit is used for determining real-time response data associated with the demand information in the data to be responded;
and the generating subunit is used for generating an asynchronous response message queue by the first server for the data except the real-time response data in the data to be responded.
On the basis of the above embodiment, the analysis subunit is specifically configured to:
analyzing the message processing request to obtain a type identifier corresponding to the message processing request;
and acquiring the demand information matched with the type identification.
On the basis of the above embodiment, the apparatus further includes:
the cache unit is used for caching the asynchronous message processing result;
and the asynchronous message sending unit is used for responding to a feedback instruction of the client aiming at the asynchronous message processing result and sending the asynchronous message processing result to the client.
On the basis of the foregoing embodiment, the asynchronous message sending unit is specifically configured to:
responding to a received statistical request sent by a client, and carrying out information statistics on the asynchronous message processing result to obtain a statistical result;
and sending the statistical result to the client.
On the basis of the foregoing embodiment, the second server includes a plurality of sub-servers, and the second processing unit is specifically configured to:
and distributing the asynchronous response data to each sub-server so that each sub-server generates an asynchronous message processing result.
It should be noted that, for the working processes of each module, sub-module, and unit in this embodiment, reference is made to the corresponding description in the above embodiments, and details are not repeated here.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the message hierarchical processing method when executed by a processor.
An embodiment of the present invention provides an electronic device, including: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
in response to a message processing request, dividing data to be responded into real-time response data and asynchronous response data, wherein the real-time response data is associated with the message processing request;
processing the real-time response data through a first server to obtain a real-time message processing result;
processing the asynchronous response data through a second server to obtain an asynchronous message processing result;
sending the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request;
wherein the first server and the second server are two servers that are relatively independent.
Optionally, the asynchronous response data includes an asynchronous response message queue generated by the first server, and the dividing the data to be responded into real-time response data and asynchronous response data in response to the message processing request includes:
analyzing the message processing request to obtain demand information, wherein the demand information represents feedback information required to be obtained by a client corresponding to the message processing request;
determining real-time response data associated with the demand information in data to be responded;
and generating an asynchronous response message queue by the first server for the data except the real-time response data in the data to be responded.
Optionally, the analyzing the message processing request to obtain the requirement information includes:
analyzing the message processing request to obtain a type identifier corresponding to the message processing request;
and acquiring the demand information matched with the type identification.
Optionally, the method further comprises:
caching the asynchronous message processing result;
and responding to a feedback instruction of the client for the asynchronous message processing result, and sending the asynchronous message processing result to the client.
Optionally, the sending the asynchronous message processing result to the client in response to receiving a feedback instruction for the asynchronous message processing result from the client includes:
responding to a received statistical request sent by a client, and carrying out information statistics on the asynchronous message processing result to obtain a statistical result;
and sending the statistical result to the client.
Optionally, the second server includes a plurality of sub-servers, and the processing the asynchronous response data by the second server to obtain an asynchronous message processing result includes:
and distributing the asynchronous response data to each sub-server so that each sub-server generates an asynchronous message processing result.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A message hierarchical processing method is characterized by comprising the following steps:
in response to a message processing request, dividing data to be responded into real-time response data and asynchronous response data, wherein the real-time response data is associated with the message processing request;
processing the real-time response data through a first server to obtain a real-time message processing result;
processing the asynchronous response data through a second server to obtain an asynchronous message processing result;
sending the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request;
wherein the first server and the second server are two servers that are relatively independent.
2. The method of claim 1, wherein the asynchronous response data comprises an asynchronous response message queue generated by the first server, and wherein the dividing the data to be responded into real-time response data and asynchronous response data in response to the message processing request comprises:
analyzing the message processing request to obtain demand information, wherein the demand information represents feedback information required to be obtained by a client corresponding to the message processing request;
determining real-time response data associated with the demand information in data to be responded;
and generating an asynchronous response message queue by the first server for the data except the real-time response data in the data to be responded.
3. The method of claim 2, wherein analyzing the message processing request to obtain the demand information comprises:
analyzing the message processing request to obtain a type identifier corresponding to the message processing request;
and acquiring the demand information matched with the type identification.
4. The method of claim 1, further comprising:
caching the asynchronous message processing result;
and responding to a feedback instruction of the client for the asynchronous message processing result, and sending the asynchronous message processing result to the client.
5. The method of claim 4, wherein sending the asynchronous message processing result to the client in response to receiving a feedback instruction for the asynchronous message processing result from the client comprises:
responding to a received statistical request sent by a client, and carrying out information statistics on the asynchronous message processing result to obtain a statistical result;
and sending the statistical result to the client.
6. The method of claim 1, wherein the second server comprises a plurality of sub-servers, and wherein processing the asynchronous response data by the second server to obtain an asynchronous message processing result comprises:
and distributing the asynchronous response data to each sub-server so that each sub-server generates an asynchronous message processing result.
7. A message classification processing apparatus, comprising:
the dividing unit is used for responding to a message processing request and dividing data to be responded into real-time response data and asynchronous response data, wherein the real-time response data is associated with the message processing request;
the first processing unit is used for processing the real-time response data through the first server to obtain a real-time message processing result;
the second processing unit is used for processing the asynchronous response data through a second server to obtain an asynchronous message processing result;
a sending unit, configured to send the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request;
wherein the first server and the second server are two servers that are relatively independent.
8. A message hierarchy processing system, the system comprising:
the client is used for generating a message processing request and sending the message processing request to the first server;
the first server is used for dividing data to be responded into real-time response data and asynchronous response data, processing the real-time response data to obtain a real-time message processing result, and feeding the real-time message processing result back to the client; the asynchronous response data is also sent to a second server;
and the second server is used for processing the asynchronous response data to obtain an asynchronous message processing result and sending the asynchronous message processing result to the client.
9. A storage medium characterized by comprising a stored program, wherein the program executes the message hierarchy processing method of any one of claims 1 to 6.
10. An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
in response to a message processing request, dividing data to be responded into real-time response data and asynchronous response data, wherein the real-time response data is associated with the message processing request;
processing the real-time response data through a first server to obtain a real-time message processing result;
processing the asynchronous response data through a second server to obtain an asynchronous message processing result;
sending the real-time message processing result and the asynchronous message processing result to a client corresponding to the message processing request;
wherein the first server and the second server are two servers that are relatively independent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010877885.9A CN112019870A (en) | 2020-08-27 | 2020-08-27 | Message classification processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010877885.9A CN112019870A (en) | 2020-08-27 | 2020-08-27 | Message classification processing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112019870A true CN112019870A (en) | 2020-12-01 |
Family
ID=73504100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010877885.9A Pending CN112019870A (en) | 2020-08-27 | 2020-08-27 | Message classification processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112019870A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113079110A (en) * | 2021-04-23 | 2021-07-06 | 盛立安元科技(杭州)股份有限公司 | Message processing method, device, equipment, storage medium and program product |
CN113259254A (en) * | 2021-05-31 | 2021-08-13 | 上海有孚智数云创数字科技有限公司 | Method, system, device, equipment and medium for processing micro-service message request |
CN116541416A (en) * | 2023-04-07 | 2023-08-04 | 杭州浩联智能科技有限公司 | Optimization processing method and device for request data |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101882161A (en) * | 2010-06-23 | 2010-11-10 | 中国工商银行股份有限公司 | Application level asynchronous task scheduling system and method |
CN105095310A (en) * | 2014-05-20 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Data processing method, first server, second server and data processing system |
US20160105503A1 (en) * | 2014-10-11 | 2016-04-14 | Papaya Mobile, Inc. | Data Synchronization Methods and Systems |
CN109196532A (en) * | 2016-06-27 | 2019-01-11 | 谷歌有限责任公司 | The asynchronous process of digital assistant request |
WO2020091181A1 (en) * | 2018-11-01 | 2020-05-07 | 엘지전자 주식회사 | Method and apparatus for transmitting and receiving signal in wireless communication system |
CN111176858A (en) * | 2019-11-25 | 2020-05-19 | 腾讯云计算(北京)有限责任公司 | Data request processing method and device |
CN111478968A (en) * | 2020-04-08 | 2020-07-31 | 腾讯科技(深圳)有限公司 | Data processing method and related device |
-
2020
- 2020-08-27 CN CN202010877885.9A patent/CN112019870A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101882161A (en) * | 2010-06-23 | 2010-11-10 | 中国工商银行股份有限公司 | Application level asynchronous task scheduling system and method |
CN105095310A (en) * | 2014-05-20 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Data processing method, first server, second server and data processing system |
US20160105503A1 (en) * | 2014-10-11 | 2016-04-14 | Papaya Mobile, Inc. | Data Synchronization Methods and Systems |
CN109196532A (en) * | 2016-06-27 | 2019-01-11 | 谷歌有限责任公司 | The asynchronous process of digital assistant request |
WO2020091181A1 (en) * | 2018-11-01 | 2020-05-07 | 엘지전자 주식회사 | Method and apparatus for transmitting and receiving signal in wireless communication system |
CN111176858A (en) * | 2019-11-25 | 2020-05-19 | 腾讯云计算(北京)有限责任公司 | Data request processing method and device |
CN111478968A (en) * | 2020-04-08 | 2020-07-31 | 腾讯科技(深圳)有限公司 | Data processing method and related device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113079110A (en) * | 2021-04-23 | 2021-07-06 | 盛立安元科技(杭州)股份有限公司 | Message processing method, device, equipment, storage medium and program product |
CN113079110B (en) * | 2021-04-23 | 2022-08-30 | 盛立安元科技(杭州)股份有限公司 | Message processing method, device, equipment and storage medium |
CN113259254A (en) * | 2021-05-31 | 2021-08-13 | 上海有孚智数云创数字科技有限公司 | Method, system, device, equipment and medium for processing micro-service message request |
CN116541416A (en) * | 2023-04-07 | 2023-08-04 | 杭州浩联智能科技有限公司 | Optimization processing method and device for request data |
CN116541416B (en) * | 2023-04-07 | 2024-03-15 | 杭州浩联智能科技有限公司 | Optimization processing method and device for request data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021244211A1 (en) | Blockchain message processing method and apparatus, computer and readable storage medium | |
CN112019870A (en) | Message classification processing method and device and electronic equipment | |
WO2018133306A1 (en) | Dispatching method and device in content delivery network | |
US9621958B2 (en) | Deferred, on-demand loading of user presence within a real-time collaborative service | |
US11646981B2 (en) | Providing instant messaging service | |
JP2014523568A (en) | Efficient conditioning | |
US20050050151A1 (en) | Scalable instant messaging architecture | |
WO2020119540A1 (en) | Group profile picture generation method and device | |
US8230031B2 (en) | System and method for providing enhanced instant messaging | |
CN110570215A (en) | Intelligent customer service system | |
WO2019047568A1 (en) | User call processing method, apparatus, computer device, and storage medium | |
DE202017106494U1 (en) | Automatic generation and transmission of a status of a user and / or a predicted duration of the status | |
CN110233840B (en) | Service processing method, device, equipment and storage medium | |
US9350948B2 (en) | Method and system for providing video service | |
CN109951540A (en) | A kind of data transmission method, device and electronic equipment | |
CN103309963A (en) | Intelligent customer service processing method and system | |
CN113556695A (en) | Information interaction method and information interaction system based on 5G message | |
CN110839061B (en) | Data distribution method, device and storage medium | |
WO2023159879A1 (en) | Message processing method and system, storage medium, and electronic device | |
US11575528B1 (en) | Dynamic virtual meeting, online webinar and distance-based education systems and methods | |
CN113473240B (en) | Data processing method and device for live broadcasting room, electronic equipment and storage medium | |
CN112035760B (en) | Task allocation method and computer equipment | |
CN114884924A (en) | Audio and video channel selection method and device, electronic equipment and storage medium | |
CN111130983B (en) | Method and equipment for sending information and generating result information | |
CN113807912A (en) | Method and computer program product for dynamically matching user and broker connections |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201201 |
|
RJ01 | Rejection of invention patent application after publication |