Data response methods, apparatus, equipment and storage media

By performing conditional judgments and asynchronous data processing on web page requests, generating and encapsulating middle platform interaction requests, the problem of low data response efficiency in the middle platform system is solved, achieving fast response and efficient data acquisition, and improving system availability.

CN114969526BActive Publication Date: 2026-05-26CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA PING AN PROPERTY INSURANCE CO LTD
Filing Date
2022-05-26
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing middleware systems have low data response efficiency, especially in multi-middleware aggregation scenarios, which can easily lead to long response times or timeouts. Furthermore, if the request link of a middleware system is blocked during serial synchronous acquisition, the entire system will fail to respond.

Method used

By determining whether the webpage request meets the preset startup conditions, if it does not, the request is parsed and a middle platform interaction request is generated, which is then encapsulated and asynchronously acquired. The preset middle platform system is used to request and aggregate the response data, and finally the aggregated data is sent to the target application for display.

Benefits of technology

It enables rapid response and efficient acquisition of data from the middleware system, avoiding global response failures caused by the failure of a single middleware system, and improving the system's high availability and data query efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114969526B_ABST
    Figure CN114969526B_ABST
Patent Text Reader

Abstract

This invention relates to the field of artificial intelligence and discloses a data response method, apparatus, device, and storage medium. The method includes: acquiring a webpage request from a target application and determining whether the webpage request meets preset startup conditions; if the webpage request does not meet the preset startup conditions, parsing the webpage request to obtain multiple middleware interaction requests, and encapsulating each middleware interaction request; based on the encapsulation result, using a preset middleware system to respond to application data requests, obtaining response data, and aggregating the response data to obtain first aggregated data; sending the first aggregated data to the target application and displaying the first aggregated data. This invention achieves rapid response and acquisition of data from the middleware system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence, and in particular to a data response method, apparatus, device, and storage medium. Background Technology

[0002] With the rapid development of internet applications, the number of enterprises using the internet nationwide is constantly increasing. Most enterprises have deployed mobile application platforms, and the concept of a middle platform has become widely popular and applied. These platforms generally consist of a front-end, a back-end, and a middle platform. Generally speaking, larger enterprise-level projects often have multiple middle platforms for support, especially in the case of data interaction in the business back-end, where there are many scenarios involving the aggregation of multiple middle platforms. For an application project, a single application function often involves the support of several or even a dozen different business middle platforms.

[0003] Current front-end application development typically involves web page requests or remote service calls based on remote procedure calls (RPCs). The program uses a serial synchronous acquisition method to call the interfaces of various middleware systems for data exchange. However, this middleware data exchange method is prone to long response times or even timeouts when dealing with large amounts of data. Furthermore, if the request link to one middleware system is blocked during serial synchronous acquisition, the entire system will fail to respond. In other words, the current middleware system has low data response efficiency. Summary of the Invention

[0004] The main objective of this invention is to solve the problem of low response efficiency of existing middleware systems.

[0005] The first aspect of the present invention provides a data response method, characterized in that the data response method includes: acquiring a webpage request from a target application and determining whether the webpage request meets preset startup conditions; if the webpage request does not meet the preset startup conditions, parsing the webpage request to obtain multiple middleware interaction requests, and encapsulating each middleware interaction request; based on the encapsulation result, using a preset middleware system to respond to application data requests, obtaining response data, and aggregating the response data to obtain first aggregated data; sending the first aggregated data to the target application, and displaying the first aggregated data.

[0006] Optionally, in a first implementation of the first aspect of the present invention, determining whether the webpage request meets the preset startup conditions includes: generating a query instruction for the cache area corresponding to the application data using a preset cache control component; traversing the cache area according to the query instruction; and determining whether the webpage request meets the preset component startup conditions based on the traversal results.

[0007] Optionally, in a second implementation of the first aspect of the present invention, after determining whether the webpage request meets the preset startup conditions, the method further includes: if the webpage request meets the preset component startup conditions, determining whether the cached data corresponds to the webpage request; if the cached data corresponds to the webpage request, extracting the cached data in the cache area according to the traversal result, and aggregating the cached data to obtain second aggregated data; sending the second aggregated data to the target application, and displaying the second aggregated data.

[0008] Optionally, in a third implementation of the first aspect of the present invention, the step of parsing the webpage request to obtain multiple middleware interaction requests if the webpage request does not meet the preset startup conditions includes: if the webpage request does not meet the preset startup conditions, determining whether the webpage request meets the preset asynchronous execution conditions; if the webpage request meets the preset asynchronous execution conditions, selecting the middleware identifier information associated with the webpage request from the preset middleware identifier list, and generating multiple middleware interaction requests based on the middleware identifier information.

[0009] Optionally, in the fourth implementation of the first aspect of the present invention, the step of using a pre-set middleware system to request and respond to application data based on the encapsulation result, and obtaining response data, includes: obtaining initial parameters corresponding to each middleware interaction request from a pre-set asynchronous interaction set based on the encapsulation result; generating corresponding execution instructions using the language structures required by each data middleware in the pre-set middleware system and the initial parameters; obtaining an interaction thread equal to the number of execution instructions based on the execution instructions, and executing data query behavior of each data middleware in the middleware system based on the interaction threads; and generating response data corresponding to each middleware interaction request based on the execution result of the data query behavior.

[0010] Optionally, in a fifth implementation of the first aspect of the present invention, the step of aggregating the response data to obtain first aggregated data includes: extracting the data type identifier corresponding to the response data and classifying response data with the same data type identifier; and assembling the classified response data into a streaming data format using a preset data transmission specification to obtain the first aggregated data.

[0011] A second aspect of the present invention provides a data response apparatus, comprising: a request judgment module, configured to acquire a webpage request from a target application and determine whether the webpage request meets preset startup conditions; a request encapsulation module, configured to parse the webpage request to obtain multiple middleware interaction requests if the webpage request does not meet the preset startup conditions, and encapsulate each middleware interaction request; a data response module, configured to respond to application data requests using a preset middleware system based on the encapsulation results, obtain response data, and aggregate the response data to obtain first aggregated data; and a data display module, configured to send the first aggregated data to the target application and display the first aggregated data.

[0012] Optionally, in a first implementation of the second aspect of the present invention, the request determination module includes: an instruction generation unit, used to generate a query instruction for the cache area corresponding to the application data using a preset cache control component; and a cache traversal unit, used to traverse the cache area according to the query instruction, and determine whether the web page request meets the preset component activation conditions based on the traversal result.

[0013] Optionally, in a second implementation of the second aspect of the present invention, the cache display module includes: a data traversal unit, configured to determine whether the cached data corresponds to the webpage request if the webpage request meets the preset component activation conditions; a request matching unit, configured to extract the cached data in the cache area according to the traversal result if the cached data corresponds to the webpage request, and aggregate the cached data to obtain second aggregated data; and a data display unit, configured to send the second aggregated data to the target application and display the second aggregated data.

[0014] Optionally, in a third implementation of the second aspect of the present invention, the request encapsulation module includes: an asynchronous judgment unit, configured to determine whether the web page request meets preset asynchronous execution conditions if the web page request does not meet preset startup conditions; and an identifier selection unit, configured to select middleware identifier information associated with the web page request from a preset middleware identifier list if the web page request meets preset asynchronous execution conditions, and generate multiple middleware interaction requests based on the middleware identifier information.

[0015] Optionally, in a fourth implementation of the second aspect of the present invention, the data response module includes: a parameter acquisition unit, configured to acquire initial parameters corresponding to each of the middle platform interaction requests from a preset asynchronous interaction set based on the encapsulation result; an instruction conversion unit, configured to generate corresponding execution instructions using the language structures required by each data middle platform in the preset middle platform system and the initial parameters; a data query unit, configured to acquire an interaction thread equal to the number of execution instructions based on each execution instruction, and execute data query behavior of each data middle platform in the middle platform system based on the interaction thread; and a data generation unit, configured to generate response data corresponding to each of the middle platform interaction requests based on the execution result of the data query behavior.

[0016] Optionally, in a fifth implementation of the second aspect of the present invention, the data response module includes: a data classification unit, used to extract the data type identifier corresponding to the response data and classify the response data with the same data type identifier; and a data assembly unit, used to assemble the classified response data into a streaming data format using a preset data transmission specification to obtain first aggregated data.

[0017] A third aspect of the present invention provides a data response device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor invokes the instructions in the memory to cause the data response device to perform the various steps of the data response method described above.

[0018] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the steps of the data response method described above.

[0019] The technical solution provided by this invention involves obtaining a webpage request from a target application and determining whether the webpage request meets preset startup conditions. If the webpage request does not meet the preset startup conditions, the webpage request is parsed to obtain multiple middleware interaction requests, and each middleware interaction request is encapsulated. Based on the encapsulation result, a preset middleware system is used to respond to application data requests, obtaining response data. The response data is then aggregated to obtain first aggregated data. The first aggregated data is sent to the target application and displayed. Compared to existing technologies, this application determines whether the data corresponding to the current data request is already cached. If there is no corresponding cached data, an asynchronous determination is made, and then the data request is analyzed asynchronously. The analysis results are used to asynchronously acquire data from each middleware system, thereby encapsulating and displaying the acquired data. This achieves asynchronous querying of data from each middleware system, thus enabling efficient acquisition of the required query data. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the first embodiment of the data response method in this invention;

[0021] Figure 2 This is a schematic diagram of a second embodiment of the data response method in this invention;

[0022] Figure 3 This is a schematic diagram of a third embodiment of the data response method in this invention;

[0023] Figure 4 This is a schematic diagram of the fourth embodiment of the data response method in this invention;

[0024] Figure 5 This is a schematic diagram of the fifth embodiment of the data response method in this invention;

[0025] Figure 6 This is a schematic diagram of one embodiment of the data response device in this invention;

[0026] Figure 7 This is a schematic diagram of another embodiment of the data response device in this invention;

[0027] Figure 8 This is a schematic diagram of one embodiment of the data response device in this invention. Detailed Implementation

[0028] This invention provides a data response method, apparatus, device, and storage medium. The method includes: acquiring a webpage request from a target application and determining whether the webpage request meets preset startup conditions; if the webpage request does not meet the preset startup conditions, parsing the webpage request to obtain multiple middleware interaction requests and encapsulating each middleware interaction request; based on the encapsulation result, using a preset middleware system to respond to application data requests, obtaining response data, and aggregating the response data to obtain first aggregated data; sending the first aggregated data to the target application and displaying the first aggregated data. This invention achieves rapid response and acquisition of data from the middleware system.

[0029] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0030] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 The first embodiment of the data response method in this invention includes:

[0031] 101. Obtain the web page request of the target application and determine whether the web page request meets the preset startup conditions;

[0032] It is understood that the executing entity of this invention can be a data response device, a terminal, or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.

[0033] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0034] In this embodiment, a webpage request refers to a data retrieval request command generated when a frontend or application (APP) obtains relevant data. The backend and middleware can then parse this command and send the corresponding data back to the frontend or application. The preset startup conditions refer to whether the webpage request sent by the frontend or application to the application backend meets the data processing conditions of the application backend. By performing preliminary analysis and processing on the obtained webpage requests, it can be determined whether the current webpage request meets the data retrieval conditions, thereby intercepting illegal data queries and protecting the security of backend data.

[0035] In practical applications, the corresponding query requests are obtained through the front-end or application (APP), and then the data application interface is used to generate corresponding query parameter requests, thereby generating corresponding web application requests. These web application requests are then analyzed to determine whether the request format and requirements meet the preset startup conditions. In this way, queries that do not meet the query requirements or contain illegal data are filtered out, ensuring the security of backend data.

[0036] 102. If the web page request does not meet the preset startup conditions, parse the web page request to obtain multiple middle platform interaction requests, and encapsulate each middle platform interaction request.

[0037] In this embodiment, the middle platform interaction request refers to the situation where the data required by the current webpage request does not exist in the cache area, and the corresponding middle platform system needs to be called to query the corresponding data. Based on the webpage request, data retrieval instructions for each corresponding middle platform are generated, thereby realizing the data interaction function of each middle platform system. The encapsulation here refers to the process of transforming and packaging the interaction requests generated by each corresponding middle platform system according to the current processing needs, so as to obtain the instruction information that meets the needs of the middle platform data query request.

[0038] In practical applications, after judging a webpage request as a data query request, if the request does not meet the preset startup conditions, it is parsed. Based on the request information, a preset information sending format is used to analyze the request information, extracting the data fragments corresponding to the data query to be performed and selecting the middleware identifier information associated with the webpage request. These data fragments are then converted into an information processing format that the asynchronous controller can process, resulting in multiple middleware interaction requests. These requests are then transformed and packaged to encapsulate the instruction information required for the middleware data query request. By parsing the webpage request and encapsulating the parsing results—the middleware interaction requests—the corresponding middleware request instruction for the current data query can be obtained, enabling more efficient multi-threaded asynchronous queries on the corresponding middleware system.

[0039] 103. Based on the encapsulation results, use the pre-built middleware system to request and respond to application data, obtain response data, and aggregate the response data to obtain the first aggregated data;

[0040] In this embodiment, the request response refers to each middleware system performing a corresponding data query operation on the data stored in the corresponding middleware system according to the encapsulated query request sent by the asynchronous task executor, and then returning the queried data to the asynchronous task executor; the data aggregation refers to summarizing the data feedback results from each middleware system, and then organizing the summarized data according to a preset processing method to obtain the aggregated data.

[0041] In practical applications, based on the encapsulation results of the middle platform interaction requests, initial parameters corresponding to each middle platform interaction request are obtained from a pre-set asynchronous interaction set. Then, using the language structures required by each data middle platform in the pre-set middle platform system, corresponding execution instructions are generated using each initial parameter. Next, an interaction thread equal to the number of execution instructions is obtained, and based on these interaction threads, data query behaviors of each data middle platform in the middle platform system are executed. Based on the execution results of the data query behaviors, response data corresponding to each middle platform interaction request is generated. This response data is then aggregated to obtain the first aggregated data. By responding to data from each middle platform system based on the encapsulation results and aggregating the corresponding data to obtain the first aggregated data, asynchronous data query operations on each middle platform system are realized, thereby quickly obtaining the data to be queried.

[0042] 104. Send the first aggregated data to the target application and display the first aggregated data.

[0043] In this embodiment, the target application refers to the front-end webpage or application APP that generates this data query request; the display refers to the target application processing the first aggregated data according to the current request, thereby displaying the processed page, dynamic content, etc.

[0044] In practical applications, the data type identifiers corresponding to the response data are extracted, and response data with the same data type identifiers are categorized. Then, using a pre-defined data transmission standard, the categorized response data is assembled into a streaming data format to obtain the first aggregated data. This first aggregated data is then displayed on the page. This process sends the retrieved first aggregated data to the target application, which then displays the data according to its current page display functionality, allowing for a more intuitive way to query and retrieve the data.

[0045] In this embodiment of the invention, a webpage request from a target application is obtained, and it is determined whether the webpage request meets preset startup conditions. If the webpage request does not meet the preset startup conditions, the webpage request is parsed to obtain multiple middleware interaction requests, and each middleware interaction request is encapsulated. Based on the encapsulation result, the application data request response is performed using a preset middleware system to obtain response data, and the response data is aggregated to obtain first aggregated data. The first aggregated data is sent to the target application and displayed. Compared with the prior art, this application determines whether the data corresponding to the current data request is already cached. If there is no corresponding cached data, an asynchronous judgment is performed, and then the data request is analyzed asynchronously. The analysis result is used to asynchronously acquire data from each middleware system, thereby encapsulating and displaying the acquired data. This achieves asynchronous querying of data from each middleware system, thereby efficiently obtaining the required query data.

[0046] Please see Figure 2 The second embodiment of the data response method in this invention includes:

[0047] 201. Use the pre-built cache control component to generate query instructions for the cache region corresponding to the application data;

[0048] In this embodiment, the cache control component refers to the control component used to determine whether the current web page request meets the preset opening conditions. This component mainly consists of a controller and its peripheral components, and can perform data judgment on web page request information.

[0049] In practical applications, data requests generated and sent by the front-end or application (such as APIs) are processed to obtain the target application's webpage request. A pre-built caching component analyzes and processes the obtained webpage request, generating a query command for the corresponding cached area based on the information format within the webpage request. By analyzing and processing the data to obtain the corresponding query command, the current webpage request can be analyzed, allowing the cache control component to determine the appropriate data query command.

[0050] 202. According to the query command, traverse the cache area, and based on the traversal results, determine whether the web page request meets the conditions for enabling the preset component;

[0051] In this embodiment, the cache area refers to the data storage area used to store temporary processing data. This storage area has a certain time limit for data storage. After the preset time or data storage capacity is reached, the data will be dynamically cleared.

[0052] In practical applications, based on the query command obtained through analysis, the information from the query command is used to traverse the pre-set cache area. By traversing the pre-set cache area, it can be determined whether the cached data area still contains cached data. Then, based on the traversal result, it is determined whether the web page request meets the pre-set component activation conditions. In other words, the traversal result determines whether the pre-set cache area contains cached data. This initial determination of the pre-set cache area indicates whether there is still cached data. If so, and the web page request meets the pre-set component activation conditions, it is determined whether the cached data corresponds to the web page request. If the cached data corresponds to the web page request, based on the traversal result, the cached data in the cache area is extracted and aggregated to obtain second aggregated data. This second aggregated data is then sent to the target application for display. This accelerates the acquisition of relevant data, eliminating the need for queries through the middleware system and improving the efficiency of data retrieval by the front-end or application (APP).

[0053] 203. If the web page request does not meet the preset startup conditions, parse the web page request to obtain multiple middle platform interaction requests, and encapsulate each middle platform interaction request;

[0054] 204. Based on the encapsulation results, the pre-built middleware system is used to request and respond to application data, obtain response data, and then the response data is aggregated to obtain the first aggregated data.

[0055] 205. Send the first aggregated data to the target application and display the first aggregated data.

[0056] In this embodiment of the invention, a query instruction for the cache region corresponding to application data is generated using a pre-set cache control component. Based on the query instruction, the cache region is traversed, and the result of the traversal determines whether the webpage request meets the pre-set component's enabling conditions. Compared to existing technologies, this application generates a corresponding query instruction using a cache control component, and then uses this query instruction to traverse the cached data in the pre-set cache region. This allows for the determination of whether the cache pre-stores data, thus determining whether the webpage request meets the pre-set component's enabling conditions, achieving preliminary processing of the webpage request, and accelerating the query efficiency of relevant data.

[0057] Please see Figure 3 The third embodiment of the data response method in this invention includes:

[0058] 301. Obtain the web page request of the target application and determine whether the web page request meets the preset startup conditions;

[0059] 302. If the webpage request does not meet the preset startup conditions, then determine whether the webpage request meets the preset asynchronous execution conditions;

[0060] In this embodiment, the asynchronous execution condition refers to the following: when a process is executing a request, if the request requires a certain period of time to return information, and the process will wait indefinitely until it receives the return information before continuing execution, then it is a synchronous execution condition; if the process does not need to wait indefinitely but continues to execute subsequent operations regardless of the state of other processes, then it is an asynchronous execution condition. By judging the asynchronous execution condition of the current webpage request, and then performing asynchronous data queries on webpages that meet the conditions, the execution efficiency of data queries can be improved.

[0061] In practical applications, after judging the asynchronous execution conditions of the current web page request, if the web page request does not meet the preset start conditions, then the web page request is judged to see if it meets the preset asynchronous execution conditions.

[0062] 303. If the web page request meets the preset asynchronous execution conditions, select the middle platform identifier information associated with the web page request from the preset middle platform identifier list, and generate multiple middle platform interaction requests based on the middle platform identifier information.

[0063] In this embodiment, the pre-defined middle platform identifier list refers to the corresponding identifier information table pre-defined for each middle platform system. The middle platform identifier information refers to the identifiable naming of each middle platform system built in the backend, enabling the retrieval of the corresponding middle platform system through its identifier. The middle platform interaction request refers to the relevant instruction information for data retrieval from the middle platform. By identifying the middle platform identifier information associated with webpage requests, the middle platform interaction requests of the corresponding middle platform systems can be identified, enabling rapid location and asynchronous data querying of the relevant middle platform systems.

[0064] In practical applications, web page requests are evaluated to determine if they meet predefined asynchronous execution conditions. If not, the relevant middleware system data is queried and retrieved as normal in serial processing. If the requests meet the conditions, the middleware information is analyzed and processed. The required middleware identifiers associated with the analysis results are selected from a predefined list of middleware identifiers. Based on these identifiers, multiple middleware interaction requests are generated to perform the data query. These requests are then encapsulated into an asynchronous interaction set, enabling asynchronous thread-based middleware system data querying.

[0065] 304. Based on the encapsulation result, the application data request and response are processed using the pre-built middleware system to obtain response data, and the response data is aggregated to obtain the first aggregated data;

[0066] 305. Send the first aggregated data to the target application and display the first aggregated data.

[0067] In this embodiment of the invention, if a webpage request does not meet the preset startup conditions, it is determined whether the webpage request meets the preset asynchronous execution conditions. If the webpage request meets the preset asynchronous execution conditions, the middleware identifier information associated with the webpage request is selected from the preset middleware identifier list, and multiple middleware interaction requests are generated based on the middleware identifier information. Compared with the prior art, this application, by determining whether a webpage request meets the asynchronous execution conditions, and then parsing the webpage requests that meet the conditions to obtain the middleware interaction requests and encapsulate them, can achieve fast querying of asynchronous threads of various middleware systems, thereby accelerating the speed of simultaneous data querying.

[0068] Please see Figure 4 The fourth embodiment of the data response method in this invention includes:

[0069] 401. Obtain the web page request of the target application and determine whether the web page request meets the preset startup conditions;

[0070] 402. If the web page request does not meet the preset startup conditions, then parse the web page request to obtain multiple middle platform interaction requests, and encapsulate each middle platform interaction request.

[0071] 403. Based on the encapsulation result, obtain the initial parameters corresponding to the interaction requests of each middle platform from the preset asynchronous interaction set;

[0072] In this embodiment, the preset asynchronous interaction set refers to the asynchronous interaction set obtained after processing the interaction requests from each middle platform; the initial parameters refer to the parameters of the corresponding data type when the middle platform interaction request performs a data query.

[0073] In practical applications, based on the encapsulation results of the middle platform interaction requests, each middle platform interaction request is extracted from the pre-set middle platform interaction set. For the corresponding middle platform system, the initial parameters corresponding to the required data type are queried, thereby realizing the acquisition of relative type data.

[0074] 404. Utilize the language structures required by each data platform in the pre-built middleware system, and generate corresponding execution instructions using each initial parameter;

[0075] In this embodiment, the language structure refers to the query statement structure of the query instructions corresponding to each middleware system; the instruction refers to the instruction information for querying the required data in the middleware system; by converting the corresponding web page request into an execution instruction, asynchronous data query instructions for each middleware system are realized.

[0076] In practical applications, by utilizing the language structures required by each data platform in the pre-built middleware system, the initial parameters in the web page request information are written according to the pre-built language structures and transformed into corresponding middleware execution instructions.

[0077] 405. Obtain the same number of interaction threads as the execution instructions, and execute the data query behavior of each data platform in the middle platform system based on the interaction threads;

[0078] In this embodiment, the interaction thread refers to a thread that performs asynchronous interaction processing with each middleware system. By using asynchronous querying, data can be queried from multiple middleware systems simultaneously, thus accelerating the efficiency of middleware data querying.

[0079] In practical applications, based on the execution instructions obtained from the above processing, a corresponding number of interactive threads are generated. Then, based on the interactive threads, asynchronous thread queries are performed on each middle platform system to execute data query behavior of each data middle platform in the middle platform system.

[0080] 406. Based on the execution results of data query behavior, generate response data corresponding to the interaction requests of each middle platform;

[0081] In this embodiment, based on the execution result of the data query behavior obtained from the above processing, the corresponding query data is extracted, and then the response data corresponding to each middle platform interaction request is generated.

[0082] 407. Send the first aggregated data to the target application and display the first aggregated data.

[0083] In this embodiment of the invention, based on the encapsulation result, initial parameters corresponding to the interaction requests of each middle platform are obtained from a pre-set asynchronous interaction set; using the language structures required by each data middle platform in the pre-set middle platform system, corresponding execution instructions are generated using each initial parameter; an interaction thread with the same number of execution instructions is obtained according to each execution instruction, and based on the interaction thread, the data query behavior of each data middle platform in the middle platform system is executed; based on the execution result of the data query behavior, response data corresponding to each middle platform interaction request is generated. Compared with the prior art, this application analyzes the encapsulation result to generate corresponding execution instructions, and then uses an asynchronous execution method to perform data queries on each middle platform system using the execution instructions, thereby asynchronously obtaining the required query data, making full use of system resources, accelerating data query efficiency, and improving system high availability.

[0084] Please see Figure 5 The fifth embodiment of the data response method in this invention includes:

[0085] 501. Obtain the web page request of the target application and determine whether the web page request meets the preset startup conditions;

[0086] 502. If the web page request does not meet the preset startup conditions, then parse the web page request to obtain multiple middle platform interaction requests, and encapsulate each middle platform interaction request.

[0087] 503. Extract the data type identifiers corresponding to the response data and classify the response data with the same data type identifiers;

[0088] In this embodiment, the data type identifier refers to a valid character sequence used to identify class names, variable names, method names, type names, array names, and file names. In other words, the identifier is the name used to identify various data types. By extracting the data type identifiers corresponding to the response data and classifying the response data according to the data type identifiers, the response data can be classified and processed to better view and process the queried data.

[0089] In practical applications, based on the encapsulation results, the pre-built middleware system is used to request and respond to application data, obtain response data, extract the corresponding data type identifier from the response data information, and then classify the response data according to the extracted data with the same data type identifier.

[0090] 504. Using the preset data transmission specifications, the categorized response data is assembled into a streaming data format to obtain the first aggregated data;

[0091] In this embodiment, the preset data transmission standard refers to the transmission format of relevant response data transmitted to the front end or application (APP) for subsequent viewing and processing; the flow data format refers to the transmission format of various corresponding data types, such as images, tables, and text. By converting the data, the response data obtained from various middleware systems can better conform to the data transmission standard, thereby accelerating data transmission and processing.

[0092] In practical applications, the categorized response data is processed using a pre-defined data transmission standard to assemble the data transmission information in a streaming data format, thereby obtaining the first aggregated data.

[0093] 505. Send the first aggregated data to the target application and display the first aggregated data.

[0094] In this embodiment of the invention, the data type identifier corresponding to the response data is extracted, and response data with the same data type identifier are categorized. The categorized response data is then assembled into a streaming data format using a preset data transmission standard to obtain the first aggregated data. Compared to existing technologies, this application, by organizing and analyzing the response data, converts the response data into information conforming to data transmission standards, facilitating the transmission and processing of relevant response data and accelerating data flow efficiency.

[0095] The data response method in the embodiments of the present invention has been described above. The data response device in the embodiments of the present invention will be described below. Please refer to [link / reference]. Figure 6 One embodiment of the data response device in this invention includes:

[0096] The request judgment module 601 is used to obtain the web page request of the target application and determine whether the web page request meets the preset startup conditions.

[0097] The request encapsulation module 602 is used to parse the web page request if the web page request does not meet the preset startup conditions, obtain multiple middle platform interaction requests, and encapsulate each middle platform interaction request;

[0098] The data response module 603 is used to respond to application data requests using a pre-set middleware system based on the encapsulation result, obtain response data, and aggregate the response data to obtain first aggregated data.

[0099] The data display module 604 is used to send the first aggregated data to the target application and display the first aggregated data.

[0100] In this embodiment of the invention, a webpage request from a target application is obtained, and it is determined whether the webpage request meets preset startup conditions. If the webpage request does not meet the preset startup conditions, the webpage request is parsed to obtain multiple middleware interaction requests, and each middleware interaction request is encapsulated. Based on the encapsulation result, a preset middleware system is used to respond to application data requests, obtaining response data. The response data is then aggregated to obtain first aggregated data. The first aggregated data is sent to the target application and displayed. Compared to existing technologies, this application determines whether the data corresponding to the current data request is already cached. If there is no corresponding cached data, an asynchronous determination is made, and then the data request is analyzed asynchronously. The analysis results are used to asynchronously acquire data from each middleware system, thereby encapsulating and displaying the acquired data. This achieves asynchronous querying of data from each middleware system, thus enabling efficient acquisition of the required query data.

[0101] Please see Figure 7 Another embodiment of the data response device in this invention includes:

[0102] The request judgment module 601 is used to obtain the web page request of the target application and determine whether the web page request meets the preset startup conditions.

[0103] The request encapsulation module 602 is used to parse the web page request if the web page request does not meet the preset startup conditions, obtain multiple middle platform interaction requests, and encapsulate each middle platform interaction request;

[0104] The data response module 603 is used to respond to application data requests using a pre-set middleware system based on the encapsulation result, obtain response data, and aggregate the response data to obtain first aggregated data.

[0105] The data display module 604 is used to send the first aggregated data to the target application and display the first aggregated data.

[0106] Furthermore, the request determination module 601 includes:

[0107] The instruction generation unit 6011 is used to generate query instructions for the cache area corresponding to the application data using a preset cache control component;

[0108] The cache traversal unit 6012 is used to traverse the cache area according to the query instruction, and determine whether the web page request meets the preset component activation conditions based on the traversal result.

[0109] Furthermore, the cache display module 605 includes:

[0110] The data traversal unit 6051 is used to determine whether the cached data corresponds to the web page request if the web page request meets the preset component activation conditions;

[0111] The request corresponding unit 6052 is used to extract the cached data in the cache area according to the traversal result if the cached data corresponds to the web page request, and to aggregate the cached data to obtain the second aggregated data.

[0112] The data display unit 6053 is used to send the second aggregated data to the target application and display the second aggregated data.

[0113] Furthermore, the request encapsulation module 602 includes:

[0114] The asynchronous judgment unit 6021 is used to determine whether the web page request meets the preset asynchronous execution conditions if the web page request does not meet the preset startup conditions.

[0115] The identifier selection unit 6022 is used to select the middle platform identifier information associated with the web page request from the preset middle platform identifier list if the web page request meets the preset asynchronous execution conditions, and generate multiple middle platform interaction requests based on the middle platform identifier information.

[0116] Furthermore, the data response module 603 includes:

[0117] The parameter acquisition unit 6031 is used to obtain the initial parameters corresponding to each of the middle platform interaction requests from the preset asynchronous interaction set according to the encapsulation result.

[0118] The instruction conversion unit 6032 is used to generate corresponding execution instructions using the language structures required by each data platform in the preset middle platform system and the initial parameters.

[0119] The data query unit 6033 is used to obtain an interaction thread with the same number of execution instructions according to each execution instruction, and to execute the data query behavior of each data platform in the middle platform system based on the interaction thread;

[0120] The data generation unit 6034 is used to generate response data corresponding to each of the middle platform interaction requests based on the execution results of the data query behavior.

[0121] Furthermore, the data response module 603 also includes:

[0122] The data classification unit 6035 is used to extract the data type identifier corresponding to the response data and classify the response data with the same data type identifier.

[0123] The data assembly unit 6036 is used to assemble the classified response data into a flow data format using a preset data transmission specification to obtain the first aggregated data.

[0124] In this embodiment of the invention, high availability and high performance are guaranteed during frequent functional iterations. Previously, the application background response time increased linearly with each additional data interaction from a middleware platform. However, by enabling multithreading, system resources are fully utilized. For each new middleware interaction, only the number of threads needs to be dynamically increased. The overall response efficiency is only related to the hardware configuration; the system response efficiency does not decrease with the increase in the number of middleware platforms. Simultaneously, monitoring the entire operation process ensures that the system response will not be interrupted by a problem with a single middleware platform, thus guaranteeing high system availability and improving the efficiency of data acquisition from the middleware system.

[0125] above Figure 6 and Figure 7 The data response device in the embodiments of the present invention will be described in detail from the perspective of modular functional entities. The data response device in the embodiments of the present invention will be described in detail from the perspective of hardware processing.

[0126] Figure 8This is a schematic diagram of a data response device 800 provided in an embodiment of the present invention. The data response device 800 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 810 (e.g., one or more processors) and a memory 820, and one or more storage media 830 (e.g., one or more mass storage devices) for storing application programs 833 or data 832. The memory 820 and storage media 830 can be temporary or persistent storage. The program stored in the storage media 830 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the data response device 800. Furthermore, the processor 810 may be configured to communicate with the storage media 830 and execute the series of instruction operations in the storage media 830 on the data response device 800.

[0127] The data response device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input / output interfaces 860, and / or one or more operating systems 831, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 8 The data response device structure shown does not constitute a limitation on the data response device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0128] The present invention also provides a data response device, the computer device including a memory and a processor, the memory storing computer-readable instructions, which, when executed by the processor, cause the processor to perform the various steps of the data response method in the above embodiments.

[0129] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when the instructions are executed on a computer, cause the computer to perform the various steps of the data response method.

[0130] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0131] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0132] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0133] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data response method, characterized in that, The data response method includes: Obtain the web page request of the target application and determine whether the web page request meets the preset startup conditions. The preset startup conditions include that the current web page request already has corresponding cached data. The determination of whether the web page request meets the preset startup conditions includes: generating a query instruction for the cache area corresponding to the application data using a preset cache control component; traversing the cache area according to the query instruction, and determining whether the web page request meets the preset startup conditions based on the traversal results. If the web page request does not meet the preset startup conditions, the web page request is parsed to obtain multiple middle platform interaction requests, and each middle platform interaction request is encapsulated. Based on the encapsulation result, the application data request and response are processed using the pre-built middleware system to obtain response data, and the response data is aggregated to obtain the first aggregated data; The first aggregated data is sent to the target application, and the first aggregated data is displayed. If the webpage request meets the preset startup conditions, then determine whether the cached data corresponds to the webpage request; If the cached data corresponds to the webpage request, then based on the traversal results, the cached data in the cache area is extracted, and the cached data is aggregated to obtain the second aggregated data; The second aggregated data is sent to the target application, and the second aggregated data is displayed. Specifically, if the webpage request does not meet the preset startup conditions, the webpage request is parsed to obtain multiple middleware interaction requests. This includes: if the webpage request does not meet the preset startup conditions, determining whether the webpage request meets the preset asynchronous execution conditions; if the webpage request meets the preset asynchronous execution conditions, selecting the middleware identifier information associated with the webpage request from the preset middleware identifier list, and generating multiple middleware interaction requests based on the middleware identifier information; if the webpage request does not meet the preset asynchronous execution conditions, querying and obtaining relevant middleware system data according to the serial module.

2. The data response method according to claim 1, characterized in that, Based on the encapsulation result, the pre-built middleware system is used to request and respond to application data, and the response data is obtained, including: Based on the encapsulation result, the initial parameters corresponding to each of the middle platform interaction requests are obtained from the preset asynchronous interaction set; Using the language structures required by each data platform in the pre-built middle platform system, corresponding execution instructions are generated using the initial parameters described above; According to each execution instruction, obtain an interaction thread equal to the number of execution instructions, and based on the interaction thread, execute the data query behavior of each data platform in the middle platform system; Based on the execution results of the data query behavior, response data corresponding to each of the aforementioned middle platform interaction requests is generated.

3. The data response method according to claim 2, characterized in that, The step of aggregating the response data to obtain first aggregated data includes: Extract the data type identifier corresponding to the response data, and classify the response data with the same data type identifier; The categorized response data is assembled into a streaming data format using a pre-defined data transmission standard to obtain the first aggregated data.

4. A data response device, characterized in that, The data response device includes: The request judgment module is used to obtain the web page request of the target application and determine whether the web page request meets the preset startup conditions, the preset startup conditions including that the current web page request has corresponding cached data; the request judgment module includes: an instruction generation unit, used to generate a query instruction for the cache area corresponding to the application data using a preset cache control component; and a cache traversal unit, used to traverse the cache area according to the query instruction and determine whether the web page request meets the preset startup conditions based on the traversal result. The request encapsulation module is used to parse the web page request if the web page request does not meet the preset startup conditions, obtain multiple middle platform interaction requests, and encapsulate each middle platform interaction request. The data response module is used to respond to application data requests using a pre-built middleware system based on the encapsulation result, obtain response data, and aggregate the response data to obtain first aggregated data. A data display module is used to send the first aggregated data to the target application and display the first aggregated data; The data display module includes: a data traversal unit, used to determine whether the cached data corresponds to the webpage request if the webpage request meets the preset startup conditions; a request matching unit, used to extract the cached data in the cache area according to the traversal result if the cached data corresponds to the webpage request, and aggregate the cached data to obtain second aggregated data; and a data display unit, used to send the second aggregated data to the target application and display the second aggregated data. The request encapsulation module includes: an asynchronous judgment unit, used to determine whether the web page request meets preset asynchronous execution conditions if the web page request does not meet preset startup conditions; and an identifier selection unit, used to select the middle platform identifier information associated with the web page request from a preset middle platform identifier list if the web page request meets the preset asynchronous execution conditions, and generate multiple middle platform interaction requests based on the middle platform identifier information; if the web page request does not meet the preset asynchronous execution conditions, the relevant middle platform system data is queried and obtained according to the serial module.

5. The data response device according to claim 4, wherein the data response module comprises: The parameter acquisition unit is used to obtain the initial parameters corresponding to each of the middle platform interaction requests from the preset asynchronous interaction set according to the encapsulation result; The instruction conversion unit is used to generate corresponding execution instructions using the language structures required by each data platform in the preset middle platform system and the initial parameters. The data query unit is used to obtain an interaction thread equal to the number of execution instructions according to each execution instruction, and to execute data query behavior of each data platform in the middle platform system based on the interaction thread; The data generation unit is used to generate response data corresponding to each of the middle platform interaction requests based on the execution results of the data query behavior.

6. The data response device according to claim 5, wherein the data response module comprises: The data classification unit is used to extract the data type identifier corresponding to the response data and classify the response data with the same data type identifier. The data assembly unit is used to assemble the categorized response data into a streaming data format using a preset data transmission specification to obtain the first aggregated data.

7. A data response device, characterized in that, The data response device includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the data response device to perform the steps of the data response method as described in any one of claims 1-3.

8. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions are executed by the processor, they implement the steps of the data response method as described in any one of claims 1-3.