CN109343862B - Scheduling method and device of resource data of application - Google Patents

Scheduling method and device of resource data of application Download PDF

Info

Publication number
CN109343862B
CN109343862B CN201811012627.3A CN201811012627A CN109343862B CN 109343862 B CN109343862 B CN 109343862B CN 201811012627 A CN201811012627 A CN 201811012627A CN 109343862 B CN109343862 B CN 109343862B
Authority
CN
China
Prior art keywords
resource
resource data
priority
application
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811012627.3A
Other languages
Chinese (zh)
Other versions
CN109343862A (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 Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201811012627.3A priority Critical patent/CN109343862B/en
Publication of CN109343862A publication Critical patent/CN109343862A/en
Application granted granted Critical
Publication of CN109343862B publication Critical patent/CN109343862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for scheduling resource data of an application, wherein the method comprises the following steps: the server collects behavior data of the user when using each resource data of the application; the server determines the priority of the resource data in the behavior data, and stores the priority as a resource priority list; when the application is started, searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application; and downloading the resource data from the target server according to the resource priority list. The method solves the problems that the prior art is limited to scheduling of local resources, does not relate to remote resource scheduling and causes overlarge application installation package of local resource data, and realizes remote scheduling of the resource data without storing in the local by determining the priority of the resource data and downloading the resource data from a server according to the priority when the application is started.

Description

Scheduling method and device of resource data of application
Technical Field
The embodiment of the invention relates to the technical field of mobile internet, in particular to a method and a device for scheduling resource data of an application.
Background
In the technical field of mobile internet, almost all application programs can not operate without resource files such as pictures, audios and videos, too much resources are introduced to increase the volume of packaged applications, and the use experience of users is reduced due to the fact that too much resources are downloaded in the application operation process.
In the prior art, a method and a device for uploading user behavior data have the main idea that a data uploading request is generated according to the user behavior data, the requests are divided into primary and secondary priorities and added into a queue, and the primary and secondary priorities are executed according to the priority order of the primary and secondary requests when the data are uploaded. In another prior art scheme, the main idea is to calculate the application memory recovery priority according to application history use data, and release cache data to recover the memory according to the priority when the application exits from the foreground, so that the background application reduces the occupation of memory resources.
The method and the device have the advantages that the prior art is limited to scheduling of local resources, remote resource scheduling is not involved, and the problem that the application installation package is too large due to too much local resource data is solved.
Disclosure of Invention
The invention provides a method and a device for scheduling resource data of an application, which aim to solve the problems in the prior art.
According to a first aspect of the present invention, there is provided a method for scheduling resource data of an application, the method comprising:
the server collects behavior data of the user when using each resource data of the application;
the server determines the priority of the resource data in the behavior data, and stores the priority as a resource priority list;
when the application is started, searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application;
and downloading the resource data from the target server according to the resource priority list.
Optionally, before the step of searching for a target server used for storing the resource data according to server information stored in a preset server information list stored in the application when the application is started, the method further includes:
uploading the resource data to each server according to the resource priority list;
storing the corresponding relation between the server information of the server and the stored resource data in a preset server information list;
and loading the preset server information list to the application.
Optionally, the step of downloading the resource data from the target server according to the resource priority list includes:
when the application is started, acquiring a resource data queue to be downloaded of the application;
and downloading the application resources to be downloaded in the resource data queue to be downloaded from each corresponding target server according to the priority sequence in the resource priority list.
Optionally, if the user behavior data includes time and frequency of using resource data by the user, the server determines, in the behavior data, a priority of using each resource data, and stores the priority as a resource priority list, including:
marking the resource data as high priority and low priority according to the time length and the use frequency of the resource data used by a user;
and storing the corresponding relation between each resource data and the high priority and the low priority as a resource priority list.
According to a second aspect of the present invention, there is provided an apparatus for scheduling resource data of an application, the apparatus comprising:
the behavior data collection module is used for collecting behavior data of the user when the user uses each resource data of the application by the server;
a resource priority list determining module, configured to determine, by the server, a priority of use of each resource data in the behavior data, and store the priority as a resource priority list;
the target server searching module is used for searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application when the application is started;
and the resource data downloading module is used for downloading the resource data from the target server according to the resource priority list.
Optionally, the apparatus further comprises:
the resource data uploading module is used for uploading the resource data to each server according to the resource priority list;
a preset server information list generation module, configured to store a corresponding relationship between the server information of the server and the stored resource data in a preset server information list;
and the preset server information list loading module is used for loading the preset server information list to the application.
Optionally, if the user behavior data includes time and frequency of using resource data by a user, the resource priority list determining module includes:
the priority determining submodule is used for marking the resource data as high priority and low priority according to the time length and the use frequency of the resource data used by a user;
and the priority storage submodule is used for storing the corresponding relation between each resource data and the high priority and the low priority as a resource priority list.
According to a third aspect of the present invention, there is provided an electronic apparatus comprising:
a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the aforementioned method when executing the program.
According to a fourth aspect of the invention, there is provided a readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the aforementioned method.
The embodiment of the invention provides a method and a device for scheduling resource data of an application, wherein the method comprises the following steps: the server collects behavior data of the user when using each resource data of the application; the server determines the priority of the resource data in the behavior data, and stores the priority as a resource priority list; when the application is started, searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application; and downloading the resource data from the target server according to the resource priority list. The method and the device solve the problems that the prior art is limited to scheduling of local resources, does not relate to remote resource scheduling, and causes overlarge application installation package of local resource data, can realize remote scheduling of the resource data by determining the priority of the resource data and downloading the resource data from the server according to the priority when the application is started, and have the advantages that the resource data are downloaded and stored locally when the application is not downloaded, and the application installation package is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating specific steps of a method for scheduling resource data of an application according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating specific steps of a method for scheduling resource data of an application according to a second embodiment of the present invention;
fig. 2A is a schematic view of a resource data loading flow of an application according to an embodiment of the present invention;
fig. 3 is a structural diagram of a scheduling apparatus for resource data of an application according to a third embodiment of the present invention;
fig. 4 is a block diagram of an apparatus for scheduling resource data of an application according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating specific steps of a method for scheduling resource data of an application according to an embodiment of the present invention is shown.
Step 101, a server collects behavior data of a user when the user uses each resource data of an application;
specifically, behavior data of resource data used by a user is collected in a testing stage after application development and uploaded to a server, wherein the behavior data of the user comprises a resource path, a type, a resource size, resource use opportunity, use times and the like.
In practical applications, the resource data includes pictures, audio and video data, etc. used in the applications.
It can be understood that, if too much resource data is imported during the running of the application, the running of the application occupies a large memory, the running is slow, and the volume of the packed application is increased.
Step 102, the server determines the priority of the resource data in the behavior data, and stores the priority as a resource priority list;
specifically, after sufficient behavior data is collected for the user to use the application within the application test time period set by the developer, the priority of each resource data is set according to the time and frequency of the user to use each resource data in the application.
In practical application, for example, if the frequency of using the resource data a by the user in various operations in the application is high and the usage time is long, and both the usage frequency and the usage duration exceed a preset threshold, the resource data a is marked as high-priority resource data, and after the resource data called by the user by using the application is subjected to priority marking, the resource data is stored as a resource data priority list and loaded into the current application.
Of course, the resource priority list is continuously updated according to the user behavior data during the running of the application, and is not limited to the application development stage and the test stage.
103, when the application is started, searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application;
specifically, after the application is started, a target server storing corresponding resource data is searched for according to a pre-stored resource data priority list and a preset server information list.
Of course, the target server storing each resource data may be one or more.
It is understood that each resource data stored in the preset server information list corresponds to a server address, a server key, path information of each resource data stored in the server, and the like.
And if the resource information stored in the server is damaged or the server is damaged, the corresponding entry in the preset server information list is correspondingly updated.
And 104, downloading the resource data from the target server according to the resource priority list.
Specifically, each resource data is downloaded from the corresponding target server one by one according to the sequence of the resource data in the resource priority list of the current application.
In general, after the resources are successfully loaded, the resources are written into a memory and a disk to serve as a cache, and meanwhile, the results are called back to the application client.
Wherein, if the resource loading fails, the resource loading is added into the failure queue to wait for the downloading again at a proper time.
In summary, an embodiment of the present invention provides a method for scheduling resource data of an application, where the method includes: the server collects behavior data of the user when using each resource data of the application; the server determines the priority of the resource data in the behavior data, and stores the priority as a resource priority list; when the application is started, searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application; and downloading the resource data from the target server according to the resource priority list. The method and the device solve the problems that the prior art is limited to scheduling of local resources, does not relate to remote resource scheduling, and causes overlarge application installation package of local resource data, can realize remote scheduling of the resource data by determining the priority of the resource data and downloading the resource data from the server according to the priority when the application is started, and have the advantages that the resource data are downloaded and stored locally when the application is not downloaded, and the application installation package is reduced.
Example two
Referring to fig. 2, a flowchart illustrating specific steps of a method for scheduling resource data of an application according to a second embodiment of the present invention is shown.
Step 201, a server collects behavior data of a user when the user uses each resource data of an application;
this step is the same as step 101 and will not be described in detail here.
Step 202, the server determines the priority of the resource data used in the behavior data, and stores the priority as a resource priority list;
this step is the same as step 102 and will not be described in detail here.
Preferably, if the user behavior data includes the time and frequency of using the resource data by the user, step 202 includes: substeps B1-B2;
substep B1, marking each resource data as high priority and low priority according to the time and frequency of using each resource data by the user;
it can be understood that, during the running of the application, behavior data of the resource used by the user is collected and reported to the server, and the behavior data includes the resource data use time and use frequency, and may further include the path, type and size of the resource data. And the server end establishes the priority of the resource data according to the time and frequency of the user number using the resource, the type of the resource data and the data size, and marks the priority so as to be responsible for the dynamic scheduling of the resource during the running period of the application.
And a substep B2 of storing the correspondence between each of the resource data and the high priority and the low priority as a resource priority list.
Specifically, the resource data with the established priority is stored as a resource priority list according to the priority order.
It can be understood that the resource data may also be sorted and stored according to the data type and the data storage path in combination with the priority order, and set by a related technician in combination with application rationality, which is not limited in this embodiment of the present invention.
Step 203, uploading the resource data to each server according to the resource priority list;
specifically, according to the resource priority list, a resource list needing dynamic scheduling is specified by related technicians in an application development stage, and corresponding resource data are uploaded to a specified server according to the resource list needing dynamic scheduling.
It will be appreciated that active adjustment of the priority to meet specific requirements may be undertaken manually.
Step 204, storing the corresponding relation between the server information of the server and the stored resource data in a preset server information list;
specifically, after the resources specified in the dynamically scheduled resource list are uploaded to the server, the resources are deleted from the local application, and meanwhile, information such as a server address (URL), a key SHA256, a resource path and the like corresponding to each resource is written into a new preset server information list.
Step 205, loading the preset server information list to the application.
Specifically, the preset server information list is packaged into the application at the application development stage, so that the corresponding target server is searched according to the server information in the preset server information list during the running period of the application.
Of course, the application will periodically download an updated list of preset server information to the designated server.
Step 206, when the application is started, searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application;
this step is the same as step 103 and will not be described in detail here.
And step 207, downloading the resource data from the target server according to the resource priority list.
Preferably, step 207 includes sub-steps A1-A2;
substep A1, when the application is started, acquiring a resource data queue to be downloaded of the application;
specifically, as shown in fig. 2A, in the application running stage, the resource dynamic scheduling center performs resource scheduling, that is, the preloading procedure is automatically started after the application is started.
It can be understood that the resource data queue to be downloaded is generated according to the commonly used resource of the application and the resource data called by the operation of the current user.
Specifically, according to the resource data queue to be downloaded, the application reads and writes in the application resource data priority list, and each resource in the list is preloaded one by one according to the priority of the resource.
Sub-step a2, downloading the application resource to be downloaded in the resource data queue to be downloaded from each corresponding target server according to the priority order in the resource priority list.
Specifically, as shown in fig. 2A, network loading is performed by two priority queues, a high priority queue and a low priority queue.
By default, all resource data to be loaded are loaded in the low-priority queue after the application is started, and when a current high-priority resource data loading task is detected, the resource data loading task of the low-priority queue is suspended, and the resource data in the high-priority queue is loaded preferentially. And restarting the low-priority queue after the high-priority resource is loaded, and continuing to pre-load.
It can be understood that, when downloading the resource data, the corresponding target server is found in the preset server information list for downloading, and the influence of the network environment on the data loading speed is not limited in the embodiment of the present application.
In practical applications, as shown in fig. 2A, after the resource data is successfully loaded, the resource data is written into a memory or a disk and used as a cache, and a result is recalled to the application.
Preferably, step 207 further comprises:
and a substep a3, if the resource data download from each server fails, recording the resource data failed in download in a resource data queue to be downloaded.
Specifically, the resource loading failure is re-enqueued in the resource data queue to be downloaded, and sub-steps A1-A3 are re-executed.
It can be understood that, if the data resource downloaded again fails to be downloaded, the data resource may be marked to increase the priority, and there is a related technical setting, and the embodiment of the present invention is not limited.
In summary, an embodiment of the present invention provides a method for scheduling resource data of an application, where the method includes: the server collects behavior data of the user when using each resource data of the application; the server determines the priority of the resource data in the behavior data, and stores the priority as a resource priority list; uploading the resource data to each server according to the resource priority list; storing the corresponding relation between the server information of the server and the stored resource data in a preset server information list; and loading the preset server information list to the application. When the application is started, searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application; and downloading the resource data from the target server according to the resource priority list. The method and the device solve the problems that the prior art is limited to scheduling of local resources, does not relate to remote resource scheduling, and causes overlarge application installation package of local resource data, can realize remote scheduling of the resource data by determining the priority of the resource data and downloading the resource data from the server according to the priority when the application is started, and have the advantages that the resource data are downloaded and stored locally when the application is not downloaded, and the application installation package is reduced.
EXAMPLE III
Referring to fig. 3, a structural diagram of a scheduling apparatus for resource data of an application according to a third embodiment of the present invention is shown, which is as follows.
A behavior data collection module 301, configured to collect behavior data of a user when using resource data of an application by a server;
a resource priority list determining module 302, configured to determine, by the server, a priority for use of each resource data in the behavior data, and store the priority as a resource priority list;
a target server searching module 303, configured to search, when the application is started, a target server for storing the resource data according to server information stored in a preset server information list stored in the application;
a resource data downloading module 304, configured to download the resource data from the target server according to the resource priority list.
In summary, an embodiment of the present invention provides an apparatus for scheduling resource data of an application, where the apparatus includes: the behavior data collection module is used for collecting behavior data of the user when the user uses each resource data of the application by the server; a resource priority list determining module, configured to determine, by the server, a priority of each resource data used in the behavior data, and store the priority as a resource priority list; the target server searching module is used for searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application when the application is started; and the resource data downloading module is used for downloading the resource data from the target server according to the resource priority list. The method and the device solve the problems that the prior art is limited to scheduling of local resources, does not relate to remote resource scheduling, and causes overlarge application installation package of local resource data, can realize remote scheduling of the resource data by determining the priority of the resource data and downloading the resource data from the server according to the priority when the application is started, and have the advantages that the resource data are downloaded and stored locally when the application is not downloaded, and the application installation package is reduced.
The third embodiment is a corresponding apparatus embodiment to the first embodiment, and the detailed information may refer to the detailed description of the first embodiment, which is not described herein again.
Example four
Referring to fig. 4, a structural diagram of a scheduling apparatus for resource data of an application according to a fourth embodiment of the present invention is shown, which is as follows.
A behavior data collection module 401, configured to collect, by a server, behavior data of a user when using resource data of an application;
a resource priority list determining module 402, configured to determine, by the server, a priority of being used by each resource data in the behavior data, and store the priority as a resource priority list;
preferably, if the user behavior data includes a time and a frequency of using the resource data by the user, the resource priority list determining module 402 includes:
the priority determining submodule is used for marking the resource data as high priority and low priority according to the time length and the use frequency of the resource data used by a user;
and the priority storage submodule is used for storing the corresponding relation between each resource data and the high priority and the low priority as a resource priority list.
A resource data uploading module 403, configured to upload the resource data to each server according to the resource priority list;
a preset server information list generating module 404, configured to store a corresponding relationship between the server information of the server and the stored resource data in a preset server information list;
a preset server information list loading module 405, configured to load the preset server information list to the application.
A target server searching module 406, configured to search, when the application is started, a target server for storing the resource data according to server information stored in a preset server information list stored in the application;
and a resource data downloading module 407, configured to download the resource data from the target server according to the resource priority list.
Preferably, the resource data downloading module 407 includes:
the resource data queue to be downloaded acquiring submodule is used for acquiring the resource data queue to be downloaded of the application when the application is started;
and the resource data downloading submodule is used for downloading the application resources to be downloaded in the resource data queue to be downloaded from the corresponding target servers according to the priority sequence in the resource priority list.
In summary, an embodiment of the present invention provides an apparatus for scheduling resource data of an application, where the apparatus includes: the behavior data collection module is used for collecting behavior data of the user when the user uses each resource data of the application by the server; a resource priority list determining module, configured to determine, by the server, a priority of use of each resource data in the behavior data, and store the priority as a resource priority list; the resource data uploading module is used for uploading the resource data to each server according to the resource priority list; a preset server information list generation module, configured to store a corresponding relationship between the server information of the server and the stored resource data in a preset server information list; and the preset server information list loading module is used for loading the preset server information list to the application. The target server searching module is used for searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application when the application is started; and the resource data downloading module is used for downloading the resource data from the target server according to the resource priority list. The method and the device solve the problems that the prior art is limited to scheduling of local resources, does not relate to remote resource scheduling, and causes overlarge application installation package of local resource data, can realize remote scheduling of the resource data by determining the priority of the resource data and downloading the resource data from the server according to the priority when the application is started, and have the advantages that the resource data are downloaded and stored locally when the application is not downloaded, and the application installation package is reduced.
The fourth embodiment is a device embodiment corresponding to the second embodiment, and the detailed information may refer to the detailed description of the second embodiment, which is not repeated herein.
An embodiment of the present invention further provides an electronic device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the aforementioned method when executing the program.
Embodiments of the present invention further provide a readable storage medium, where instructions executed by a processor of an electronic device enable the electronic device to execute the foregoing method.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: rather, the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the scheduling device of resource data for an application according to an embodiment of the present invention. The present invention may also be embodied as an apparatus or device program for carrying out a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for scheduling resource data of an application, the method comprising:
the server collects behavior data of the user when using each resource data of the application; wherein the resource data comprises picture and audio-video data;
the server determines the priority of the resource data in the behavior data, and stores the priority as a resource priority list;
when the application is started, searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application;
and downloading the resource data from the target server according to the resource priority list.
2. The method according to claim 1, further comprising, before the step of searching for a target server for storing the resource data according to server information stored in a preset server information list stored in the application when the application is started, the step of:
uploading the resource data to each server according to the resource priority list;
storing the corresponding relation between the server information of the server and the stored resource data in a preset server information list;
and loading the preset server information list to the application.
3. The method of claim 1, wherein the step of downloading the resource data from the target server according to the resource priority list comprises:
when the application is started, acquiring a resource data queue to be downloaded of the application;
and downloading the application resources to be downloaded in the resource data queue to be downloaded from each corresponding target server according to the priority sequence in the resource priority list.
4. The method according to claim 1, wherein if the user behavior data includes time and frequency of use of resource data by a user, the step of the server determining a priority of use of each resource data in the behavior data and storing the priority as a resource priority list comprises:
marking the resource data as high priority and low priority according to the time length and the use frequency of the resource data used by a user;
and storing the corresponding relation between each resource data and the high priority and the low priority as a resource priority list.
5. An apparatus for scheduling resource data of an application, the apparatus comprising:
the behavior data collection module is used for collecting behavior data of the user when the user uses each resource data of the application by the server; wherein the resource data comprises picture and audio-video data;
a resource priority list determining module, configured to determine, by the server, a priority of each resource data used in the behavior data, and store the priority as a resource priority list;
the target server searching module is used for searching a target server for storing the resource data according to server information stored in a preset server information list stored in the application when the application is started;
and the resource data downloading module is used for downloading the resource data from the target server according to the resource priority list.
6. The apparatus of claim 5, further comprising:
the resource data uploading module is used for uploading the resource data to each server according to the resource priority list;
a preset server information list generation module, configured to store a corresponding relationship between the server information of the server and the stored resource data in a preset server information list;
and the preset server information list loading module is used for loading the preset server information list to the application.
7. The apparatus of claim 5, wherein the resource data downloading module comprises:
the resource data queue to be downloaded acquiring submodule is used for acquiring the resource data queue to be downloaded of the application when the application is started;
and the resource data downloading submodule is used for downloading the application resources to be downloaded in the resource data queue to be downloaded from the corresponding target servers according to the priority sequence in the resource priority list.
8. The apparatus of claim 5, wherein if the user behavior data includes time and frequency of use of resource data by a user, the resource priority list determining module comprises:
the priority determining submodule is used for marking the resource data as high priority and low priority according to the time length and the use frequency of the resource data used by a user;
and the priority storage submodule is used for storing the corresponding relation between each resource data and the high priority and the low priority as a resource priority list.
9. An electronic device, comprising:
processor, memory and computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to one or more of claims 1-4 when executing the program.
10. A readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method according to one or more of method claims 1-4.
CN201811012627.3A 2018-08-31 2018-08-31 Scheduling method and device of resource data of application Active CN109343862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811012627.3A CN109343862B (en) 2018-08-31 2018-08-31 Scheduling method and device of resource data of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811012627.3A CN109343862B (en) 2018-08-31 2018-08-31 Scheduling method and device of resource data of application

Publications (2)

Publication Number Publication Date
CN109343862A CN109343862A (en) 2019-02-15
CN109343862B true CN109343862B (en) 2022-05-06

Family

ID=65292198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811012627.3A Active CN109343862B (en) 2018-08-31 2018-08-31 Scheduling method and device of resource data of application

Country Status (1)

Country Link
CN (1) CN109343862B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780940A (en) * 2019-09-24 2020-02-11 维沃移动通信有限公司 Application program loading method, electronic device and storage medium
CN111258676B (en) * 2020-01-16 2023-07-25 中国平安财产保险股份有限公司 Module preloading method, device, equipment and readable storage medium
CN116301568A (en) * 2021-12-21 2023-06-23 华为技术有限公司 Data access method, device and equipment
CN114844880B (en) * 2022-04-07 2023-10-31 广州文远知行科技有限公司 File uploading method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024044A (en) * 2012-12-14 2013-04-03 北京奇虎科技有限公司 Method and device for downloading web pages
CN105450579A (en) * 2014-05-30 2016-03-30 广州市动景计算机科技有限公司 Network resource preloading method, client, and middleware server
CN107547629A (en) * 2017-07-20 2018-01-05 北京京东尚科信息技术有限公司 Method, apparatus, electronic equipment and the computer-readable recording medium that client static resource is downloaded

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9325806B2 (en) * 2012-02-24 2016-04-26 Qualcomm Incorporated Cooperative loading of webpages based on shared meta information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024044A (en) * 2012-12-14 2013-04-03 北京奇虎科技有限公司 Method and device for downloading web pages
CN105450579A (en) * 2014-05-30 2016-03-30 广州市动景计算机科技有限公司 Network resource preloading method, client, and middleware server
CN107547629A (en) * 2017-07-20 2018-01-05 北京京东尚科信息技术有限公司 Method, apparatus, electronic equipment and the computer-readable recording medium that client static resource is downloaded

Also Published As

Publication number Publication date
CN109343862A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109343862B (en) Scheduling method and device of resource data of application
CN109582466B (en) Timed task execution method, distributed server cluster and electronic equipment
JP2020509445A (en) Method and device for forming a blockchain consensus
CN108829469B (en) Application page display method and device
US20200218579A1 (en) Selecting a cloud service provider
CN106897095B (en) Method and device for hot repairing application program, readable storage medium and computing equipment
CN106708608B (en) Distributed lock service method, acquisition method and corresponding device
CN105786539B (en) File downloading method and device
US20150381511A1 (en) Client selection in a distributed strict queue
US9575820B2 (en) Client control in a distributed strict queue
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN112988281B (en) Application starting method and device
US20170046199A1 (en) Migrating objects from a source service to a target service
CN107463332B (en) File segmentation method and device
US10761935B2 (en) Accelerating system dump capturing
US20110270910A1 (en) Dynamic Work Queue For Applications
CN111694639A (en) Method and device for updating address of process container and electronic equipment
US9436406B2 (en) Migration decision window selection based on hotspot characteristics
CN111309432B (en) Fault drilling method, device and system
CN112749015A (en) Load balancing method and device
CN110968406B (en) Method, device, storage medium and processor for processing task
CN115373764B (en) Automatic container loading method and device
CN116594734A (en) Container migration method and device, storage medium and electronic equipment
EP3731491A1 (en) Method and device for downloading resources
CN113485908B (en) Coverage rate obtaining method and device and electronic equipment

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