CN111159269A - Data processing method, device and system - Google Patents

Data processing method, device and system Download PDF

Info

Publication number
CN111159269A
CN111159269A CN201911401990.9A CN201911401990A CN111159269A CN 111159269 A CN111159269 A CN 111159269A CN 201911401990 A CN201911401990 A CN 201911401990A CN 111159269 A CN111159269 A CN 111159269A
Authority
CN
China
Prior art keywords
data
target
instant
response
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911401990.9A
Other languages
Chinese (zh)
Other versions
CN111159269B (en
Inventor
强一鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911401990.9A priority Critical patent/CN111159269B/en
Publication of CN111159269A publication Critical patent/CN111159269A/en
Application granted granted Critical
Publication of CN111159269B publication Critical patent/CN111159269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

A data processing method, device and system belong to the technical field of data processing. In the technical scheme provided by the application, a user terminal can respond to data display operation and send a data acquisition request to a server, the server can respond to the data acquisition request sent by the user terminal and acquire instant data from a plurality of data sources, and when the preset response time is reached and the instant data are not successfully acquired from the plurality of data sources, a target data source with failed instant data acquisition is determined, a target data source identifier of the target data source is acquired, response data are generated according to the successfully acquired instant data and the target data source identifier, and the response data are sent to the user terminal; the user terminal can also determine target data to be displayed according to the response data and display the target data. By adopting the technical scheme provided by the application, the problem that the response time of the data acquisition request is too long when the server is in an abnormal condition can be solved.

Description

Data processing method, device and system
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method, apparatus, and system.
Background
The card type interface can realize personalized display of data by displaying data of different data sources in a plurality of cards, wherein the cards can be rectangular display areas containing pictures and text information. For example, the card-type interface may be a video recommendation interface of a video website, the cards may be video display areas in the video recommendation interface, and video data of different data sources may be displayed in each card in the card-type interface.
In the related art, in order to ensure timeliness of data display of the card interface, when the user terminal displays data through the card interface, a data acquisition request is sent to a server for providing the data, and the data acquisition request is used for requesting to acquire instant data of a plurality of data sources. And after acquiring the instant data from all the data sources indicated by the data acquisition request, the server transmits the acquired instant data serving as response data to the user terminal so that the user terminal can display the instant data of the corresponding data source in each card in the card type interface.
However, when the server has abnormal conditions such as excessive load pressure or abnormal data interface with a certain data source, the server cannot acquire instant data of all the data sources in time, so that response data cannot be generated in time, and the response time of the data acquisition request is too long.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data processing method, apparatus, and system, so as to solve the problem that when an abnormal condition occurs in a server, a response time of a data acquisition request is too long. The specific technical scheme is as follows:
in a first aspect of the present application, there is first provided a data processing system, the system comprising a server and a user terminal, wherein,
the user terminal is used for responding to the data display operation and sending a data acquisition request to the server;
the server is used for responding to a data acquisition request sent by a user terminal, acquiring instant data from a plurality of data sources, determining a target data source with failed instant data acquisition when a preset response time is reached and the instant data is not successfully acquired from the plurality of data sources, acquiring a target data source identifier of the target data source, generating response data according to the successfully acquired instant data and the target data source identifier, and sending the response data to the user terminal;
and the user terminal is also used for determining target data to be displayed according to the response data and displaying the target data.
Optionally, the server is further configured to generate response data including the successfully obtained instant data and the target data source identifier;
and the user terminal is also used for determining target cache data corresponding to the target data source identification according to the corresponding relation between the pre-stored data source identification and the cache data, and taking the target cache data and the instant data successfully acquired from the plurality of data sources as the target data to be displayed.
Optionally, the user terminal is further configured to search, in the correspondence between the data source identifier and the cache data, a data source identifier of a data source to which the instant data belongs, and change the cache data corresponding to the searched data source identifier into the instant data.
Optionally, the server is further configured to determine, according to a correspondence between a pre-stored data source identifier and security data, target security data corresponding to the target data source identifier, and generate response data including successfully acquired instant data and the target security data, where the security data is historical data acquired from a data source;
the user terminal is further used for taking the target safety data and the instant data successfully acquired from the data sources as target data to be displayed.
Optionally, the server is further configured to obtain a load state parameter, and send a fusing prompt to the user terminal when the load state parameter is greater than a preset threshold, where the load state parameter is used to indicate a current load state of the server;
and the user terminal is further used for receiving the fusing prompt sent by the server, determining a plurality of data sources of the instant data to be displayed when the data display operation is detected again in a preset fusing time period, determining the cache data corresponding to the data sources according to the corresponding relation between the pre-stored data source identification and the cache data, and displaying the determined cache data.
Optionally, the server is further configured to add, in the response data, fused character information for indicating that an operation of stopping sending the data acquisition request is performed;
and the user terminal is further used for analyzing the response data and determining to receive the fusing prompt sent by the server when the response data contains preset fusing character information.
In a second aspect implemented by the present application, there is also provided a data processing method, where the method is applied to a server, and the method includes:
responding to a data acquisition request sent by a user terminal, and acquiring instant data from a plurality of data sources;
when the preset response duration is reached, if the instant data are not successfully acquired from the plurality of data sources, determining a target data source with failed instant data acquisition, and acquiring a target data source identifier of the target data source;
generating response data according to the successfully acquired instant data and the target data source identification;
and sending the response data to the user terminal.
Optionally, the generating response data according to the successfully obtained instant data and the target data source identifier includes:
and generating response data containing the successfully acquired instant data and the target data source identification.
Optionally, the generating response data according to the successfully obtained instant data and the target data source identifier includes:
determining target safety data corresponding to the target data source identification according to a corresponding relation between a pre-stored data source identification and the safety data, wherein the safety data are historical data acquired from the data source;
and generating response data containing the successfully acquired instant data and the target safety data.
Optionally, the method further includes:
acquiring a load state parameter, wherein the load state parameter is used for representing the current load state of the server;
and if the load state parameter is larger than a preset threshold value, sending a fusing prompt to the user terminal.
Optionally, the sending method of the fusing prompt includes:
in the response data, fuse character information indicating that an operation of stopping transmission of a data acquisition request is performed is added.
In a third aspect implemented in the present application, there is further provided a data processing method, where the method is applied to a user terminal, and the method includes:
responding to the data display operation, and sending a data acquisition request to a server;
receiving response data sent by the server, wherein the response data at least comprises instant data successfully acquired from a plurality of data sources;
determining target data to be displayed according to the response data;
and displaying the target data.
Optionally, when the response data further includes the target data source identifier, the determining, according to the response data, the target data to be displayed includes:
determining target cache data corresponding to the target data source identification according to a corresponding relation between pre-stored data source identification and cache data;
and taking the target cache data and the instant data successfully acquired from the plurality of data sources as target data to be displayed.
Optionally, the method further includes:
searching a data source identifier of a data source to which the instant data belongs in a corresponding relation between the data source identifier and cache data;
and changing the cache data corresponding to the searched data source identification into the instant data.
Optionally, when the response data includes target security data and the target security data is history data acquired from the target data source, determining the target data to be displayed according to the response data includes:
and taking the target safety data and the instant data successfully acquired from the plurality of data sources as target data to be displayed.
Optionally, after the displaying the target data, the method further includes:
receiving a fusing prompt sent by the server;
in a preset fusing time period, if the data display operation is detected again, determining a plurality of data sources of the instant data to be displayed;
determining cache data corresponding to the data source according to a corresponding relation between a pre-stored data source identifier and the cache data;
and displaying the determined cache data.
Optionally, the receiving the fusing prompt sent by the server includes:
analyzing the response data;
and if the response data contains preset fusing character information, determining to receive a fusing prompt sent by the server.
In a fourth aspect of the present application, there is also provided a data processing apparatus, where the apparatus is applied to a server, and the apparatus includes:
the first acquisition module is used for responding to a data acquisition request sent by a user terminal and acquiring instant data from a plurality of data sources;
the determining module is used for determining a target data source with failed instant data acquisition and acquiring a target data source identifier of the target data source when the preset response time is reached and instant data is not successfully acquired from the plurality of data sources;
the generating module is used for generating response data according to the successfully acquired instant data and the target data source identification;
and the first sending module is used for sending the response data to the user terminal.
Optionally, the generating module includes:
and the first generation submodule is used for generating response data containing the successfully acquired instant data and the target data source identification.
Optionally, the generating module includes:
the determining submodule is used for determining target safety data corresponding to the target data source identification according to the corresponding relation between the pre-stored data source identification and the safety data, and the safety data are historical data acquired from the data source;
and the second generation submodule is used for generating response data containing the successfully acquired instant data and the target safety data.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain a load state parameter, where the load state parameter is used to indicate a current load state of the server;
and the second sending module is used for sending a fusing prompt to the user terminal when the load state parameter is greater than a preset threshold value so that the user terminal stops sending the data acquisition request.
Optionally, the second sending module includes:
and the adding submodule is used for adding fusing character information for indicating that the operation of stopping sending the data acquisition request is executed in the response data.
In a fifth aspect of the present application, there is also provided a data processing apparatus, where the apparatus is applied to a user terminal, and the apparatus includes:
the sending module is used for responding to the data display operation and sending a data acquisition request to the server;
the first receiving module is used for receiving response data sent by the server, wherein the response data at least comprises instant data which are successfully acquired from a plurality of data sources;
the first determining module is used for determining target data to be displayed according to the response data;
and the display module is used for displaying the target data.
Optionally, the first determining module includes:
the first determining submodule is used for determining target cache data corresponding to the target data source identification according to the corresponding relation between the pre-stored data source identification and the cache data under the condition that the response data also comprises the target data source identification;
and the second determining submodule is used for taking the target cache data and the instant data which are successfully acquired from the plurality of data sources as target data to be displayed.
Optionally, the apparatus further comprises:
the searching module is used for searching the data source identifier of the data source to which the instant data belongs in the corresponding relation between the data source identifier and the cache data;
and the updating module is used for changing the cache data corresponding to the searched data source identifier into the instant data.
Optionally, the first determining module includes:
and the third determining sub-module is used for taking the target safety data and instant data successfully acquired from the multiple data sources as target data to be displayed under the condition that the response data comprises the target safety data and the target safety data are historical data acquired from the target data sources.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving the fusing prompt sent by the server;
the second determining module is used for determining a plurality of data sources of the instant data to be displayed if the data display operation is detected again in the preset fusing time period;
the third determining module is used for determining cache data corresponding to the data source according to the corresponding relation between the pre-stored data source identification and the cache data;
and the display module is also used for displaying the determined cache data.
Optionally, the second receiving module includes:
the analysis submodule is used for analyzing the response data;
and the fourth determining submodule is used for determining to receive the fusing prompt sent by the server when the response data contains preset fusing character information.
In a sixth aspect of this application implementation, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the second aspect or the third aspect when executing the program stored in the memory.
In yet another aspect of this embodiment, there is also provided a computer-readable storage medium having stored therein instructions, which when executed on a computer, cause the computer to execute any of the data processing methods described above.
In yet another aspect of this application implementation, there is also provided a computer program product containing instructions that, when executed on a computer, cause the computer to perform any of the data processing methods described above.
The embodiment of the application provides a data processing method, a device and a system, in the technical scheme provided by the application, a server can respond to a data acquisition request sent by a user terminal and acquire instant data from a plurality of data sources; when the preset response time is reached and the instant data is not successfully acquired from the multiple data sources, determining a target data source with failed instant data acquisition and acquiring a target data source identifier of the target data source; and then, generating response data according to the successfully acquired instant data and the target data source identification, and sending the response data to the user terminal. And then, the user terminal can determine the target data to be displayed according to the response data and display the target data. When the server does not successfully acquire the instant data from the plurality of data sources within the preset response time, the server can generate response data according to the successfully acquired instant data and the target data source identifier of the target data source, so that the response time of the data acquisition request can be shortened.
Of course, not all of the above advantages need be achieved in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application 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.
FIG. 1 is a signaling diagram of a data processing system in an embodiment of the present application;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the present application;
FIG. 3 is a signaling diagram of another data processing system in an embodiment of the present application;
FIG. 4 is a flow chart of another data processing method in an embodiment of the present application;
FIG. 5 is a flow chart of another data processing method in an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of another data processing apparatus according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a user terminal in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The embodiment of the application provides a data processing system, which comprises a server and a user terminal, wherein the server can be an electronic device with a data processing function, for example, the server can be a background server of a video website. The server may be connected to a plurality of data sources through data interfaces, and the data sources may be electronic devices storing video data of movies, and servers of news media. Accordingly, the data of the data source may be video data of a movie, news information.
In order to ensure timeliness of data display, the server can respond to a data acquisition request of the user terminal, acquire instant data from a data source, and provide the instant data for the user terminal, wherein the user terminal can be an electronic device with a data display function, such as a mobile phone, a tablet computer, a smart watch and the like. The user terminal can display the instant data of different data sources through a plurality of cards contained in the card type interface.
For example, the card interface may be a home page of a video website, each display area may be a card, data displayed in the card may be video data of a movie or news information, and a data source to which the display data in the card belongs may be an electronic device storing the video data of the movie or a server of news media.
The following describes, in detail, a specific processing procedure of a server and a user terminal in a data processing system according to an embodiment of the present application with reference to a specific implementation manner, as shown in fig. 1, the specific steps are as follows:
step 101, the user terminal responds to the data display operation and sends a data acquisition request to the server.
In implementation, when the user wants to view the card interface, the user may perform a data display operation, where the data display operation may be clicking a home icon of a video website or clicking an update icon of a current page.
In response to the data display operation, the user terminal may generate a data acquisition request and transmit the data acquisition request to the server.
The embodiment of the application provides three implementation modes for generating a data acquisition request by a user terminal:
in the first method, generally, data of a certain data source is fixedly displayed in each card in the card interface, so that the data source identifier of the data source corresponding to each card can be stored in the user terminal in advance. In this way, in response to the data display operation, the user terminal may acquire, for each card in the card-type interface, the data source identifier of the data source corresponding to the card, and obtain a plurality of data source identifiers. The user terminal may then generate a data acquisition request comprising a plurality of data source identifications.
In this embodiment of the present application, the data source corresponding to a certain card may be: the data source to which the data displayed by the card history belongs can also be determined by the user terminal according to the interface setting of the card type interface, wherein the interface setting comprises the data source to which the display data in each card belongs.
It is understood that each card in the card-type interface may fixedly display data of a certain data source, and the data of a certain data source may be displayed in one or more cards.
In the second mode, the server may store a corresponding relationship between the card identifier and the data source identifier, so that, in response to the data display operation, the user terminal may determine the card identifier of each card in the card interface, and generate a data acquisition request including the card identifier of each card.
And the server can store the corresponding relation between the user identifier and the data source identifier, so that the user terminal can acquire the user identifier and generate a data acquisition request containing the user identifier. For example, the user terminal may generate a data acquisition request including a user name by using the user name input by the user when logging in the video website as the user identifier.
Step 102, the server responds to a data acquisition request sent by the user terminal, and acquires instant data from a plurality of data sources.
In implementation, after receiving a data acquisition request sent by a user terminal, a server may determine a plurality of data sources by parsing the data acquisition request. For each data source, the server can acquire data through a data interface with the data source, and the acquired data is used as instant data. For example, the server may obtain news information of current hot news through a data interface with a data source "hot news".
The embodiment of the application provides three implementation modes of analyzing a data acquisition request by a server: in a first manner, the data acquisition request may carry card identifiers of a plurality of cards included in the card interface, and the server may determine, for each card identifier, a data source identifier corresponding to the card identifier according to a correspondence between a pre-stored card identifier and the data source identifier, thereby obtaining a plurality of data source identifiers, that is, determining a plurality of data sources. And in the second mode, the data acquisition request can carry the data source identification of the data source, and the server can analyze the data acquisition request to obtain the data source identifications of the multiple data sources, so that the multiple data sources are determined. And the server can determine a plurality of data source identifications corresponding to the user identification carried by the data acquisition request according to the corresponding relationship between the pre-stored user identification and the data source identification, namely determine a plurality of data sources.
In this embodiment of the application, the server may acquire data from the data source in any manner of acquiring data from the data source in any of the related technologies, and the specific processing process is not described herein again.
And 103, judging whether the instant data is successfully acquired from a plurality of data sources or not by the server when the preset response time is reached.
In order to ensure the response speed of the server to the data acquisition request, a preset response time may be set in the server, where the preset response time is, for example, 500 ms.
In an implementation, the server may record a reception time of the received data acquisition request, and calculate a time difference between a current operation time and the reception time. The server may determine whether to successfully obtain the instant data from the plurality of data sources when the time difference reaches the preset response time.
If the server acquires the instant data from each data source, the server can judge that the instant data are acquired from the plurality of data sources successfully, then the server can generate response data containing the instant data acquired from each data source, and then the response data are sent to the user terminal, so that the user terminal can display the data based on the response data.
If the server does not obtain instant data from a data source, the server may determine that instant data was not successfully obtained from multiple data sources, and the server may then perform step 104.
And step 104, if the instant data are not successfully acquired from the plurality of data sources, the server determines a target data source with failed instant data acquisition and acquires a target data source identifier of the target data source.
In implementation, the server may use a data source that does not acquire the instant data as a target data source, and then acquire a target data source identifier of the target data source.
In the embodiment of the application, the server may read the data source identifier of the target data source from the data source identifiers of the data sources stored locally in advance, and the server may also obtain the data source identifier of the target data source from the target data source as the target data source identifier.
And 105, the server generates response data according to the successfully acquired instant data and the target data source identification.
In implementation, in order to facilitate the user terminal to determine the data source to which the instant data included in the response data belongs and display the instant data in the card corresponding to the data source, the response data may further include a data source identifier of the data source to which each instant data belongs.
The server generates a specific processing procedure of the response data according to the instant data successfully acquired from the data source and the target data source identifier of the second data source, which will be described in detail later.
And step 106, the server sends the response data to the user terminal.
And step 107, the user terminal determines target data to be displayed according to the response data.
The response data at least comprises instant data which are successfully acquired from a plurality of data sources within a preset response time.
In implementation, the user terminal may use each piece of instant data included in the response data as target data to be displayed in a corresponding card, where the corresponding card is a card corresponding to the first data source to which the instant data belongs.
In the embodiment of the application, in addition to the instant data successfully obtained from the multiple data sources, the response data may further include other data, such as a target data source identifier of the target data source and target security data, where the target security data is historical data obtained by the server from the target data source. When the response data includes other data, the user terminal determines a specific processing procedure of the target data to be displayed according to the response data, which will be described in detail later.
And step 108, the user terminal displays the target data.
In implementation, the user terminal may determine, for each determined target data, a data source to which the target data belongs and a card on which data of the data source is displayed, and then, the user terminal may display the target data on the determined card.
In the embodiment of the application, the server can respond to a data acquisition request sent by the user terminal and acquire instant data from a plurality of data sources; when the preset response time is reached and the instant data is not successfully acquired from the multiple data sources, determining a target data source with failed instant data acquisition and acquiring a target data source identifier of the target data source; and then, generating response data according to the successfully acquired instant data and the target data source identification, and sending the response data to the user terminal. And then, the user terminal can determine the target data to be displayed according to the response data and display the target data. When the server does not successfully acquire the instant data from the plurality of data sources within the preset response time, the server can generate response data according to the successfully acquired instant data and the target data source identifier of the target data source, so that the response time of the data acquisition request can be shortened.
Compared with the prior art that the server generates the response data after acquiring the instant data of all the data sources, the embodiment of the application is based on the idea of performing degradation limitation on the response time of the data interface between the server and the data sources, and the server can determine the response data within the preset response time, so that the quick response of the data acquisition request is realized, and the response time of the data acquisition request is reduced. Furthermore, the user terminal can rapidly display data based on the response data, and user experience can be improved.
Optionally, the embodiment of the present application provides two implementation manners in which the server generates response data according to the successfully obtained instant data and the target data source identifier:
in the first mode, the server can generate response data containing the successfully acquired instant data and the target data source identification.
In the embodiment of the application, the server may generate response data including the successfully acquired instant data and the target data source identifier, and thus, after receiving the response data sent by the server, the user terminal may determine the target cache data corresponding to the target data source identifier according to the target data source identifier included in the response data, the correspondence between the locally stored data source identifier and the cache data. The user terminal may then display the target cache data and the instant data successfully obtained from the data source. Because the user terminal can still realize data display within the preset response duration under the condition that the server does not successfully acquire the instant data from the plurality of data sources, the user experience can be improved.
In a second mode, security data can be stored in the server in advance, the security data is historical data acquired from each data source, the server can determine response data according to the identification of the target data source, the security data and the successfully acquired instant data, and the specific processing process comprises the following steps:
step 1, determining target safety data corresponding to a target data source identifier according to a corresponding relation between a pre-stored data source identifier and the safety data.
In implementation, the server may search the target data source identifier in a correspondence between the pre-stored data source identifier and the security data, and use the security data corresponding to the target data source identifier as the target security data.
And 2, generating response data containing the successfully obtained instant data and the target safety data.
In the embodiment of the application, the server can determine the target security data corresponding to the target data source identifier according to the corresponding relationship between the pre-stored data source identifier and the security data, and then generate the response data including the successfully acquired instant data and the target security data. Therefore, after receiving the response data sent by the server, the user terminal can display the target security data and the instant data successfully acquired from the data source. When the server does not successfully acquire data from the plurality of data sources, the user terminal can still realize data display within the preset response time, so that the user experience can be improved.
Based on the two implementation modes of the server generating the response data, the response data received by the user terminal are different, and in the first mode, the response data can contain a target data source identifier of a target data source; in the second mode, the response data may contain the target security data.
The specific processing procedure of the user terminal for determining the target data to be displayed according to the response data is different according to different data contained in the response data. In the following, the embodiment of the present application describes a specific processing procedure of the user terminal for two types of response data:
in the first mode, in response to a situation that the response data includes a target data source identifier of the target data source, a corresponding relationship between the data source identifier and the cache data may be stored in the user terminal in advance, where the cache data is history data of the data source corresponding to the data source identifier and stored locally by the user terminal. Thus, as shown in fig. 2, the processing procedure of the user terminal determining the target data to be displayed according to the response data includes:
step 201, the user terminal determines target cache data corresponding to the target data source identifier according to the corresponding relationship between the pre-stored data source identifier and the cache data.
In implementation, the user terminal may search for the target data source identifier in the corresponding relationship between the data source identifier and the cache data. After the target data source identifier is found, the user terminal may use the cache data corresponding to the target data source identifier as the target cache data.
Step 202, the user terminal takes the target cache data and the instant data successfully acquired from the multiple data sources as the target data to be displayed.
In the embodiment of the application, the user terminal may pre-store a corresponding relationship between the data source identifier and the cache data, and the user terminal may determine the target cache data corresponding to the target data source identifier according to the corresponding relationship. Then, the user terminal may use the target cache data and the instant data successfully obtained from the plurality of data sources as target data to be displayed.
Since the cache data of each data source is stored in the user terminal, even if the preset response time is reached, the server cannot acquire the instant data of all the data sources, and the user terminal can determine the target cache data of the target data source. Then, the user terminal can display the target cache data and the successfully acquired instant data in the card type interface, so that data are displayed in all cards in the card type interface, the integrity of data display of the card type interface is ensured, and the user experience can be improved.
Furthermore, the server is ensured to return response data within the preset response time, and the response time of the server to the data acquisition request is reduced.
For the case that the response data contains the target safety data in the second mode, the processing procedure of determining the target data to be displayed by the user terminal according to the response data comprises the following steps: and taking the target safety data and the instant data successfully acquired from the plurality of data sources as target data to be displayed.
In the embodiment of the application, the response data comprises the target security data and the instant data which are successfully acquired from the plurality of data sources, so that the user terminal can display the target cache data and the successfully acquired instant data in the card-type interface after receiving the response data sent by the server. Data are displayed in all cards in the card type interface, so that the integrity of data display of the card type interface is ensured, and the user experience can be improved.
Furthermore, the server is ensured to return response data within the preset response time, and the response time of the server to the data acquisition request is reduced.
Optionally, an embodiment of the present application provides an implementation manner for a user terminal to establish a corresponding relationship between a data source identifier and cache data: after receiving the response data for the first time, the user terminal may store the instant data and the data source identifier of the data source to which the instant data belongs, in a local storage manner, for each instant data included in the response data, so as to obtain a corresponding relationship between the data source identifier and the cache data.
In the related art, the response data received by the user terminal includes instant data acquired from all data sources, and the user terminal directly stores the received response data to obtain cache response data. And when the server does not send the response data, the user terminal acquires the cache response data and displays the cache response data.
In the technical solution provided in the embodiment of the present application, a user terminal level-by-level data cache is added, that is, a corresponding relationship between a data source identifier and cache data is established. Therefore, when the server returns only part of the instant data of the data source, the user terminal can determine the target cache data of the target data source with failed data acquisition based on the corresponding relation. Then, the user terminal can display the target cache data and the successfully acquired instant data in the card type interface, so that data are displayed in all cards in the card type interface, the integrity of data display of the card type interface is ensured, and the user experience can be improved.
In addition, due to the reasons of load pressure of the server, limited storage space and the like, the data are stored item by item on the user terminal side according to the data source to which the data belong, and the reliability of data storage is higher.
Optionally, the user terminal may further update the corresponding relationship between the data source identifier and the cache data, and the update process may be: after receiving the response data each time, the user terminal may search, for each instant data included in the response data, a data source identifier of a data source to which the instant data belongs in a correspondence between the data source identifier and the cache data, and change the cache data corresponding to the searched data source identifier into the instant data.
In the embodiment of the application, after receiving the response data, the user terminal may update the corresponding relationship between the data source identifier and the cache data according to the response data. Therefore, the user terminal can determine and display the updated cache data subsequently based on the corresponding relation, so that the user terminal can display the cache data with better timeliness under the condition of displaying the target cache data of the target data source, and the user experience is improved.
Optionally, the server may further determine whether to send a fusing notification to the user terminal according to the load state of the server, so that the user terminal fuses after receiving the fusing notification, thereby reducing load pressure of the server. As shown in fig. 3, based on the fusing mechanism, the specific processing procedures of the server and the user terminal in the data processing system include:
step 301, the server obtains the load status parameters.
Wherein, the load state parameter is used for measuring the current load state of the server. The load status parameters may be QPS (Query Per Second), CPU (Central Processing Unit) usage, and CPU idle.
In implementation, the server may obtain the current load status parameter according to a preset obtaining period. The server may use any one of the load state parameter obtaining manners in the related art to obtain the load state parameter, and the specific processing procedure is not described herein again.
Step 302, the server determines whether the load status parameter is greater than a preset threshold.
In implementation, after obtaining the load state parameter, the server may determine whether the load state parameter is greater than a preset threshold, and if the load state parameter is greater than the preset threshold, the server may perform step 303; if the load status parameter is less than or equal to the preset threshold, the server may perform step 304.
Step 303, the server sends a fusing prompt to the user terminal.
In an implementation, the server may send the fusing hint to the user terminal in a variety of ways, and in a possible implementation, the server may directly send a notification message indicating the fusing hint to the user terminal, so that the user terminal fuses after receiving the notification message. In another possible implementation manner, the server may add, to the response data sent to the user terminal, fusing character information for indicating that the data sending acquisition request operation is stopped, so that the user terminal may perform fusing after parsing the response data to obtain the fusing character information.
In the embodiment of the application, the server sends the fusing prompt to the user terminal by adding the field information for indicating the stop of the data sending acquisition request operation in the response data sent to the user terminal, so that the data transmission bandwidth occupied by independently sending the notification message can be reduced.
At step 304, the server does not perform subsequent processing.
Step 305, the user terminal receives the fusing prompt sent by the server.
In implementation, the user terminal may receive the fusing prompt by receiving a notification message indicating the fusing prompt sent by the server, according to a sending manner in which the server sends the fusing prompt. The user terminal can also analyze the response data and judge whether the response data contains the preset fusing character information. If the response data contains the fusing character information, the user terminal can determine that the fusing prompt is received; if the response data does not contain the information of the fusing character, the user terminal does not perform subsequent processing.
Step 306, if the user terminal detects the data display operation again within the preset fusing time period, determining a plurality of data sources of the data to be displayed.
The user terminal stores a preset fusing time period, and the duration of the preset fusing time period can be set as required, wherein the preset fusing time period is 5 minutes for example.
In implementation, in a preset fusing time period after the fusing prompt is received, if the user terminal detects the data display operation again, the user terminal does not send a data acquisition request to the server any more, but determines a plurality of data sources of data to be displayed. The specific processing procedure of determining, by the user terminal, a plurality of data sources of the data to be displayed may refer to the description related to the first method in step 101, and is not described herein again.
Step 307, the user terminal determines the cache data corresponding to the data source according to the pre-stored correspondence between the data source identifier and the cache data.
And 308, displaying the determined cache data by the user terminal.
In the embodiment of the application, the server can obtain the load state parameter, when the load state parameter is greater than the preset threshold value, the server sends the fusing prompt to the user terminal, and then, in the preset fusing time period after the fusing prompt is received, if the user terminal receives the data display request again, the user terminal does not send the data obtaining request to the server any more, but displays the locally pre-stored cache data; and when the load state parameter is less than or equal to the preset threshold value, performing no subsequent processing. Due to the fact that fusing of the user terminal level is increased, namely when the load state parameter of the server is larger than the preset threshold value, the server sends a fusing prompt to the user terminal, the user terminal stops sending the data acquisition request, and therefore load pressure of the server can be reduced.
Based on the same technical concept, the embodiment of the present application provides a data processing method, which can be applied to a server, as shown in fig. 4, and the specific processing steps include:
step 401, in response to a data acquisition request sent by a user terminal, acquiring instant data from a plurality of data sources.
Step 402, when the preset response duration is reached, if the instant data is not successfully acquired from the multiple data sources, determining a target data source with failed instant data acquisition, and acquiring a target data source identifier of the target data source.
And 403, generating response data according to the successfully acquired instant data and the target data source identifier.
Step 404, sending the response data to the user terminal.
Optionally, the generating response data according to the successfully obtained instant data and the target data source identifier includes:
and generating response data containing the successfully acquired instant data and the target data source identification.
Optionally, the generating response data according to the successfully obtained instant data and the target data source identifier includes:
determining target safety data corresponding to the target data source identification according to a corresponding relation between a pre-stored data source identification and the safety data, wherein the safety data are historical data acquired from a data source;
and generating response data containing the successfully acquired instant data and the target safety data.
Optionally, the method further includes:
acquiring a load state parameter, wherein the load state parameter is used for representing the current load state of the server;
and if the load state parameter is larger than a preset threshold value, sending a fusing prompt to the user terminal.
Optionally, the sending method of the fusing prompt includes:
in the response data, fuse character information indicating that an operation of stopping transmission of a data acquisition request is performed is added.
In the embodiment of the application, the server can respond to a data acquisition request sent by the user terminal, acquire instant data from a plurality of data sources, determine a target data source with failed instant data acquisition when a preset response time is reached and the instant data is not successfully acquired from the plurality of data sources, acquire a target data source identifier of the target data source, generate response data according to the successfully acquired instant data and the target data source identifier, and send the response data to the user terminal.
Compared with the prior art that the server generates the response data after acquiring the instant data of all the data sources, the embodiment of the application is based on the idea of performing degradation limitation on the response time of the data interface between the server and the data sources, and the server can determine the response data within the preset response time, so that the quick response of the data acquisition request is realized, and the response time of the data acquisition request is reduced. Furthermore, the user terminal can rapidly display data based on the response data, and user experience can be improved.
The embodiment of the present application further provides a data processing method, which can be applied to a user terminal, as shown in fig. 5, the specific steps are as follows:
step 501, responding to data display operation, sending a data acquisition request to a server;
step 502, receiving response data sent by a server, wherein the response data at least comprises instant data successfully acquired from a plurality of data sources;
step 503, determining target data to be displayed according to the response data;
step 504, displaying the target data.
Optionally, when the response data further includes the target data source identifier, the determining, according to the response data, the target data to be displayed includes:
determining target cache data corresponding to the target data source identification according to a corresponding relation between pre-stored data source identification and cache data;
and taking the target cache data and the instant data successfully acquired from the plurality of data sources as target data to be displayed.
Optionally, the method further includes:
searching a data source identifier of a data source to which the instant data belongs in a corresponding relation between the data source identifier and cache data;
and changing the cache data corresponding to the searched data source identification into the instant data.
Optionally, when the response data includes target security data and the target security data is history data acquired from the target data source, determining the target data to be displayed according to the response data includes:
and taking the target safety data and the instant data successfully acquired from the plurality of data sources as target data to be displayed.
Optionally, after the displaying the target data, the method further includes:
receiving a fusing prompt sent by the server;
in a preset fusing time period, if the data display operation is detected again, determining a plurality of data sources of the instant data to be displayed;
determining cache data corresponding to the data source according to a corresponding relation between a pre-stored data source identifier and the cache data;
and displaying the determined cache data.
Optionally, the receiving the fusing prompt sent by the server includes:
analyzing the response data;
and if the response data contains preset fusing character information, determining to receive a fusing prompt sent by the server.
In the embodiment of the application, the user terminal can respond to the data display operation and send the data acquisition request to the server, and then the user terminal can determine the target data to be displayed according to the response data and display the target data. In the preset response time, when the server cannot acquire the data of all the data sources, the user terminal can still receive the response data, determine the target data to be displayed based on the response data and display the target data, so that the problem of overlong response time of a data acquisition request can be solved, and the user experience is ensured.
Based on the same technical concept, an embodiment of the present application further provides a data processing apparatus, which is applied to a server, and as shown in fig. 6, the apparatus includes:
a first obtaining module 610, configured to obtain instant data from multiple data sources in response to a data obtaining request sent by a user terminal;
a determining module 620, configured to determine, when a preset response time is reached and instant data is not successfully acquired from the multiple data sources, a target data source for which the instant data acquisition fails, and acquire a target data source identifier of the target data source;
a generating module 630, configured to generate response data according to the successfully obtained instant data and the target data source identifier;
a first sending module 640, configured to send the response data to the user terminal.
Optionally, the generating module includes:
and the first generation submodule is used for generating response data containing the successfully acquired instant data and the target data source identification.
Optionally, the generating module includes:
the determining submodule is used for determining target safety data corresponding to the target data source identification according to the corresponding relation between the pre-stored data source identification and the safety data, and the safety data are historical data acquired from the data source;
and the second generation submodule is used for generating response data containing the successfully acquired instant data and the target safety data.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain a load state parameter, where the load state parameter is used to indicate a current load state of the server;
and the second sending module is used for sending a fusing prompt to the user terminal when the load state parameter is greater than a preset threshold value so that the user terminal stops sending the data acquisition request.
Optionally, the second sending module includes:
and the adding submodule is used for adding fusing character information for indicating that the operation of stopping sending the data acquisition request is executed in the response data.
The embodiment of the application provides a data processing device, which can respond to a data acquisition request sent by a user terminal and acquire instant data from a plurality of data sources; when the preset response time is reached and whether the instant data are successfully acquired from the multiple data sources is not reached, determining a target data source with failed instant data acquisition and acquiring a target data source identifier of the target data source; generating response data according to the successfully acquired instant data and the target data source identification; and sending the response data to the user terminal so that the user terminal displays the data based on the response data. When the server does not successfully acquire the instant data from the plurality of data sources within the preset response time, the server can generate response data according to the successfully acquired instant data and the target data source identifier of the target data source, so that the response time of the data acquisition request can be shortened.
Based on the same technical concept, an embodiment of the present application further provides a data processing apparatus, which is applied to a user terminal, and as shown in fig. 7, the apparatus includes:
a sending module 710, configured to send a data obtaining request to a server in response to a data display operation;
a first receiving module 720, configured to receive response data sent by the server, where the response data at least includes instant data that is successfully obtained from multiple data sources;
a first determining module 730, configured to determine, according to the response data, target data to be displayed;
a display module 740, configured to display the target data.
Optionally, the first determining module includes:
the first determining submodule is used for determining target cache data corresponding to the target data source identification according to the corresponding relation between the pre-stored data source identification and the cache data under the condition that the response data also comprises the target data source identification;
and the second determining submodule is used for taking the target cache data and the instant data which are successfully acquired from the plurality of data sources as target data to be displayed.
Optionally, the apparatus further comprises:
the searching module is used for searching the data source identifier of the data source to which the instant data belongs in the corresponding relation between the data source identifier and the cache data;
and the updating module is used for changing the cache data corresponding to the searched data source identifier into the instant data.
Optionally, the first determining module includes:
and the third determining sub-module is used for taking the target safety data and instant data successfully acquired from the multiple data sources as target data to be displayed under the condition that the response data comprises the target safety data and the target safety data are historical data acquired from the target data sources.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving the fusing prompt sent by the server;
the second determining module is used for determining a plurality of data sources of the instant data to be displayed if the data display operation is detected again in the preset fusing time period;
the third determining module is used for determining cache data corresponding to the data source according to the corresponding relation between the pre-stored data source identification and the cache data;
and the display module is also used for displaying the determined cache data.
Optionally, the second receiving module includes:
the analysis submodule is used for analyzing the response data;
and the fourth determining submodule is used for determining to receive the fusing prompt sent by the server when the response data contains preset fusing character information.
The embodiment of the application provides a data processing device, which can respond to data display operation and send a data acquisition request to a server, and then can determine target data to be displayed according to response data and display the target data. In the preset response time, when the server cannot acquire the data of all the data sources, the user terminal can still receive the response data, determine the target data to be displayed based on the response data and display the target data, so that the problem of overlong response time of a data acquisition request can be solved, and the user experience is ensured.
Based on the same technical concept, the embodiment of the present application further provides a server, as shown in fig. 8, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the method steps executed by the server in the above method embodiments when executing the program stored in the memory 803.
The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the server and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Based on the same technical concept, the embodiment of the present application further provides a user terminal, as shown in fig. 9, including a processor 901, a communication interface 902, a memory 903 and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the method steps executed by the user terminal in the above method embodiments when executing the program stored in the memory 903.
The communication bus mentioned in the above-mentioned user terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the user terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the data processing methods described above.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the data processing methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. 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 application. Thus, the present application 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 (21)

1. A data processing system, characterized in that the system comprises a server and a user terminal, wherein,
the user terminal is used for responding to the data display operation and sending a data acquisition request to the server;
the server is used for responding to a data acquisition request sent by a user terminal, acquiring instant data from a plurality of data sources, determining a target data source with failed instant data acquisition when a preset response time is reached and the instant data is not successfully acquired from the plurality of data sources, acquiring a target data source identifier of the target data source, generating response data according to the successfully acquired instant data and the target data source identifier, and sending the response data to the user terminal;
and the user terminal is also used for determining target data to be displayed according to the response data and displaying the target data.
2. The system of claim 1, wherein the server is further configured to generate response data comprising the successfully obtained instant data, the identification of the target data source;
and the user terminal is also used for determining target cache data corresponding to the target data source identification according to the corresponding relation between the pre-stored data source identification and the cache data, and taking the target cache data and the instant data successfully acquired from the plurality of data sources as the target data to be displayed.
3. The system according to claim 2, wherein the user terminal is further configured to search, in the correspondence between the data source identifier and the cache data, a data source identifier of a data source to which the instant data belongs, and change the cache data corresponding to the searched data source identifier into the instant data.
4. The system of claim 1, wherein the server is further configured to determine target security data corresponding to the target data source identifier according to a pre-stored correspondence relationship between the data source identifier and the security data, and generate response data including the successfully acquired instant data and the target security data, where the security data is historical data acquired from a data source;
the user terminal is further used for taking the target safety data and the instant data successfully acquired from the data sources as target data to be displayed.
5. The system according to claim 1, wherein the server is further configured to obtain a load status parameter, and send a fusing prompt to the user terminal when the load status parameter is greater than a preset threshold, where the load status parameter is used to indicate a current load status of the server;
and the user terminal is further used for receiving the fusing prompt sent by the server, determining a plurality of data sources of the instant data to be displayed when the data display operation is detected again in a preset fusing time period, determining the cache data corresponding to the data sources according to the corresponding relation between the pre-stored data source identification and the cache data, and displaying the determined cache data.
6. The system according to claim 5, wherein the server is further configured to add, in the response data, fusing character information indicating that an operation of stopping sending a data acquisition request is performed;
and the user terminal is further used for analyzing the response data and determining to receive the fusing prompt sent by the server when the response data contains preset fusing character information.
7. A data processing method is applied to a server, and the method comprises the following steps:
responding to a data acquisition request sent by a user terminal, and acquiring instant data from a plurality of data sources;
when the preset response duration is reached, if the instant data are not successfully acquired from the plurality of data sources, determining a target data source with failed instant data acquisition, and acquiring a target data source identifier of the target data source;
generating response data according to the successfully acquired instant data and the target data source identification;
and sending the response data to the user terminal.
8. The method of claim 7, wherein generating response data based on the successfully obtained instant data and the target data source identifier comprises:
and generating response data containing the successfully acquired instant data and the target data source identification.
9. The method of claim 7, wherein generating response data based on the successfully obtained instant data and the target data source identifier comprises:
determining target safety data corresponding to the target data source identification according to a corresponding relation between a pre-stored data source identification and the safety data, wherein the safety data are historical data acquired from a data source;
and generating response data containing the successfully acquired instant data and the target safety data.
10. The method according to any one of claims 7-9, further comprising:
acquiring a load state parameter, wherein the load state parameter is used for representing the current load state of the server;
and if the load state parameter is larger than a preset threshold value, sending a fusing prompt to the user terminal.
11. The method of claim 10, wherein the sending of the fusing hint comprises:
in the response data, fuse character information indicating that an operation of stopping transmission of a data acquisition request is performed is added.
12. A data processing method is applied to a user terminal, and the method comprises the following steps:
responding to the data display operation, and sending a data acquisition request to a server;
receiving response data sent by the server, wherein the response data at least comprises instant data successfully acquired from a plurality of data sources;
determining target data to be displayed according to the response data;
and displaying the target data.
13. The method of claim 12, wherein in the case that the response data further includes the target data source identifier, the determining target data to be displayed according to the response data includes:
determining target cache data corresponding to the target data source identification according to a corresponding relation between pre-stored data source identification and cache data;
and taking the target cache data and the instant data successfully acquired from the plurality of data sources as target data to be displayed.
14. The method of claim 13, further comprising:
searching a data source identifier of a data source to which the instant data belongs in a corresponding relation between the data source identifier and cache data;
and changing the cache data corresponding to the searched data source identification into the instant data.
15. The method of claim 12, wherein in the case that the response data includes target security data and the target security data is history data obtained from the target data source, the determining the target data to be displayed according to the response data includes:
and taking the target safety data and the instant data successfully acquired from the plurality of data sources as target data to be displayed.
16. The method of claim 12, wherein after displaying the target data, further comprising:
receiving a fusing prompt sent by the server;
in a preset fusing time period, if the data display operation is detected again, determining a plurality of data sources of the instant data to be displayed;
determining cache data corresponding to the data source according to a corresponding relation between a pre-stored data source identifier and the cache data;
and displaying the determined cache data.
17. The method of claim 16, wherein receiving the fusing hint sent by the server comprises:
analyzing the response data;
and if the response data contains preset fusing character information, determining to receive a fusing prompt sent by the server.
18. A data processing apparatus, wherein the apparatus is applied to a server, the apparatus comprising:
the first acquisition module is used for responding to a data acquisition request sent by a user terminal and acquiring instant data from a plurality of data sources;
the determining module is used for determining a target data source with failure in instant data acquisition and acquiring a target data source identifier of the target data source when the preset response time is reached and the instant data is not successfully acquired from the plurality of data sources;
the generating module is used for generating response data according to the successfully acquired instant data and the target data source identification;
and the first sending module is used for sending the response data to the user terminal.
19. A data processing apparatus, wherein the apparatus is applied to a user terminal, the apparatus comprising:
the sending module is used for responding to the data display operation and sending a data acquisition request to the server;
the first receiving module is used for receiving response data sent by the server, wherein the response data at least comprises instant data which are successfully acquired from a plurality of data sources;
the first determining module is used for determining target data to be displayed according to the response data;
and the display module is used for displaying the target data.
20. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 7 to 11, or claims 12 to 17, when executing a program stored in a memory.
21. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of claims 7-11 or of any of claims 12-17.
CN201911401990.9A 2019-12-30 2019-12-30 Data processing method, device and system Active CN111159269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911401990.9A CN111159269B (en) 2019-12-30 2019-12-30 Data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911401990.9A CN111159269B (en) 2019-12-30 2019-12-30 Data processing method, device and system

Publications (2)

Publication Number Publication Date
CN111159269A true CN111159269A (en) 2020-05-15
CN111159269B CN111159269B (en) 2024-02-02

Family

ID=70559322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911401990.9A Active CN111159269B (en) 2019-12-30 2019-12-30 Data processing method, device and system

Country Status (1)

Country Link
CN (1) CN111159269B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111681745A (en) * 2020-05-28 2020-09-18 泰康保险集团股份有限公司 Data processing method and device
CN112199281A (en) * 2020-09-30 2021-01-08 中国平安财产保险股份有限公司 Data processing method and device, terminal equipment and readable storage medium
CN116401090A (en) * 2023-04-23 2023-07-07 中航信移动科技有限公司 Abnormal data source determining method based on data updating

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008806A (en) * 2017-11-23 2018-05-08 努比亚技术有限公司 A kind of data processing method, terminal and computer-readable recording medium
CN108156252A (en) * 2018-01-04 2018-06-12 北京奇艺世纪科技有限公司 A kind of data access method, device, server and client
CN110620806A (en) * 2019-03-18 2019-12-27 北京无限光场科技有限公司 Information generation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008806A (en) * 2017-11-23 2018-05-08 努比亚技术有限公司 A kind of data processing method, terminal and computer-readable recording medium
CN108156252A (en) * 2018-01-04 2018-06-12 北京奇艺世纪科技有限公司 A kind of data access method, device, server and client
CN110620806A (en) * 2019-03-18 2019-12-27 北京无限光场科技有限公司 Information generation method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111681745A (en) * 2020-05-28 2020-09-18 泰康保险集团股份有限公司 Data processing method and device
CN111681745B (en) * 2020-05-28 2024-03-15 泰康保险集团股份有限公司 Data processing method and device
CN112199281A (en) * 2020-09-30 2021-01-08 中国平安财产保险股份有限公司 Data processing method and device, terminal equipment and readable storage medium
CN116401090A (en) * 2023-04-23 2023-07-07 中航信移动科技有限公司 Abnormal data source determining method based on data updating
CN116401090B (en) * 2023-04-23 2024-01-30 中航信移动科技有限公司 Abnormal data source determining method based on data updating

Also Published As

Publication number Publication date
CN111159269B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN111159269B (en) Data processing method, device and system
EP3389295A1 (en) Multi-terminal mapping system and method for virtual sim card
US9930632B2 (en) M2M application remote registration method, device, system and storage medium
CN109451333B (en) Bullet screen display method, device, terminal and system
CN107315825B (en) Index updating system, method and device
CN109618174B (en) Live broadcast data transmission method, device, system and storage medium
CN108156252B (en) Data access method and device, server and client
CN104580019A (en) Network service supplying method and device
CN109491733B (en) Interface display method based on visualization and related equipment
CN109446445B (en) Resource acquisition method and device
CN111757123A (en) Distributed video decoding system, video decoding output method and device
CN112437148B (en) Service request processing method and device, service server and system
CN108132836B (en) Task distribution method and device and electronic equipment
CN110674153B (en) Data consistency detection method and device and electronic equipment
CN110908881B (en) Buried point data transmitting method and device, electronic equipment and computer readable storage medium
CN112788090A (en) Network resource transmission method, device and system
CN104780153A (en) Method and device for filtering information
CN112187622A (en) Instant message display method and device and server
CN112463398A (en) File transmission method and device, terminal equipment and storage medium
CN111050217A (en) Video playing method and device
CN107766232B (en) Plug-in management method and device
CN112235630B (en) Data backup transmission method, LED mesh loop backup system and electronic equipment
CN111338898B (en) Application state acquisition method and device, electronic equipment and readable storage medium
WO2017112705A1 (en) Delegation of detailed content and app reviews between nearby devices
CN113162997A (en) Data transmission method and device, electronic equipment and readable storage medium

Legal Events

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