CN113342381A - Data configuration method and device for application update, computer equipment and storage medium - Google Patents

Data configuration method and device for application update, computer equipment and storage medium Download PDF

Info

Publication number
CN113342381A
CN113342381A CN202110729332.3A CN202110729332A CN113342381A CN 113342381 A CN113342381 A CN 113342381A CN 202110729332 A CN202110729332 A CN 202110729332A CN 113342381 A CN113342381 A CN 113342381A
Authority
CN
China
Prior art keywords
application
client
task
data
updating
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
CN202110729332.3A
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202110729332.3A priority Critical patent/CN113342381A/en
Publication of CN113342381A publication Critical patent/CN113342381A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration

Abstract

The application relates to the field of computers, and discloses a data configuration method, a device, computer equipment and a storage medium for application update, wherein the method comprises the following steps: acquiring general data updated by an application; acquiring client information of a client of an application to be updated, establishing association between the client information and the general data, and generating an application updating task corresponding to each client; establishing a task queue of the application updating tasks according to the execution sequence of each application updating task; and sequentially acquiring the application updating tasks of the task queue, and issuing the application updating general data to the client corresponding to the application updating tasks so that the client stores the general data to the local client persistently. The method and the device can avoid resource extrusion caused by the fact that a large number of clients simultaneously pull the general data updated by the application, improve the utilization rate of resources and improve the updating efficiency of the application.

Description

Data configuration method and device for application update, computer equipment and storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a data configuration method and apparatus for application update, a computer device, and a storage medium.
Background
The current internet is developed at a high speed, the version of the application needs to be updated continuously, when the version of the application is updated, the data needs to be pulled again in a full amount after the new version of the application is updated, the data volume needing to be issued is too large, the problems that the time length for pulling the data by a client is too long, the concurrency pressure of a background server is too large and the like occur, and the updating efficiency of the application is low.
Disclosure of Invention
The present application mainly aims to provide a data configuration method, an apparatus, a computer device and a storage medium for application update, and aims to solve the problem of low update efficiency of current applications.
In order to achieve the above object, the present application provides a data configuration method for application update, including:
acquiring general data updated by an application;
acquiring client information of a client of an application to be updated, establishing association between the client information and the general data, and generating an application updating task corresponding to each client;
establishing a task queue of the application updating tasks according to the execution sequence of each application updating task;
and sequentially acquiring the application updating tasks of the task queue, and issuing the application updating general data to the client corresponding to the application updating tasks so that the client stores the general data to the local client persistently.
Further, before sequentially acquiring the application update tasks of the task queue and issuing the application update general data to the client corresponding to the application update task, the method further includes:
acquiring the current resource utilization rate of a server;
and when the resource utilization rate is lower than a preset value, executing the steps of sequentially acquiring the application updating tasks of the task queue and issuing the application updating general data to the client of the application updating task.
Further, before the establishing of the task queue of the application update tasks according to the execution sequence of each application update task, the method further includes:
acquiring user characteristic information from the client information;
calculating the user grade corresponding to each client according to the user characteristic information;
and determining the execution sequence of the corresponding application updating task according to the user level.
Further, after the sequentially obtaining the application update tasks of the task queue and issuing the application update general data to the client corresponding to the application update task, the method further includes:
receiving feedback information of the client on the persistence of the general data;
if the feedback information is positive feedback information, acquiring a next application updating task from the task queue;
and issuing the application update general data to the client of the next application update task.
Further, the general data includes first structural data and second structural data; the issuing of the application update general data to the client corresponding to the application update task includes:
issuing the first structure data to a client of the application updating task to control the client to store the first structure data to a database;
and issuing the second structure data to the client side applying the updating task so as to control the client side to store the second structure data to a file library.
Further, after the task queue of the application update tasks is established according to the execution sequence of each application update task, the method further includes:
acquiring a plurality of servers capable of distributing tasks and configuration information of each server;
calculating the distribution proportion of each server according to the configuration information;
and distributing the application updating tasks in the task queue to the corresponding servers according to the distribution proportion.
Further, after the application update tasks in the task queue are distributed to the corresponding servers according to the distribution ratio, the method further includes:
generating a subtask queue of each server according to the application updating task distributed to each server;
counting idle execution time periods of all servers;
and when the idle execution time period of the server is reached, controlling the server to sequentially acquire the application updating tasks of the subtask queue, and issuing the application updating general data to the client of the application updating task.
The present application further provides a data configuration device for application update, including:
the data acquisition module is used for acquiring general data updated by the application;
the task generation module is used for acquiring client information of a client of the application to be updated, establishing association between the client information and the general data, and generating an application updating task corresponding to each client;
the task queue module is used for establishing a task queue of the application updating tasks according to the execution sequence of each application updating task;
and the data issuing module is used for sequentially acquiring the application updating tasks of the task queue and issuing the general data of the application updating to the client corresponding to the application updating tasks so that the client stores the general data to the local client persistently.
The application also provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the data configuration method for application update described in any one of the above when executing the computer program.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of any of the above-mentioned data configuration methods for application update.
The application example provides a data configuration method for application update with pre-embedded data, which comprises the steps of firstly obtaining general data of the application update, wherein the general data comprises structured data and unstructured data, then obtaining client information of a client to be updated, wherein the client information comprises an MAC (media access control) address and an IP (Internet protocol) address of the client, establishing association between the client information and the general data as different clients possibly use different general data, and determining which client needs which general data, so as to generate an application update task for each client, establishing a task queue of the application update task according to the execution sequence of each application update task in order to enable the application update data to be successfully delivered to each client, and then sequentially obtaining the application update tasks of the task queue, the application updating task comprises client information of an application to be updated and required general data, connection with the client is established according to the client information, then the application updating general data is issued to the client of the application updating task, pre-embedding of the application updating data is completed, resource extrusion caused by the fact that a large number of clients simultaneously pull the application updating general data is avoided, the utilization rate of resources is improved, and the application updating efficiency is improved.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a data configuration method for application update according to the present application;
FIG. 2 is a flowchart illustrating a step S30 according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an embodiment of a data configuration apparatus for applying update according to the present application;
FIG. 4 is a block diagram illustrating a computer device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a data configuration method for application update, which includes steps S10-S40, and the detailed description of each step of the data configuration method for application update is as follows.
And S10, acquiring the general data of the application update.
The embodiment is applied to application updating, upgrading and configuring scenes, configuration, issuing and monitoring of application updating data are achieved through a task center, when one application needs to be updated and upgraded, for example, when the application is updated to a new version, application updating related information is configured through the task center, application updating general data is firstly obtained, the general data is divided into two categories, the general data comprises structured data and unstructured data, and the difference between the structured data and the unstructured data is shown in a client storage mode, wherein the structured data is data stored in a database, and the unstructured data is data stored in a file. Further, the general data is stored in a background database, and is not directly stored in the task center, and the task center obtains the general data updated by the application from the background database, so that the decoupling of the front end and the background is realized.
S20, obtaining client information of the client of the application to be updated, establishing association between the client information and the general data, and generating an application updating task corresponding to each client.
In the embodiment, in order to avoid that a large number of clients simultaneously pull general data of application update to the task center when the application update occurs, which causes an exception, data required by updating the application to a new version is pre-embedded to the client in advance in a data-first mode, so that the client information of the client to be updated is acquired, namely, the client information currently installed with the application to be updated is obtained, the client information comprises an MAC address, an IP address and the like, then the client information is associated with the general data to generate an application updating task, since the different clients may use different universal data, associating the client information with the universal data can make sure which clients need which universal data, and generating an application updating task for each client, namely generating the application updating task corresponding to each client.
And S30, establishing a task queue of the application updating tasks according to the execution sequence of the application updating tasks.
In this embodiment, in order to enable the general data of the application update to be quickly delivered to each client, the task queue of the application update task is established according to the execution sequence of each application update task, optionally, the execution sequence may be determined by user characteristic information of the client, for example, the execution sequence of the update task corresponding to the client is determined by user level information of the client, and when the user level of the client is higher, the execution sequence is higher, so that the task queue of the application update task is established, and the delivery of the general data of the update application is sequentially completed.
S40, sequentially acquiring the application updating tasks of the task queue, and issuing the general data of the application updating to the client corresponding to the application updating tasks, so that the client stores the general data to the local client persistently.
In this embodiment, after a task queue of an application update task is established, application update tasks of the task queue are sequentially acquired, where the application update task includes client information of an application to be updated and required general data, a connection with the client is established according to the client information, and then the application update general data is sent to the client of the application update task, so that the client persistently stores the general data to the local client, thereby completing pre-embedding of the application update data, avoiding resource extrusion caused by a large number of clients pulling the application update general data to a task center at the same time, improving resource utilization rate, and improving application update efficiency.
The embodiment provides a data configuration method for application update with pre-embedded data, which includes acquiring general data for application update, where the general data includes structured data and unstructured data, then acquiring client information of a client to be updated, where the client information includes an MAC address and an IP address of the client, and because different clients may use different general data, associating the client information with the general data to determine which client needs which general data, so as to generate an application update task for each client, in order to enable the application update data to be successfully delivered to each client, establishing a task queue for the application update task according to an execution sequence of each application update task, and then sequentially acquiring the application update tasks of the task queue, the application updating task comprises client information of an application to be updated and required general data, connection with the client is established according to the client information, then the application updating general data is issued to the client of the application updating task, pre-embedding of the application updating data is completed, resource extrusion caused by the fact that a large number of clients simultaneously pull the application updating general data is avoided, the utilization rate of resources is improved, and the application updating efficiency is improved.
In an embodiment, before sequentially acquiring the application update tasks of the task queue and issuing the application update general data to the client corresponding to the application update task, the method further includes:
acquiring the current resource utilization rate of a server;
and when the resource utilization rate is lower than a preset value, executing the steps of sequentially acquiring the application updating tasks of the task queue and issuing the application updating general data to the client of the application updating task.
In this embodiment, in order to maximally configure the use of resources, before sequentially acquiring the application update tasks of the task queue and issuing the application update general data to the client of the application update task, the current resource usage rate of the server is acquired, when the resource usage rate is lower than a preset value, the sequentially acquiring the application update tasks of the task queue is executed, and the application update general data is issued to the client of the application update task, further, the application update tasks of the task queue are executed and sequentially acquired, and the application update general data is issued to the client of the application update task. For example, the resource utilization rate of the server is monitored by configuring the server in a time period of 00:00-08:00 of a day, when the resource utilization rate is lower than a preset value, the application updating tasks of the task queue are sequentially acquired, and the application updating general data is issued to the client of the application updating tasks, so that the reasonable configuration of resources is improved, and the utilization rate of the resources is improved.
In an embodiment, before the establishing the task queue of the application update tasks according to the execution order of the application update tasks, the method further includes:
acquiring user characteristic information from the client information;
calculating the user grade corresponding to each client according to the user characteristic information;
and determining the execution sequence of the corresponding application updating task according to the user level.
In this embodiment, before a task queue of application update tasks is established according to an execution sequence of each application update task, user characteristic information is obtained from the client information, where the user characteristic information includes a time length for a user to register the application, a time length of each day for the user to use the application, a frequency for the user to use the application, and the like, then a user level corresponding to each client is calculated according to the user characteristic information, each item of characteristic information is converted into a corresponding score, so as to calculate the user level, and then an execution sequence of the corresponding application update task is determined according to the user level, when the user level is higher, the execution sequence of the application update task corresponding to the client of the user is earlier, so as to reasonably configure the execution sequence of the update tasks, ensure that the use time is long, and the user with high use frequency can preferentially complete data pre-embedding, and updating is completed preferentially, so that the updating efficiency of the application is improved.
In one embodiment, after the sequentially obtaining the application update tasks of the task queue and issuing the application update general data to the client corresponding to the application update task, the method further includes:
receiving feedback information of the client on the persistence of the general data;
if the feedback information is positive feedback information, acquiring a next application updating task from the task queue;
and issuing the application update general data to the client of the next application update task.
In this embodiment, the start of the application update task is initiated by the task center, the task center issues general data required by the application update to the client, the client completes the reception of the general data and notifies the task center after the general data is successfully persisted, the task center receives feedback information of the client on the persistence of the general data, if the feedback information is positive feedback information, the client is characterized to receive the general data and store the general data to the local of the client in a successful persistence manner, at this time, after the task center receives the positive feedback information, the application update task is considered to be finished, the application update task is recorded in the task queue to be completed, then the next application update task is obtained from the task queue, defined as a new application update task, and the application update general data is issued to the client of the next application update task, and each application updating task in the task queue is executed in sequence, so that the application updating general data can be completely and correctly issued to the client, and the accuracy of application updating is improved.
In one embodiment, the generic data comprises first structural data and second structural data; the issuing of the application update general data to the client corresponding to the application update task includes:
issuing the first structure data to a client of the application updating task to control the client to store the first structure data to a database;
and issuing the second structure data to the client side applying the updating task so as to control the client side to store the second structure data to a file library.
In this embodiment, the general data is divided into two major categories, including a first structural data and a second structural data, where the first structural data is structural data that needs to be landed in a database for storage, such as customer data in a customer center; the second structure data is file type data, such as H5 static resource file data, RN, Flutter resource file data, the application update general data is issued to the client of the application update task, the first structure data is issued to the client of the application update task, so that the client is controlled to store the first structure data to a database, and pre-embedding of the first structure data is completed; and issuing the second structure data to the client side of the application updating task to control the client side to store the second structure data to a file library, completing pre-embedding of the second structure data, distinguishing different data persistently stored to the local by the client side through the first structure data and the second structure data, and further better completing pre-embedding of the application updating data.
In an embodiment, as shown in fig. 2, after the establishing the task queue of the application update tasks according to the execution order of the application update tasks, the method further includes:
s31: acquiring a plurality of servers capable of distributing tasks and configuration information of each server;
s32: calculating the distribution proportion of each server according to the configuration information;
s33: and distributing the application updating tasks in the task queue to the corresponding servers according to the distribution proportion.
In this embodiment, after a task queue of application update tasks is established according to an execution sequence of each application update task, the application update tasks are distributively allocated to different servers in a task center, and the application update tasks are distributively executed by the different servers, specifically, configuration information of a plurality of servers and each server, to which the tasks are distributively allocated, is obtained, where the configuration information of the servers includes a model of the server, CPU performance, storage performance, and the like, and then, an allocation ratio of each server is calculated according to the configuration information, where the higher the configuration information of the server is, the higher the allocation ratio of the server is, for example, the allocation ratio of the server A, B, C is 5: 3: then, the application update tasks in the task queue are distributed to the corresponding servers according to the distribution ratio, for example, the application update tasks in the task queue are distributed according to a ratio of 5: 3: the allocation proportion of 2 is respectively allocated to the server A, B, C for processing, different servers allocate different numbers of application update tasks, and the problem that the processing efficiency of the application update tasks is too low due to the fact that the configured servers need to process a large number of application update tasks is avoided, so that the processing efficiency of the application update tasks is improved, and the application update efficiency is improved.
In an embodiment, after the allocating the application update tasks in the task queue to the corresponding servers according to the allocation ratio, the method further includes:
generating a subtask queue of each server according to the application updating task distributed to each server;
counting idle execution time periods of all servers;
and when the idle execution time period of the server is reached, controlling the server to sequentially acquire the application updating tasks of the subtask queue, and issuing the application updating general data to the client of the application updating task.
In this embodiment, after the application update tasks in the task queue are allocated to the corresponding servers according to the allocation proportion, a subtask queue of each server is generated according to the application update tasks allocated to each server, that is, a task queue is generated for each server executing the application update task, and defined as a subtask queue, and then idle execution time periods of each server are counted, different servers do not completely undertake data issuing work of the application update before due to different functions, for example, server a is a server for an authentication function, server B is a server for activity distribution, server C is a data recording server, resource occupation degrees of different servers in different time periods are different, and historical resource occupation information of each server in each time period is counted, and obtaining the idle execution time period of each server, controlling the servers to sequentially obtain the application updating tasks of the subtask queues when the idle execution time period of the servers is reached, and issuing the application updating general data to the client of the application updating tasks, so that the application updating tasks are distributed in a distributed manner, and the time for executing the application updating tasks by different servers is also configured, thereby improving the utilization rate of resources, better controlling the flow, avoiding competition with resources in a peak period, improving the execution efficiency of the application updating tasks, and improving the efficiency of the application updating.
Referring to fig. 3, the present application further provides a data configuration apparatus for application update, including:
a data obtaining module 10, configured to obtain general data of application update;
the task generating module 20 is configured to obtain client information of a client of an application to be updated, associate the client information with the general data, and generate an application update task corresponding to each client;
a task queue module 30, configured to establish a task queue of each application update task according to an execution sequence of the application update task;
and the data issuing module 40 is configured to sequentially acquire the application update tasks of the task queue, and issue the application update general data to the client corresponding to the application update task, so that the client persistently stores the general data to the local client.
As described above, it can be understood that the components of the data configuration apparatus for application update proposed in the present application may implement the functions of any one of the data configuration methods for application update as described above.
In one embodiment, the data issuing module 40 further performs:
acquiring the current resource utilization rate of a server;
and when the resource utilization rate is lower than a preset value, executing the steps of sequentially acquiring the application updating tasks of the task queue and issuing the application updating general data to the client of the application updating task.
In one embodiment, the task queue module 30 further performs:
acquiring user characteristic information from the client information;
calculating the user grade corresponding to each client according to the user characteristic information;
and determining the execution sequence of the corresponding application updating task according to the user level.
In one embodiment, the data issuing module 40 further performs:
receiving feedback information of the client on the persistence of the general data;
if the feedback information is positive feedback information, acquiring a next application updating task from the task queue;
and issuing the application update general data to the client of the next application update task.
In one embodiment, the data issuing module 40 further performs:
issuing the first structure data to a client of the application updating task to control the client to store the first structure data to a database;
and issuing the second structure data to the client side applying the updating task so as to control the client side to store the second structure data to a file library.
In one embodiment, the task queue module 30 further performs:
acquiring a plurality of servers capable of distributing tasks and configuration information of each server;
calculating the distribution proportion of each server according to the configuration information;
and distributing the application updating tasks in the task queue to the corresponding servers according to the distribution proportion.
In one embodiment, the task queue module 30 further performs:
generating a subtask queue of each server according to the application updating task distributed to each server;
counting idle execution time periods of all servers;
and when the idle execution time period of the server is reached, controlling the server to sequentially acquire the application updating tasks of the subtask queue, and issuing the application updating general data to the client of the application updating task.
Referring to fig. 4, a computer device, which may be a mobile terminal and whose internal structure may be as shown in fig. 4, is also provided in the embodiment of the present application. The computer equipment comprises a processor, a memory, a network interface, a display device and an input device which are connected through a system bus. Wherein, the network interface of the computer equipment is used for communicating with an external terminal through network connection. The input means of the computer device is for receiving input from a user. The computer designed processor is used to provide computational and control capabilities. The memory of the computer device includes a storage medium. The storage medium stores an operating system, a computer program, and a database. The database of the computer device is used for storing data. The computer program is executed by a processor to implement a data configuration method for applying updates.
The processor executes the data configuration method for the application update, and the method comprises the following steps: acquiring general data updated by an application; acquiring client information of a client of an application to be updated, establishing association between the client information and the general data, and generating an application updating task corresponding to each client; establishing a task queue of the application updating tasks according to the execution sequence of each application updating task; and sequentially acquiring the application updating tasks of the task queue, and issuing the application updating general data to the client corresponding to the application updating tasks so that the client stores the general data to the local client persistently.
The computer equipment provides a data configuration method for application updating with pre-embedded data, firstly, general data for application updating is obtained, the general data comprises structured data and unstructured data, then client information of application to be updated is obtained, the client information comprises an MAC address and an IP address of a client, because different clients possibly use different general data, the client information and the general data are associated to determine which client needs which general data, so that an application updating task is generated for each client, in order to enable the application updating data to be smoothly transmitted to each client, a task queue of the application updating task is established according to the execution sequence of each application updating task, and then the application updating tasks of the task queue are sequentially obtained, the application updating task comprises client information of an application to be updated and required general data, connection with the client is established according to the client information, then the application updating general data is issued to the client of the application updating task, pre-embedding of the application updating data is completed, resource extrusion caused by the fact that a large number of clients simultaneously pull the application updating general data is avoided, the utilization rate of resources is improved, and the application updating efficiency is improved.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor, implements a data configuration method for application update, including the steps of: acquiring general data updated by an application; acquiring client information of a client of an application to be updated, establishing association between the client information and the general data, and generating an application updating task corresponding to each client; establishing a task queue of the application updating tasks according to the execution sequence of each application updating task; and sequentially acquiring the application updating tasks of the task queue, and issuing the application updating general data to the client corresponding to the application updating tasks so that the client stores the general data to the local client persistently.
The computer readable storage medium provides a data configuration method for application update with pre-embedded data, firstly, general data of the application update is obtained, the general data comprises structured data and unstructured data, then client information of the application to be updated is obtained, the client information comprises an MAC address and an IP address of a client, because different clients possibly use different general data, the client information and the general data are associated to determine which client needs which general data, so that an application update task is generated for each client, in order to enable the application update data to be smoothly transmitted to each client, a task queue of the application update task is established according to the execution sequence of each application update task, and then the application update tasks of the task queue are sequentially obtained, the application updating task comprises client information of an application to be updated and required general data, connection with the client is established according to the client information, then the application updating general data is issued to the client of the application updating task, pre-embedding of the application updating data is completed, resource extrusion caused by the fact that a large number of clients simultaneously pull the application updating general data is avoided, the utilization rate of resources is improved, and the application updating efficiency is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.
Any reference to memory, storage, database, or other medium provided herein and used in the embodiments may include non-volatile and/or volatile memory.
Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the scope of the present application.
All the equivalent structures or equivalent processes performed by using the contents of the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields, are included in the scope of protection of the present application.

Claims (10)

1. A data configuration method for application update is characterized by comprising the following steps:
acquiring general data updated by an application;
acquiring client information of a client of an application to be updated, establishing association between the client information and the general data, and generating an application updating task corresponding to each client;
establishing a task queue of the application updating tasks according to the execution sequence of each application updating task;
and sequentially acquiring the application updating tasks of the task queue, and issuing the application updating general data to the client corresponding to the application updating tasks so that the client stores the general data to the local client persistently.
2. The method according to claim 1, wherein before the sequentially obtaining the application update tasks in the task queue and issuing the application update general data to the client corresponding to the application update task, the method further comprises:
acquiring the current resource utilization rate of a server;
and when the resource utilization rate is lower than a preset value, executing the steps of sequentially acquiring the application updating tasks of the task queue and issuing the application updating general data to the client of the application updating task.
3. The method for configuring data of application update according to claim 1, wherein before establishing the task queue of the application update tasks according to the execution order of the application update tasks, the method further comprises:
acquiring user characteristic information from the client information;
calculating the user grade corresponding to each client according to the user characteristic information;
and determining the execution sequence of the corresponding application updating task according to the user level.
4. The method according to claim 1, wherein after the sequentially obtaining the application update tasks of the task queue and issuing the application update general data to the client corresponding to the application update task, the method further comprises:
receiving feedback information of the client on the persistence of the general data;
if the feedback information is positive feedback information, acquiring a next application updating task from the task queue;
and issuing the application update general data to the client of the next application update task.
5. The data configuration method for application update according to claim 1, wherein the general data includes a first structural data and a second structural data; the issuing of the application update general data to the client corresponding to the application update task includes:
issuing the first structure data to a client of the application updating task to control the client to store the first structure data to a database;
and issuing the second structure data to the client side applying the updating task so as to control the client side to store the second structure data to a file library.
6. The method for configuring data of application update according to claim 1, wherein after the task queue of the application update tasks is established according to the execution order of the application update tasks, the method further comprises:
acquiring a plurality of servers capable of distributing tasks and configuration information of each server;
calculating the distribution proportion of each server according to the configuration information;
and distributing the application updating tasks in the task queue to the corresponding servers according to the distribution proportion.
7. The data configuration method for application update according to claim 6, wherein after the distributing the application update tasks in the task queue to the corresponding servers according to the distribution ratio, the method further comprises:
generating a subtask queue of each server according to the application updating task distributed to each server;
counting idle execution time periods of all servers;
and when the idle execution time period of the server is reached, controlling the server to sequentially acquire the application updating tasks of the subtask queue, and issuing the application updating general data to the client of the application updating task.
8. A data configuration apparatus for applying updates, comprising:
the data acquisition module is used for acquiring general data updated by the application;
the task generation module is used for acquiring client information of a client of the application to be updated, establishing association between the client information and the general data, and generating an application updating task corresponding to each client;
the task queue module is used for establishing a task queue of the application updating tasks according to the execution sequence of each application updating task;
and the data issuing module is used for sequentially acquiring the application updating tasks of the task queue and issuing the general data of the application updating to the client corresponding to the application updating tasks so that the client stores the general data to the local client persistently.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the data configuration method for application update of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data configuration method of applying an update of any one of claims 1 to 7.
CN202110729332.3A 2021-06-29 2021-06-29 Data configuration method and device for application update, computer equipment and storage medium Pending CN113342381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110729332.3A CN113342381A (en) 2021-06-29 2021-06-29 Data configuration method and device for application update, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110729332.3A CN113342381A (en) 2021-06-29 2021-06-29 Data configuration method and device for application update, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113342381A true CN113342381A (en) 2021-09-03

Family

ID=77481469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110729332.3A Pending CN113342381A (en) 2021-06-29 2021-06-29 Data configuration method and device for application update, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113342381A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917385A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Dispatch server and distributed system for multimedia trans-coding
CN104199705A (en) * 2014-09-10 2014-12-10 北京金山安全软件有限公司 Data pushing method and device
CN106257893A (en) * 2016-08-11 2016-12-28 浪潮(北京)电子信息产业有限公司 Storage server task response method, client, server and system
CN107147806A (en) * 2017-06-26 2017-09-08 北京金山安全软件有限公司 application resource providing method, device and system
CN110597858A (en) * 2019-08-30 2019-12-20 深圳壹账通智能科技有限公司 Task data processing method and device, computer equipment and storage medium
CN112256417A (en) * 2020-10-23 2021-01-22 上海豹云网络信息服务有限公司 Data request processing method and device and computer readable storage medium
CN112685192A (en) * 2019-10-18 2021-04-20 北京国双科技有限公司 Data acquisition method and device, client and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917385A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Dispatch server and distributed system for multimedia trans-coding
CN104199705A (en) * 2014-09-10 2014-12-10 北京金山安全软件有限公司 Data pushing method and device
CN106257893A (en) * 2016-08-11 2016-12-28 浪潮(北京)电子信息产业有限公司 Storage server task response method, client, server and system
CN107147806A (en) * 2017-06-26 2017-09-08 北京金山安全软件有限公司 application resource providing method, device and system
CN110597858A (en) * 2019-08-30 2019-12-20 深圳壹账通智能科技有限公司 Task data processing method and device, computer equipment and storage medium
CN112685192A (en) * 2019-10-18 2021-04-20 北京国双科技有限公司 Data acquisition method and device, client and computer readable storage medium
CN112256417A (en) * 2020-10-23 2021-01-22 上海豹云网络信息服务有限公司 Data request processing method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CA3000422C (en) Workflow service using state transfer
CN107613025B (en) Message queue sequence reply-based implementation method and device
CN105049268A (en) Distributed computing resource allocation system and task processing method
US8910128B2 (en) Methods and apparatus for application performance and capacity analysis
US20200192711A1 (en) Distributed system resource allocation method, apparatus, and system
CN110458468A (en) A kind of task processing method, device, electronic equipment and storage medium
CN110347974B (en) Data processing method, device, computer equipment and storage medium
CN110659131B (en) Task processing method, electronic device, computer equipment and storage medium
WO2021036319A1 (en) Data cleaning method and system
CN114124490A (en) Method and device for releasing new media content, storage medium and electronic equipment
CN108388409B (en) Print request processing method, apparatus, computer device and storage medium
CN111355751A (en) Task scheduling method and device
CN111555987B (en) Current limiting configuration method, device, equipment and computer storage medium
CN113391925A (en) Cloud resource management method, system, medium, and computer device
CN113342381A (en) Data configuration method and device for application update, computer equipment and storage medium
CN110019372B (en) Data monitoring method, device, server and storage medium
CN115329005A (en) Multi-cluster cooperation method, system, device and computer readable storage medium
CN114760304A (en) Computing power information processing method and system and computing power gateway
CN114780228A (en) Hybrid cloud resource creation method and system
CN111625866A (en) Authority management method, system, equipment and storage medium
CN114489497A (en) Data mapping method, server and computer readable storage medium
CN112860292A (en) Configuration management method and device based on application
CN113535358A (en) Task processing method and device
CN111523931A (en) Resource allocation method, device, computer equipment and storage medium
CN111031561B (en) AP template processing method, device, server and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210903