CN110765392A - Data loading method and device, storage medium and terminal - Google Patents

Data loading method and device, storage medium and terminal Download PDF

Info

Publication number
CN110765392A
CN110765392A CN201910872105.9A CN201910872105A CN110765392A CN 110765392 A CN110765392 A CN 110765392A CN 201910872105 A CN201910872105 A CN 201910872105A CN 110765392 A CN110765392 A CN 110765392A
Authority
CN
China
Prior art keywords
data
loading
request
service
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910872105.9A
Other languages
Chinese (zh)
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.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network 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 Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN201910872105.9A priority Critical patent/CN110765392A/en
Publication of CN110765392A publication Critical patent/CN110765392A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Abstract

The invention discloses a data loading method and device, a storage medium and a terminal, relates to the technical field of application program development and mainly aims to solve the problems that in the loading process of an existing application program or an H5 page, the time for waiting for response is long after the loaded data sends a request in a serial mode, the sent network request can be delayed and the like, so that the loading speed is low. The method comprises the following steps: when a loading request of data is detected, searching whether a service request identifier corresponding to a loading target carried by the loading request exists in a preset loading transaction list, wherein the preset loading transaction list is pre-configured with service request identifiers corresponding to different loading targets; when the service request identification exists, sending a service data acquisition request corresponding to the service request identification and a container loading request corresponding to the loading target in a parallel mode; and when the returned container data and the service data are complete data, determining to finish the loading of the data.

Description

Data loading method and device, storage medium and terminal
Technical Field
The present invention relates to the field of application development technologies, and in particular, to a data loading method and apparatus, a storage medium, and a terminal.
Background
The technology for loading the application program or the H5 page has become a technical trend in the industry, namely, after the offline package is loaded, a network request of business data is sent, and the application program or the H5 page is rendered by using the returned business data.
Currently, in the loading process of an existing application program or H5 page, the loading speed is slow or intermittent due to the fact that the waiting time for the loaded data to respond after the request is sent in a serial manner is long, or the sent network request may be delayed, and the like, so that a data loading method is urgently needed to solve the problem.
Disclosure of Invention
In view of this, the present invention provides a data loading method and apparatus, a storage medium, and a terminal, and mainly aims to solve the problem that in the loading process of an existing application program or H5 page, the time for waiting for response after the loaded data sends a request in a serial manner is long, or the sent network request may be delayed, which may cause slow loading speed or discontinuity.
According to an aspect of the present invention, there is provided a data loading method, including:
when a loading request of data is detected, searching whether a service request identifier corresponding to a loading target carried by the loading request exists in a preset loading transaction list, wherein the preset loading transaction list is pre-configured with service request identifiers corresponding to different loading targets;
when the service request identification exists, sending a service data acquisition request corresponding to the service request identification and a container loading request corresponding to the loading target in a parallel mode;
and when the returned container data and the service data are complete data, determining to finish the loading of the data.
Further, when the returned container data and the service data are complete data and before it is determined that the loading of the data is completed, the method further includes:
judging whether to load the online resource data according to the service attribute of the loading target;
and if the online resource data are loaded, sending an online resource data acquisition request, and returning the online resource data serving as service data.
Further, when the returned container data and the service data are complete data and before it is determined that the loading of the data is completed, the method further includes:
judging whether the service data acquisition request and/or the container loading request wait overtime according to a preset time interval;
and if the waiting time is out, closing the process for running the service data acquisition request and the container loading request, and sending alarm information.
Further, when the returned container data and the service data are complete data, determining that the loading of the data is completed includes:
and if the waiting time is not overtime, receiving returned container data and service data, and integrating the service data into the container data after the container data and the service data are completely received to obtain loaded data and outputting the loaded data.
Further, when the returned container data and the service data are complete data and before it is determined that the loading of the data is completed, the method further includes:
and storing the service data into a preset storage position when the complete service data is received before the complete container data is received.
Further, when the service request identifier exists, the sending a service data acquisition request corresponding to the service request identifier in a parallel manner, and the container loading request corresponding to the loading target includes:
when the service request identification exists, judging whether the service request identification is a pre-sent request identification;
if the service request identifier is a pre-sending request identifier, searching pre-sending data corresponding to the loading target from the preset storage position;
if the pre-sent data corresponding to the loading target is not found from the preset storage position, sending a pre-sent data acquisition request corresponding to the pre-sent request identification and a container loading request corresponding to the loading target in a parallel mode; or the like, or, alternatively,
and if the pre-sent data corresponding to the loading target is found from the preset storage position, sending a container loading request corresponding to the loading target, and calling the pre-sent data from the preset storage position when the returned container data is received.
Further, the method further comprises:
and when an updating instruction of the service request identifier is received, updating the service request identifier into a preset loading transaction list written in a loading data configuration file according to a loading target and the corresponding service request identifier carried in the updating instruction.
According to another aspect of the present invention, there is provided a data loading apparatus, including:
the searching module is used for searching whether a service request identifier corresponding to a loading target carried by a loading request exists in a preset loading transaction list when the loading request of data is detected, wherein the preset loading transaction list is pre-configured with service request identifiers corresponding to different loading targets;
a sending module, configured to send, in a parallel manner, a service data acquisition request corresponding to the service request identifier and a container loading request corresponding to the loading target when the service request identifier exists;
and the determining module is used for determining to finish the loading of the data when the returned container data and the service data are complete data.
Further, the apparatus further comprises: a judgment module for judging whether the received signal is correct,
the judging module is used for judging whether to load the online resource data according to the service attribute of the loading target;
and the sending module is used for sending an online resource data acquisition request if online resource data are loaded, and the online resource data are returned as service data.
Further, the determining module is further configured to determine whether the service data acquisition request and/or the container loading request wait for timeout according to a preset time interval;
and the sending module is used for closing the process of running the service data acquisition request and the container loading request and sending alarm information if the waiting time is overtime.
Further, the determining module is specifically configured to receive returned container data and service data if the waiting time is not exceeded, and integrate the service data into the container data after the container data and the service data are completely received, so as to obtain loaded data and output the loaded data.
Further, the apparatus further comprises:
and the storage module is used for storing the service data into a preset storage position when the complete service data is received before the complete container data is received.
Further, the sending module includes:
the judging unit is used for judging whether the service request identifier is a pre-sending request identifier or not when the service request identifier exists;
the searching unit is used for searching the pre-sending data corresponding to the loading target from the preset storage position if the service request identifier is a pre-sending request identifier;
a sending unit, configured to send, in a parallel manner, a pre-sent data acquisition request corresponding to the pre-sent request identifier and a container loading request corresponding to the loading target if the pre-sent data corresponding to the loading target is not found from the preset storage location; or the like, or, alternatively,
and the calling unit is used for sending a container loading request corresponding to the loading target if the pre-sent data corresponding to the loading target is found from the preset storage position, and calling the pre-sent data from the preset storage position when the returned container data is received.
Further, the apparatus further comprises:
and the updating module is used for updating the loading target and the corresponding service request identifier carried in the updating instruction into a preset loading transaction list written in the loading data configuration file when the updating instruction of the service request identifier is received.
According to another aspect of the present invention, there is provided a storage medium having at least one executable instruction stored therein, where the executable instruction causes a processor to perform an operation corresponding to the loading method of the data.
According to still another aspect of the present invention, there is provided a terminal including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the data loading method.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the invention provides a data loading method and device, a storage medium and a terminal, compared with the prior art that after an offline package is loaded, a network request of service data is sent, and an application program or an H5 page is obtained by rendering returned service data, the embodiment of the invention searches a service request identifier corresponding to a loading target from a preset loading transaction list when the loading request is detected, and simultaneously sends a service data acquisition request and a container loading request in a parallel mode when the service request identifier exists, and determines to finish the loading of data when the returned container data and the service data are complete, thereby avoiding the problem of request delay occurring in the loading in the serial mode, ensuring that the service data and the container data are simultaneously acquired, reducing the waiting time, improving the loading speed of the data, and avoiding missing the container data and the service data when the data are loaded, and the parallel data loading of the loading request of any service is realized by configuring the service request identifier in the preset loading transaction list, so that the resource waste caused by configuring the data loading request of each service is reduced, and the data loading efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flowchart of a data loading method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another data loading method according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating an apparatus for loading data according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating another data loading apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a data loading method, as shown in fig. 1, the method includes:
101. when a loading request of data is detected, whether a service request identifier corresponding to a loading target carried by the loading request exists is searched from a preset loading transaction list.
The data requested to be loaded can be application data, H5 webpage data, and offline packet data, and when the current terminal sends a loading request of the data to the server, the loading request is monitored in real time so as to search a service request identifier from a preset loading transaction list, where the preset loading transaction list is preconfigured with service request identifiers corresponding to different loading targets. The loading target is an application program to be loaded, an H5 webpage, and an offline package, and the service request identifier is used to identify whether the loading target is configured in a parallel loading manner in advance, for example, an H5 webpage aa is stored in a preset loading transaction list, and when a loading request is detected, whether a service request identifier corresponding to the carried loading target, that is, the H5 webpage aa, exists is searched in the preset loading transaction list, such as a network request identifier of the H5 webpage aa.
102. And when the service request identification exists, sending a service data acquisition request corresponding to the service request identification and a container loading request corresponding to the loading target in a parallel mode.
In the embodiment of the invention, when the corresponding service request identification is found, the service data acquisition request and the container loading request are simultaneously sent in a parallel mode. The service data obtaining request is a request for obtaining service data fed back by a service server in a loading target, for example, the service data may be real-time network information in an H5 webpage, the container loading request is a request for loading a service data container for bearing the loading target, and the service data container may be, for example, a structure, a fixed picture, a fixed character, and the like of a webpage in an H5 webpage.
It should be noted that, in the parallel manner in the embodiment of the present invention, the container loading request may be sent while the service data acquisition request is sent, the request may be sent by applying 2 parallel processes, or the 2 requests may be sent by the same process in parallel, without waiting for a feedback result of one of the requests to send a second request again, which is not limited in the embodiment of the present invention.
103. And when the returned container data and the service data are complete data, determining to finish the loading of the data.
In the embodiment of the invention, because the fed back container data or the service data may have a downloading process, in order to ensure the integrity of the parallel requested data when generating the loading target, when the container data and the service data which are requested to be fed back are determined to be the complete data, the loading of the data is determined to be completed, so that the terminal can output and display the data.
Compared with the prior art that after an offline package is loaded, a network request of service data is sent, and an application program or an H5 page is obtained by utilizing returned service data rendering, the embodiment of the invention searches a service request identifier corresponding to a loading target from a preset loading transaction list when the loading request is detected, simultaneously sends a service data acquisition request and a container loading request according to a parallel mode when the service request identifier exists, and determines to finish the loading of the data when the returned container data and the service data are complete, thereby avoiding the problems of request delay and the like during the loading of the serial mode, improving the loading speed of the data, and improving the loading efficiency of the data.
An embodiment of the present invention provides another data loading method, as shown in fig. 2, the method includes:
201. when a loading request of data is detected, whether a service request identifier corresponding to a loading target carried by the loading request exists is searched from a preset loading transaction list.
This step is the same as step 101 shown in fig. 1, and is not described herein again.
202. And when the service request identification exists, sending a service data acquisition request corresponding to the service request identification and a container loading request corresponding to the loading target in a parallel mode.
This step is the same as step 102 shown in fig. 1, and is not described herein again.
For further limitation and description, step 202 may specifically be: when the service request identification exists, judging whether the service request identification is a pre-sent request identification; if the service request identifier is a pre-sending request identifier, searching pre-sending data corresponding to the loading target from the preset storage position; if the pre-sent data corresponding to the loading target is not found from the preset storage position, sending a pre-sent data acquisition request corresponding to the pre-sent request identification and a container loading request corresponding to the loading target in a parallel mode; or if the pre-sent data corresponding to the loading target is found from the preset storage position, sending a container loading request corresponding to the loading target, and when the returned container data is received, calling the pre-sent data from the preset storage position.
For the embodiment of the present invention, since the pre-sent data can be pre-stored in the current terminal so as to be directly obtained in the actual service, when the service request identifier found from the preset loading transaction list is the pre-sent request identifier, whether the pre-sent data of the loading target exists is found from the preset storage location. The preset data stored in the preset storage location is service data that is requested to be loaded from the server in advance, and the preset storage location may be a local memory, a cache, or the like of the current terminal. When the prefiring data is found from the preset storage position, only the container loading request of the loading target is sent, so that when the returned container data is received, the prefiring data is directly called from the preset storage position to complete the loading of the loading target. In addition, when the pre-sent data is not found from the preset storage position, the pre-sent data acquisition request and the container loading request are sent in a parallel mode.
For the embodiment of the present invention, in order to implement the integrity of the loading target, the method further includes: judging whether to load the online resource data according to the service attribute of the loading target; and if the online resource data are loaded, sending an online resource data acquisition request, and returning the online resource data serving as service data.
The service attribute of the loading target is a property that whether the loading target needs online resources, for example, H5 web pages, application programs, and the like are service attributes that need online resource data, an online resource data acquisition request is sent to acquire the online resource data from the server, and the returned online resource data is determined as the loading data of the loading target with the container data after being returned as the service data.
203. And judging whether the service data acquisition request and/or the container loading request wait overtime according to a preset time interval.
For the embodiment of the present invention, in order to avoid that the request return time sent in a parallel manner is long and affects data loading, a preset time interval, such as 1 minute, 30 seconds, and the like, is preset, and the embodiment of the present invention is not specifically limited. And judging whether the transmitted service data acquisition request and the transmitted container loading request wait overtime according to the preset time.
204a, if the waiting time is overtime, closing the process of running the service data acquisition request and the container loading request, and sending alarm information.
For the embodiment of the present invention, in order to avoid that the waiting timeout of the transmitted request affects the efficiency of data loading, if the waiting timeout is determined according to the preset time interval, the operation of the service data acquisition request and the container loading request is closed, so that the loading is performed again. When sending the alarm information, the alarm information may carry a specific request for waiting for timeout, such as a service data acquisition request waiting for timeout, a container loading request waiting for timeout, or a service data acquisition request and a container loading request simultaneously timeout, and the embodiment of the present invention is not particularly limited.
For the embodiment of the present invention, in step 204b parallel to step 204a, if the waiting time is not exceeded, the returned container data and the service data are received, and after the container data and the service data are completely received, the service data are integrated into the container data, and the loaded data are obtained and output.
In the embodiment of the invention, because the loading of the data is not instantly finished when the business data and the container data are received, and a loading process is needed, only after the container data and the business data are completely received, the business data are integrated into the container data, and then the whole loading data of the loading target can be obtained, thereby finishing the loading and outputting, such as displaying and the like.
For the embodiment of the present invention, step 204b may further include: and storing the service data into a preset storage position when the complete service data is received before the complete container data is received.
In the embodiment of the invention, for the completeness of service data receiving and avoiding the loss of service data, before the complete container data is received, when the complete service data is received, the service data is stored in the preset storage position, such as a memory, so as to avoid the loss of the service data, so that when the complete container data is received, the service data temporarily stored in the preset storage position is called, and the loading of a loading target is completed.
Further, in order to configure the service request identifier for different loading targets in advance, it is determined whether the loading target installs the current data loading method for loading. The embodiment of the invention also comprises the following steps: and when an updating instruction of the service request identifier is received, updating the service request identifier into a preset loading transaction list written in a loading data configuration file according to a loading target and the corresponding service request identifier carried in the updating instruction.
The preset loading transaction list recorded with the service request identifications corresponding to different loading targets is stored in a system of the current terminal in a configuration file form, so that when a data loading request is detected, the corresponding service request identification is searched from the preset loading transaction list in the loading data configuration file. In addition, for the purpose of predefining a loading target, when an update instruction of a service request identifier is received, the loading target carried in the update instruction and the service request identifier corresponding to the loading target are updated to a preset loading transaction list, and the updating includes operations such as adding, deleting, changing and the like.
The embodiment of the invention searches a service request identifier corresponding to a loading target from a preset loading transaction list when a loading request is detected, simultaneously sends a service data acquisition request and a container loading request in a parallel mode when the service request identifier exists, and determines to finish loading of data when returned container data and service data are complete, thereby avoiding the problems of request delay and the like during loading in a serial mode, improving the loading speed of the data and further improving the loading efficiency of the data.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides a data loading apparatus, as shown in fig. 3, where the apparatus includes: a searching module 31, a sending module 32 and a determining module 33.
The searching module 31 is configured to, when a loading request of data is detected, search, from a preset loading transaction list, whether a service request identifier corresponding to a loading target carried by the loading request exists, where service request identifiers corresponding to different loading targets are pre-configured in the preset loading transaction list;
a sending module 32, configured to send, in a parallel manner, a service data acquisition request corresponding to the service request identifier and a container loading request corresponding to the loading target when the service request identifier exists;
and the determining module 33 is configured to determine that the loading of the data is completed when the returned container data and the service data are complete data.
Compared with the prior art that after an offline package is loaded, a network request of service data is sent, and an application program or an H5 page is obtained by utilizing returned service data to render, the embodiment of the invention searches a service request identifier corresponding to a loading target from a preset loading transaction list when the loading request is detected, simultaneously sends a service data acquisition request and a container loading request according to a parallel mode when the service request identifier exists, and determines to finish the loading of the data when the returned container data and the service data are complete, thereby avoiding the problems of request delay and the like during the loading of the serial mode, improving the loading speed of the data, and improving the loading efficiency of the data.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention provides another data loading apparatus, as shown in fig. 4, where the apparatus includes: the device comprises a searching module 41, a sending module 42, a determining module 43, a judging module 44, a storing module 45 and an updating module 46.
A searching module 41, configured to search, when a loading request of data is detected, whether a service request identifier corresponding to a loading target carried by the loading request exists in a preset loading transaction list, where service request identifiers corresponding to different loading targets are preconfigured in the preset loading transaction list;
a sending module 42, configured to send, in a parallel manner, a service data obtaining request corresponding to the service request identifier and a container loading request corresponding to the loading target when the service request identifier exists;
and the determining module 43 is configured to determine that the loading of the data is completed when the returned container data and the service data are complete data.
Further, the apparatus further comprises: the decision block 44 is used to determine whether,
the judging module 44 is configured to judge whether to load online resource data according to the service attribute of the loading target;
the sending module 42 is configured to send an online resource data obtaining request if online resource data is loaded, where the online resource data is returned as service data.
Further, the determining module 44 is further configured to determine whether the service data acquisition request and/or the container loading request wait for timeout according to a preset time interval;
the sending module 42 is configured to close the process of running the service data obtaining request and the container loading request if the waiting time is out, and send alarm information.
Further, the determining module 43 is specifically configured to receive returned container data and service data if the waiting time is not exceeded, and integrate the service data into the container data after the container data and the service data are completely received, so as to obtain loaded data, and output the loaded data.
Further, the apparatus further comprises:
and a storage module 45, configured to store the service data into a preset storage location when complete service data is received before complete container data is received.
Further, the sending module 42 includes:
a determining unit 4201, configured to determine, when the service request identifier exists, whether the service request identifier is a pre-transmission request identifier;
a searching unit 4202, configured to search, if the service request identifier is a pre-issuance request identifier, pre-issuance data corresponding to the loading target from the preset storage location;
a sending unit 4203, configured to send, in a parallel manner, a pre-sent data obtaining request corresponding to the pre-sent request identifier and a container loading request corresponding to the loading target if the pre-sent data corresponding to the loading target is not found from the preset storage location; or the like, or, alternatively,
a retrieving unit 4204, configured to send a container loading request corresponding to the loading target if the pre-sent data corresponding to the loading target is found from the preset storage location, and retrieve the pre-sent data from the preset storage location when receiving returned container data.
Further, the apparatus further comprises:
and an updating module 46, configured to update, when an update instruction of the service request identifier is received, the loading target and the corresponding service request identifier that are carried in the update instruction into a preset loading transaction list written in the loading data configuration file according to the loading target and the corresponding service request identifier.
The invention provides another data loading device, and the embodiment of the invention searches a service request identifier corresponding to a loading target from a preset loading transaction list when a loading request is detected, simultaneously sends a service data acquisition request and a container loading request in a parallel mode when the service request identifier exists, and determines to finish the loading of data when the returned container data and the service data are complete, thereby avoiding the problems of request delay and the like during the loading in a serial mode, improving the loading speed of the data and further improving the loading efficiency of the data.
According to an embodiment of the present invention, a storage medium is provided, where at least one executable instruction is stored, and the computer executable instruction can execute the method for loading data in any of the above method embodiments.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the terminal.
As shown in fig. 5, the terminal may include: a processor (processor)502, a communication interface 504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically perform relevant steps in the above-described data loading method embodiment.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the invention. The terminal comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
when a loading request of data is detected, searching whether a service request identifier corresponding to a loading target carried by the loading request exists in a preset loading transaction list, wherein the preset loading transaction list is pre-configured with service request identifiers corresponding to different loading targets;
when the service request identification exists, sending a service data acquisition request corresponding to the service request identification and a container loading request corresponding to the loading target in a parallel mode;
and when the returned container data and the service data are complete data, determining to finish the loading of the data. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for loading data is characterized by comprising the following steps:
when a loading request of data is detected, searching whether a service request identifier corresponding to a loading target carried by the loading request exists in a preset loading transaction list, wherein the preset loading transaction list is pre-configured with service request identifiers corresponding to different loading targets;
when the service request identification exists, sending a service data acquisition request corresponding to the service request identification and a container loading request corresponding to the loading target in a parallel mode;
and when the returned container data and the service data are complete data, determining to finish the loading of the data.
2. The method according to claim 1, wherein when the returned container data and service data are complete data, before determining that loading of the data is completed, the method further comprises:
judging whether to load the online resource data according to the service attribute of the loading target;
and if the online resource data are loaded, sending an online resource data acquisition request, and returning the online resource data serving as service data.
3. The method according to claim 2, wherein when the returned container data and service data are complete data, before determining that the loading of the data is completed, the method further comprises:
judging whether the service data acquisition request and/or the container loading request wait overtime according to a preset time interval;
and if the waiting time is out, closing the process for running the service data acquisition request and the container loading request, and sending alarm information.
4. The method of claim 3, wherein when the returned container data and service data are complete data, determining that the loading of the data is completed comprises:
and if the waiting time is not overtime, receiving returned container data and service data, and integrating the service data into the container data after the container data and the service data are completely received to obtain loaded data and outputting the loaded data.
5. The method according to any one of claims 1 to 4, wherein before determining that the loading of the data is completed when the returned container data and the service data are complete data, the method further comprises:
and storing the service data into a preset storage position when the complete service data is received before the complete container data is received.
6. The method according to claim 5, wherein when the service request identifier exists, the sending a service data acquisition request corresponding to the service request identifier in a parallel manner, and the container loading request corresponding to the loading target comprises:
when the service request identification exists, judging whether the service request identification is a pre-sent request identification;
if the service request identifier is a pre-sending request identifier, searching pre-sending data corresponding to the loading target from the preset storage position;
if the pre-sent data corresponding to the loading target is not found from the preset storage position, sending a pre-sent data acquisition request corresponding to the pre-sent request identification and a container loading request corresponding to the loading target in a parallel mode; or the like, or, alternatively,
and if the pre-sent data corresponding to the loading target is found from the preset storage position, sending a container loading request corresponding to the loading target, and calling the pre-sent data from the preset storage position when the returned container data is received.
7. The method of claim 6, further comprising:
and when an updating instruction of the service request identifier is received, updating the service request identifier into a preset loading transaction list written in a loading data configuration file according to a loading target and the corresponding service request identifier carried in the updating instruction.
8. An apparatus for loading data, comprising:
the searching module is used for searching whether a service request identifier corresponding to a loading target carried by a loading request exists in a preset loading transaction list when the loading request of data is detected, wherein the preset loading transaction list is pre-configured with service request identifiers corresponding to different loading targets;
a sending module, configured to send, in a parallel manner, a service data acquisition request corresponding to the service request identifier and a container loading request corresponding to the loading target when the service request identifier exists;
and the determining module is used for determining to finish the loading of the data when the returned container data and the service data are complete data.
9. A storage medium having stored therein at least one executable instruction for causing a processor to perform an operation corresponding to the method of loading data according to any one of claims 1 to 7.
10. A terminal, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the loading method of the data according to any one of claims 1-7.
CN201910872105.9A 2019-09-16 2019-09-16 Data loading method and device, storage medium and terminal Pending CN110765392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910872105.9A CN110765392A (en) 2019-09-16 2019-09-16 Data loading method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910872105.9A CN110765392A (en) 2019-09-16 2019-09-16 Data loading method and device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN110765392A true CN110765392A (en) 2020-02-07

Family

ID=69329608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910872105.9A Pending CN110765392A (en) 2019-09-16 2019-09-16 Data loading method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110765392A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504858A (en) * 2021-07-16 2021-10-15 北京猿力未来科技有限公司 Order page processing method, device, equipment and storage medium
CN113987360A (en) * 2021-12-24 2022-01-28 浙江口碑网络技术有限公司 Object recommendation method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100325615A1 (en) * 2009-06-23 2010-12-23 Myspace Inc. Method and system for capturing web-page information through web-browser plugin
US8296375B1 (en) * 2009-02-03 2012-10-23 Sprint Communications Company L.P. Parallel management of load servers, cache servers, and feed servers
CN106095506A (en) * 2016-06-14 2016-11-09 乐视控股(北京)有限公司 A kind of page loading method and device
CN107864173A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Terminal page caching method, system and readable storage medium storing program for executing
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN109391649A (en) * 2017-08-04 2019-02-26 阿里巴巴集团控股有限公司 The methods, devices and systems of page load
CN109634654A (en) * 2018-12-04 2019-04-16 北京马上慧科技术有限公司 A kind of page packaging method, device, system, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8296375B1 (en) * 2009-02-03 2012-10-23 Sprint Communications Company L.P. Parallel management of load servers, cache servers, and feed servers
US20100325615A1 (en) * 2009-06-23 2010-12-23 Myspace Inc. Method and system for capturing web-page information through web-browser plugin
CN106095506A (en) * 2016-06-14 2016-11-09 乐视控股(北京)有限公司 A kind of page loading method and device
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN107864173A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Terminal page caching method, system and readable storage medium storing program for executing
CN109391649A (en) * 2017-08-04 2019-02-26 阿里巴巴集团控股有限公司 The methods, devices and systems of page load
CN109634654A (en) * 2018-12-04 2019-04-16 北京马上慧科技术有限公司 A kind of page packaging method, device, system, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504858A (en) * 2021-07-16 2021-10-15 北京猿力未来科技有限公司 Order page processing method, device, equipment and storage medium
CN113987360A (en) * 2021-12-24 2022-01-28 浙江口碑网络技术有限公司 Object recommendation method and device, electronic equipment and storage medium
CN113987360B (en) * 2021-12-24 2022-05-17 浙江口碑网络技术有限公司 Object recommendation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107872528B (en) Message pushing method and device
CN111970315A (en) Method, device and system for pushing message
US20190109920A1 (en) Browser resource pre-pulling method, terminal and storage medium
US10789111B2 (en) Message oriented middleware with integrated rules engine
CN110968331B (en) Method and device for running application program
CN110427386B (en) Data processing method, device and computer storage medium
CN110019496B (en) Data reading and writing method and system
CN111371585A (en) Configuration method and device for CDN node
CN110765392A (en) Data loading method and device, storage medium and terminal
CN110659104B (en) Service monitoring method and related equipment
WO2019117767A1 (en) Method, function manager and arrangement for handling function calls
CN113961832A (en) Page rendering method, device, equipment, storage medium and program product
CN107819855B (en) Message distribution method and device
WO2018068655A1 (en) License management method and system
CN114584618A (en) Information interaction method, device, equipment, storage medium and system
CN111367921A (en) Data object refreshing method and device
CN114201701B (en) Method and device for identifying operating environment, storage medium, server and client
CN113536168B (en) Component processing method and device
CN114637969A (en) Target object authentication method and device
CN114301920A (en) System log forwarding method and device, computing device and storage medium
CN112363806A (en) Cluster management method and device, electronic equipment and storage medium
CN112052091A (en) Processing method of service call request under multi-computer-room deployment and computing equipment
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN110134502A (en) Task processing method, device, system, computer equipment and storage medium
CN109032777B (en) Process restarting method and device, computing equipment and computer 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication