CN114900478A - Resource processing system and method - Google Patents
Resource processing system and method Download PDFInfo
- Publication number
- CN114900478A CN114900478A CN202210642358.9A CN202210642358A CN114900478A CN 114900478 A CN114900478 A CN 114900478A CN 202210642358 A CN202210642358 A CN 202210642358A CN 114900478 A CN114900478 A CN 114900478A
- Authority
- CN
- China
- Prior art keywords
- resource
- file
- update
- index information
- 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.)
- Granted
Links
- 238000012545 processing Methods 0.000 title claims abstract description 83
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000003672 processing method Methods 0.000 claims description 29
- 238000004422 calculation algorithm Methods 0.000 claims description 21
- 230000004044 response Effects 0.000 claims description 17
- 230000008569 process Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 102100039856 Histone H1.1 Human genes 0.000 description 1
- 102100039855 Histone H1.2 Human genes 0.000 description 1
- 101001035402 Homo sapiens Histone H1.1 Proteins 0.000 description 1
- 101001035375 Homo sapiens Histone H1.2 Proteins 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/76—Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/76—Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
- H04L47/762—Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions triggered by the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a resource processing system and a method, wherein the resource processing system comprises: the system comprises a client, a server and a server, wherein the client is configured to receive a resource updating request issued by the server and determine a historical resource packet corresponding to the resource updating request; processing the historical resource packet according to the resource updating request, obtaining file updating information and sending the file updating information to the server; the server is configured to read the update resource packet associated with the resource update request according to the file update information, and obtain an update service file and index information; creating a target resource package based on the updated service file and the index information; the client is further configured to respond to the resource updating request to download the target resource package, and update the historical resource package according to the index information in the target resource package.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource processing system and method.
Background
With the development of internet technology, most of on-line products need to rely on the interaction between a client and a server so as to provide corresponding business services for users; the interaction between the client and the server can fully utilize network resources to reduce the calculation pressure of the client, and meanwhile, better business service can be provided for users. In the prior art, when a client and a server interact with each other, most of the resources are updated, in order to ensure the comprehensiveness of resource update and support that the client can continue to provide high-quality service to a user according to updated resources, the server usually packages and sends newly added resources, modified resources and historical resources to the client, which causes the client to need to additionally receive the historical resources except for changes, wastes a large amount of network resources, and costs additional computing resources to complete the update of the client. There is therefore a need for an effective solution to the above problems.
Disclosure of Invention
In view of this, embodiments of the present application provide a resource processing system to solve technical defects in the prior art. The embodiment of the application simultaneously provides two resource processing methods, a computing device and a computer readable storage medium.
According to a first aspect of embodiments of the present application, there is provided a resource processing system, including:
the system comprises a client, a server and a server, wherein the client is configured to receive a resource updating request issued by the server and determine a historical resource packet corresponding to the resource updating request; processing the historical resource packet according to the resource updating request, obtaining file updating information and sending the file updating information to the server;
the server is configured to read the update resource packet associated with the resource update request according to the file update information, and obtain an update service file and index information; creating a target resource package based on the updated service file and the index information;
the client is further configured to respond to the resource updating request to download the target resource package, and update the historical resource package according to the index information in the target resource package.
Optionally, the server is further configured to receive a resource update instruction, and determine a resource update policy according to the resource update instruction; creating the updated resource package corresponding to the updated version according to the resource updating strategy; and creating the resource updating request based on the updating resource packet, and sending the resource updating request to the client.
Optionally, the client is further configured to obtain resource update information by parsing the resource update request; reading the historical resource packet corresponding to the historical version according to the resource updating information; processing historical service files contained in the historical resource package according to a preset resource package processing algorithm to obtain historical index information and determine updating index information corresponding to the updating resource package; comparing the historical index information with the updated index information, and determining the file updated information according to the comparison result of the index information.
Optionally, the client is further configured to determine at least one piece of sub-historical index information in the historical index information, and determine at least one piece of sub-updated index information in the updated index information; determining an index information association relation based on the at least one piece of sub-history index information and the at least one piece of sub-update index information; and determining the index information comparison result according to the index information association relation.
Optionally, the server is further configured to read a difference service file and a newly added service file in the update resource package according to the file update information, and determine index information corresponding to the difference service file and the newly added service file respectively; and determining the updated service file according to the difference service file and the newly added service file.
Optionally, the client is further configured to parse the target resource packet to obtain the index information corresponding to the newly added service file and the difference service file respectively; determining file writing positions corresponding to the newly added service file and the difference service file respectively according to the index information; and updating the historical resource package according to the file writing position, the newly added service file and the difference service file.
Optionally, the client is further configured to process a historical service file included in the historical resource packet according to a suffix sorting algorithm, so as to obtain the historical index information; or processing the historical service files contained in the historical resource packet according to a hash algorithm to obtain the historical index information.
Optionally, the client is further configured to receive a policy adjustment request sent by the server, adjust a local update policy according to an update adjustment policy carried in the policy adjustment request, and feed back response information to the server according to an adjustment result.
Optionally, the server is further configured to create a target resource package based on the updated service file and the index information and upload the target resource package to a content distribution network;
the client further configured to download the target resource package in the content distribution network in response to the resource update request.
According to a second aspect of the embodiments of the present application, there is provided a resource processing method applied to a client, including:
receiving a resource updating request issued by a server, and determining a historical resource packet corresponding to the resource updating request;
processing the historical resource packet according to the resource updating request, obtaining file updating information and sending the file updating information to the server;
responding to the resource updating request to download a target resource package, and updating the historical resource package according to index information in the target resource package;
and the target resource packet is issued to the client by the server according to the file updating information.
According to a third aspect of the embodiments of the present application, there is provided a resource processing method applied to a server, including:
receiving file updating information fed back by a client aiming at a resource updating request;
reading an update resource packet associated with the resource update request according to the file update information to obtain an update service file and index information;
and creating a target resource packet based on the updated service file and the index information.
According to a fourth aspect of embodiments of the present application, there is provided a resource processing system, including:
the server is configured to determine an update resource packet and a history resource packet according to the resource update request; determining file updating information by comparing the updating resource packet with the historical resource packet; reading an update service file and index information in the update resource packet according to the file update information; creating at least one resource packet according to the updated service file and the index information;
and the client is configured to respond to the resource updating request to download a target resource package and update a local resource package according to the index information in the target resource package, wherein the target resource package belongs to the at least one resource package.
Optionally, the server is further configured to create at least one resource package according to the updated service file and the index information, and upload the resource package to a content distribution network;
the client is further configured to download a target resource package in the content distribution network in response to the resource update request.
According to a fifth aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is for storing computer-executable instructions that when executed by the processor implement the steps of the resource handling method.
According to a sixth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the resource processing method.
According to a seventh aspect of embodiments of the present application, there is provided a chip storing a computer program which, when executed by the chip, implements the steps of the resource processing method.
According to the resource processing system, after the client receives the resource updating request issued by the server, the historical resource packet can be determined according to the request, and the file updating information is determined and sent to the server by processing the historical resource packet; at the moment, the server side can read the update service file and the index information according to the file update information, and creates a target resource package which only needs to be updated by the client side by combining the update service file and the index information; and finally, the client updates the local historical resource package by downloading the target resource package from the server, so that the service file to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, the consumption of network resources is greatly reduced, and meanwhile, the computing resource for additionally processing the unchanged file by the client is saved, and the file updating efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a resource processing system according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a resource processing method applied in a game scenario according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a resource processing method according to an embodiment of the present application;
FIG. 4 is a flow chart of another resource processing method provided by an embodiment of the present application;
FIG. 5 is a block diagram of another resource processing system according to an embodiment of the present application;
fig. 6 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
CDN: the (Content Delivery Network) is an intelligent virtual Network established on the basis of the existing Network, and users can obtain required Content nearby by means of functional modules of load balancing, Content Delivery, scheduling and the like of a central platform by means of edge servers deployed in various places, so that Network congestion is reduced, and the access response speed and hit rate of the users are improved. The key technology of the CDN is mainly content storage and distribution technology.
Bundle: is a directory which contains the resources used by the program; these resources include, for example, images, sound, compiled code.
In the present application, a resource processing system is provided. The present application relates to two resource processing methods, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
In practical applications, the update amount of the Unity3D application product is particularly large. For example, if one bundle is 5M, even if only 1M of resources are changed, the server needs to repackage the entire bundle and send the repackaged bundle to the client for updating, so as to cover the old bundle, where more resources of 4M are updated. Therefore, each time the update amount is much larger than the actual update amount, which results in that when the client and the server interact with each other, more network resources are required to be consumed for resource transmission, and the client is required to consume additional computing resources for update processing operation, which results in serious waste of available resources.
According to the resource processing system, after the client receives the resource updating request issued by the server, the historical resource packet can be determined according to the request, and the file updating information is determined and sent to the server by processing the historical resource packet; at the moment, the server side can read the update service file and the index information according to the file update information, and creates a target resource package which only needs to be updated by the client side by combining the update service file and the index information; and finally, the client updates the local historical resource package by downloading the target resource package from the server, so that the service file to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, the consumption of network resources is greatly reduced, and meanwhile, the computing resource for additionally processing the unchanged file by the client is saved, and the file updating efficiency is improved.
Fig. 1 is a schematic structural diagram of a resource processing system 100, which includes a client 110 and a server 120, according to an embodiment of the present application;
the client 110 is configured to receive a resource updating request issued by a server, and determine a historical resource packet corresponding to the resource updating request; processing the historical resource packet according to the resource updating request, acquiring file updating information and sending the file updating information to the server;
the server 120 is configured to read the update resource packet associated with the resource update request according to the file update information, and obtain an update service file and index information; creating a target resource package based on the updated service file and the index information;
the client 110 is further configured to download the target resource package in response to the resource update request, and update the historical resource package according to the index information in the target resource package.
In this embodiment, for convenience of describing the resource processing system, the application in the game scene is taken as an example for description, and the implementation processes in other service scenes may refer to the same or corresponding description contents in this embodiment, which is not described herein in detail.
Specifically, the client specifically refers to a device which is held by the user and can communicate with the server through a network, and the device includes but is not limited to a mobile phone, a computer, a smart wearable device, and the like; correspondingly, the server specifically refers to a server capable of sending the required resources to the client by interacting with the client, and belongs to a service party to which the application installed at the client belongs, and different applications correspond to different servers.
Correspondingly, the resource update request specifically refers to a request issued by the server and needing to update part of resources in the application installed at the client, where the updated resources include, but are not limited to, codes, characters, pictures, videos, audios, and the like, and this embodiment is not limited in any way here. That is, the client needs to update according to the requirement of the server, and then the client can continue to provide the application program and the corresponding service provided by the application program to the user. Correspondingly, the historical resource package specifically refers to a resource package to which the service file currently needing to be updated belongs in the previous version, and the resource package of the current version can be obtained by updating the resource package of the previous version. Correspondingly, the file updating information specifically refers to information that the historical service file in the historical resource package needs to be updated according to the resource updating request, so that the subsequent targeted downloading of the service file is realized, and the updating processing operation is completed.
Correspondingly, the update resource package specifically refers to a resource package capable of replacing the historical resource package, and the update processing operation can be directly completed by downloading the entire update resource package to the client for replacement; however, since the update resource package not only contains the changed service file, but also contains the unchanged service file, the update service file and the index information need to be read from the update resource package according to the file update information. The updating service file specifically refers to a service file which is needed by the client for the current updating, and does not contain additional repeated service files. Correspondingly, the index information specifically refers to an index corresponding to the update service file, and is used for informing the client that each update service file needs to be written into a position. Correspondingly, the target resource package specifically refers to a new resource package created based on the updated service file and the index information, and the service file included in the resource package corresponds to the file update information.
Based on this, after the client receives the resource update request issued by the server, it indicates that the server needs to partially or completely update the application program of the client because of the service requirement at this time, and in the resource update process, in order to save network resources and computing resources, the client may determine the historical resource packet of the previous version according to the resource update request, and process the historical resource packet according to the resource update request, so as to determine the file update information corresponding to the service file to be updated according to the processing result, and feed back the file update information to the server.
The server receives the file updating information returned by the client, and at the moment, the updating resource packet updated this time can be read according to the file updating information so as to obtain the updating service file and the index information from the updating resource packet. Namely, the service file to be updated and the index information corresponding to the service file are updated, and then the target resource package corresponding to the file update information is created by using the updated service file and the index information, so that the client can download the service file and the index information according to the requirement.
The client can respond to the resource updating request to download the target resource package from the server and update the historical resource package according to the index information in the target resource package, namely, the updating service file is written into the corresponding position through the index information, the updating processing operation of the time is completed, and the client is supported to continuously provide the updated service for the user. It should be noted that, when the client downloads the target resource package, the server needs to actively inform the client that the creation of the target resource package is completed, so as to avoid the waste of network resources caused by multiple requests from the client to the server.
In addition, in view of efficiency of network resource transmission, after creating the target resource package, the server may upload the target resource package to the content distribution network, and download the target resource package from the content distribution network by the client, in this embodiment, the server is further configured to create the target resource package based on the update service file and the index information and upload the target resource package to the content distribution network; the client further configured to download the target resource package in the content distribution network in response to the resource update request.
That is, after the target resource package corresponding to the file update information is created according to the update service file and the index information, the target resource package can be sent to the content distribution network to support the client to download according to the requirement. The client can respond to the resource updating request to download the target resource package from the content distribution network, and update the historical resource package according to the index information in the target resource package.
For example, the J game server needs to update the J game, and at this time, the J game server sends a request for updating part of resources of the J game to the client; after receiving a resource updating request issued by the J game server, a client held by a user determines a historical resource package of a previous version, processes the historical resource package according to the resource updating request, determines that a bundle _1 file needs to be updated, adds a bundle _2 file, and obtains file updating information by combining a resource package processing result and feeds the file updating information back to the J game server.
After receiving file update information (a bundle _1 file update and a bundle _2 file increase), the J game server reads the bundle _1 file and the bundle _2 file from an update resource package (including bundle _1 to bundle _ n files, where n is a positive integer) created for the current update, determines index information corresponding to each file, and uploads a set of the bundle _1 file, the bundle _2 file and a target resource package created by the index information corresponding to each file to the CDN server.
The client side responds to the resource updating request to download the target resource package on the CDN server, and the bundle _1 file and the bundle _2 are obtained by analyzing the target resource package; and then, determining a writing position according to the index information corresponding to each file, and writing the bundle _1 file and the bundle _2 file into the old file respectively according to the writing position to complete the updating processing operation, so that the new version of the J game can be obtained, and the client can provide game service for the user through the new version of the J game.
In summary, after the client receives the resource update request issued by the server, the history resource packet may be determined first according to the request, and the file update information is determined to be sent to the server by processing the history resource packet; at the moment, the server side can read the update service file and the index information according to the file update information, and creates a target resource package which only needs to be updated by the client side by combining the update service file and the index information; and finally, the client updates the local historical resource package by downloading the target resource package from the server, so that the service file to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, the consumption of network resources is greatly reduced, and meanwhile, the computing resource for additionally processing the unchanged file by the client is saved, and the file updating efficiency is improved.
Furthermore, before resource updating, the server needs to create an update resource packet according to the update requirement, and the creation request is sent to each client, so that the client update request can be updated; in this embodiment, the server is further configured to receive a resource update instruction, and determine a resource update policy according to the resource update instruction; creating the updated resource package corresponding to the updated version according to the resource updating strategy; and creating the resource updating request based on the updating resource packet, and sending the resource updating request to the client.
Specifically, the resource updating instruction set specifically refers to an instruction submitted by a game maintainer during game updating; correspondingly, the resource updating strategy specifically refers to positioning the service files needing to be updated, the added service files and the service files which are not changed.
Based on this, when the server receives the resource updating instruction submitted by the game maintainer, in order to ensure the comprehensiveness of the updating, the resource updating strategy for positioning the service file to be updated, the added service file and the service file which is not changed can be determined according to the resource updating instruction; and then selecting the service files to be updated, the added service files and the service files which are not changed according to the resource updating strategy to create an updated resource package, and sending the updated resource package to the client in combination with a resource updating package creation resource updating request for subsequent resource updating processing operation.
According to the above embodiment, the J game maintainer submits the resource updating instruction, determines the file to be updated as the bundle _1 file, the added file as the bundle _2 file, and the unchanged files as the bundle _3 to the bundle _ n files, creates the updated resource package by combining the bundle _1 file and the bundle _ n file, creates the resource updating request based on the updated resource package, and sends the resource updating request to each client installed with the J game, so that the client can determine the updated content and the related files, and the subsequent updating processing operation is facilitated.
In summary, by creating the updated resource package based on the resource update policy, the comprehensiveness of the updated resource package can be ensured, and by creating the resource update request, the client can be clearly informed of the update content related to the resource update, thereby improving the resource update efficiency.
Furthermore, the file updating information is the basis for downloading the target resource package by using less network resources by the subsequent client, so that the client can be ensured to download the file to be updated in a targeted manner only by ensuring the accuracy of the file updating information; in this embodiment, the client is further configured to obtain resource update information by analyzing the resource update request; reading the historical resource packet corresponding to the historical version according to the resource updating information; processing historical service files contained in the historical resource package according to a preset resource package processing algorithm to obtain historical index information and determine updating index information corresponding to the updating resource package; comparing the historical index information with the updated index information, and determining the file updated information according to the comparison result of the index information.
Specifically, the resource update information specifically refers to information for specifying a history resource packet, and may determine the history resource packet to which the service file to be updated belongs; which may include an identification corresponding to the resource package that needs to be updated. Correspondingly, the historical version specifically refers to a version corresponding to the resource package that needs to be updated. Correspondingly, the resource package processing algorithm specifically refers to an algorithm capable of processing historical service files in the historical resource package; for example, the historical service files contained in the historical resource packet are processed according to a suffix sorting algorithm to obtain the historical index information; or processing the historical service files contained in the historical resource packet according to a hash algorithm to obtain the historical index information. Namely, the resource packet processing algorithm can convert each historical service file into a unique corresponding character string index; correspondingly, the historical index information is the character string index corresponding to each historical service file. Correspondingly, the update index information specifically refers to an index character string corresponding to the update service file included in the update resource packet.
It should be noted that the determination process of updating the index information is the same as the determination process of the historical index information; namely: when the historical index information is obtained through the Hash algorithm, the updated index information is also obtained through the Hash algorithm; therefore, file updating information can be determined by the index information with the same dimension in subsequent alignment.
Based on this, after the client receives the resource updating request, in order to ensure that accurate file updating information can be created, the resource updating request can be analyzed at this time to obtain resource updating information; reading a historical resource packet corresponding to the historical version according to the resource updating information, and processing historical service files contained in the historical resource packet according to a preset resource packet processing algorithm to obtain historical index information corresponding to each historical service file; and simultaneously determining the updating index information corresponding to each updating service file in the updating resource package, then determining the same index information by comparing the historical index information with the updating index information, removing the same index information, and determining the file updating information according to the rest index information which is the index information corresponding to the service file needing to be downloaded.
In addition, when the update index information is determined, the update index information can be completed in advance by the server, that is, when the update resource package is determined, the server processes each update service file in the update resource package to determine the update index information of each update service file, writes the update index information into the resource update request, and sends the update index information to the client together, so that the client can determine the update index information through the resource update request; or after the client finishes the determination of the historical index information, the client requests the server for updating the index information, and informs the server of a resource packet processing algorithm adopted during the request, so that the server can feed back the updated index information in a targeted manner. In practical applications, the determination method for updating the index information may be determined according to practical application scenarios, and this embodiment is not limited herein.
In conclusion, the file updating information is determined by adopting the index information comparison mode, and the determination accuracy of the file updating information is effectively ensured, so that the service file required by the client can be accurately positioned, and the targeted file updating processing operation is realized.
Further, when performing index information comparison, in order to ensure that file update information is accurately determined based on comparison results, one-to-one comparison may be performed on a file basis, in this embodiment, the client is further configured to determine at least one piece of sub-history index information in the history index information, and determine at least one piece of sub-update index information in the update index information; determining an index information association relation based on the at least one piece of sub-history index information and the at least one piece of sub-update index information; and determining the index information comparison result according to the index information association relation.
Specifically, the sub-historical index information specifically refers to a character string index corresponding to each historical service file in the historical index information; correspondingly, the sub-update index information specifically refers to a character string index corresponding to each update service file in the update resource package. Correspondingly, the index information association relation specifically refers to an association relation between the historical service file and the updated service file which have the same file content, and is used for representing that the file formats and the contents of the historical service file and the updated service file are both corresponding to each other.
Based on this, after the historical index information and the updated index information are obtained, the sub-historical index information corresponding to each historical service file can be determined in the historical index information, and the sub-updated index information corresponding to each updated service file can be determined in the updated index information; then, comparing the two data one by one, and determining an index information association relation according to a comparison result, namely the index information association of the association relation is about to exist; and finally, determining the index information without the relation according to the index association relation, and using the index information to subsequently create file updating information.
In summary, the comparison result of the index information is determined by a one-to-one comparison method, so that the file update information determined on the basis of the comparison result can be ensured to be more accurate, and the follow-up resource update operation can be rapidly and efficiently completed.
Furthermore, after receiving the file update information, the server performs a creation processing operation on the target resource package according to the file update information, in this embodiment, the server is further configured to read a difference service file and a newly added service file in the update resource package according to the file update information, and determine index information corresponding to the difference service file and the newly added service file, respectively; and determining the updated service file according to the difference service file and the newly added service file.
Specifically, the differential service file is a service file which is determined according to the file update information and needs to update a historical service file already existing in the client; correspondingly, the newly added service file specifically refers to a service file which does not exist in the client and needs to be downloaded to the client for use.
Based on this, when the service end needs to update the service file, not only the existing service file needs to be updated, but also a new service file needs to be added, so that the client can provide a high-quality service for the user; therefore, the difference service file and the newly added service file can be read from the created update resource packet according to the update service file at the moment; respectively determining the index information corresponding to the difference service file and the newly added service file so as to facilitate subsequent updating processing operation according to the index information; and determining the updated service file by combining the difference service file and the newly added service file, and realizing the subsequent construction of the target resource package.
In summary, in order to ensure that the resource packet transmission is completed by using less network resources, the server may read the updated resource packet according to the file update information, so as to screen out the difference service file and the newly added service file that need to be transmitted to the client, thereby supporting the client to perform targeted update processing operations.
Furthermore, after receiving the target resource package, the client may update the historical resource package according to the target resource package, and in the updating process, it is considered that the target resource package includes a new service file and a difference service file, and therefore, the target resource package needs to be located and written according to the index information before the target resource package is updated, in this embodiment, the client is further configured to parse the target resource package to obtain the index information corresponding to the new service file and the difference service file, respectively; determining file writing positions corresponding to the newly added service file and the difference service file respectively according to the index information; and updating the historical resource package according to the file writing position, the newly added service file and the difference service file.
Specifically, the file writing position specifically refers to a local storage position where the new service file and the difference service file are written into the client, and is used for completing the updating processing operation without damaging the application program running environment. Based on the method, after the client receives the target resource packet fed back in response to the file updating information, the target resource packet can be analyzed to obtain the newly added service file, the difference service file and the index information corresponding to each service file; at the moment, the client can position the file writing positions corresponding to the newly added service file and the difference service file respectively according to the index information, and finally, the newly added service file and the difference service file are written into the appointed positions according to the file writing positions, so that the updating of the historical resource package can be completed, and the corresponding service can be provided for the user.
According to the above example, the history resource package comprises files bundle _ S1 to bundle _ Sm (where m is a positive integer), and then hash operation is performed on each file according to a hash algorithm to obtain a hash value HS1 corresponding to the file bundle _ S1, and a hash value HS2 … corresponding to the file bundle _ S2; meanwhile, determining a hash value H1 corresponding to the file bundle _1 in the updated resource package, and a hash value Hn corresponding to the file bundle _2, H2 … and file bundle _ n; and comparing the hash values corresponding to the files in the history resource package with the hash values corresponding to the files in the updated resource package one by one, and determining that the hash values H1 and H2 are not matched with the hash values corresponding to the history resource package according to the comparison result, so that the file bundle _1 corresponding to the hash value H1 and the file bundle _2 client corresponding to the hash value H2 do not exist.
Further, at this time, the file update information may be determined according to the file bundle _1 and the file bundle _2, and may be sent to the J game server. After receiving the file updating information, the J game server can read the file bundle _1 and the file bundle _2 in the updating resource packet as updating service files according to the file updating information; and determining the index information index _1 corresponding to the file bundle _1 and the index information index _2 corresponding to the file bundle _2, and obtaining a target resource packet by integrating the file bundle _1, the file bundle _2, the index information index _1 and the index information index _2, and sending the target resource packet to the CDN server.
Furthermore, the client can download the target resource package uploaded by the server by requesting the CDN server, and obtain the file bundle _1 and the file bundle _2, and the index information index _1 and index _2 by analyzing the target resource package; then determining the position of the file bundle _1 needing to be written into the file bundle _ S1 according to the index information index _ 1; determining a new file writing position required to be created for the file bundle _2 according to the index information index _ 2; and finally, the client writes the file bundle _1 and the file bundle _2 into the appointed position according to the index information, so that the updating of the J game is completed.
In summary, by performing the write processing operation on the newly added service file and the difference service file based on the index information, the accuracy of the write position can be ensured, and meanwhile, the update processing operation of the service file can be rapidly completed, thereby improving the resource update efficiency.
In addition, in view of that when a client updates a service file, only a newly added service file and a differential service file are written in, and therefore the client needs to adjust an original update mechanism, in this embodiment, the client is further configured to receive a policy adjustment request sent by the server, adjust a local update policy according to an update adjustment policy carried in the policy adjustment request, and feed back response information to the server according to an adjustment result.
Specifically, the policy adjustment request specifically refers to a request for adjusting an update mechanism of the client; correspondingly, the update adjustment policy specifically refers to a policy for performing update processing only on a required service file. Correspondingly, the local update policy specifically refers to an original service file update policy of the client, which is different from the update adjustment policy. Correspondingly, the response information is specifically policy adjustment completion information sent to the client.
Based on the method, the client can be supported to complete the updating of the application program only by updating the required service file. The server side can actively send the strategy adjustment request to the client side, realize the adjustment of the local update strategy according to the update adjustment strategy carried in the strategy adjustment request, and feed back response information to the server side according to the adjustment result. Therefore, the subsequent update processing operation of the service file can be completed according to the new strategy.
In conclusion, by adjusting the policy, the client can be supported to download only the required service file, which not only saves network resources, but also saves the consumption of computing resources, thereby ensuring the resource updating efficiency.
According to the resource processing system, after the client receives the resource updating request issued by the server, the historical resource packet can be determined according to the request, and the file updating information is determined and sent to the server by processing the historical resource packet; at the moment, the server side can read the update service file and the index information according to the file update information, and creates a target resource package which only needs to be updated by the client side by combining the update service file and the index information; and finally, the client updates the local historical resource package by downloading the target resource package from the server, so that the service file to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, the consumption of network resources is greatly reduced, and meanwhile, the computing resource for additionally processing the unchanged file by the client is saved, and the file updating efficiency is improved.
Corresponding to the foregoing embodiment, this embodiment further provides a resource processing method, where fig. 2 shows a processing flow chart of the resource processing method applied in a game scene according to an embodiment of the present application, and specifically includes the following steps:
step S202, the server side determines a resource updating strategy according to the resource updating instruction, and creates an updating resource package corresponding to the updating version according to the resource updating strategy.
And step S204, the server side creates a resource updating request according to the updating resource packet and sends the resource updating request to the client side.
Step S206, the client receives the resource update request, and obtains resource update information by analyzing the resource update request.
And step S208, the client reads the historical resource packet corresponding to the historical version according to the resource updating information, and processes the historical service file in the historical resource packet according to the Hash algorithm to obtain historical index information.
Step S210, the client determines update index information corresponding to the update resource packet, determines at least one piece of sub-history index information in the history index information, and determines at least one piece of update index information in the update index information.
In step S212, the client determines an index information association relationship based on the at least one piece of sub-history index information and the at least one piece of sub-update index information.
In step S214, the client determines an index information comparison result according to the index association relationship, determines file update information according to the index information comparison result, and sends the file update information to the server.
Step S216, the server reads the difference service file and the newly added service file in the update resource package according to the file update information, and determines index information corresponding to the difference service file and the newly added service file respectively.
In step S218, the server creates a target resource package according to the difference service file, the newly added service file, and the index information corresponding to each of the difference service file and the newly added service file, and uploads the target resource package to the content distribution network.
Step S220, the client downloads the target resource package from the content distribution network, and analyzes the target resource package to obtain a new service file, a difference service file, and index information.
In step S222, the client determines, according to the index information, writing positions corresponding to the newly added service file and the difference service file, respectively.
Step S224, the client writes the newly added service file and the difference service file into the designated position according to the file writing position, and completes the update of the historical resource package.
In summary, after the client receives the resource update request issued by the server, the history resource packet may be determined first according to the request, and the file update information is determined to be sent to the server by processing the history resource packet; at the moment, the server side can read the update service file and the index information according to the file update information, and creates a target resource package which only needs to be updated by the client side by combining the update service file and the index information; and finally, the client updates the local historical resource package by downloading the target resource package from the server, so that the service file to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, the consumption of network resources is greatly reduced, and meanwhile, the computing resource for additionally processing the unchanged file by the client is saved, and the file updating efficiency is improved.
Corresponding to the above system embodiment, the present application further provides an embodiment of a resource processing method applied to a client, and fig. 3 shows a flowchart of a resource processing method provided in an embodiment of the present application. As shown in fig. 3, the method is applied to a client, and includes:
step S302, receiving a resource updating request issued by a server, and determining a historical resource packet corresponding to the resource updating request;
step S304, processing the historical resource packet according to the resource updating request, obtaining file updating information and sending the file updating information to the server;
step S306, responding to the resource updating request to download a target resource package, and updating the historical resource package according to the index information in the target resource package; and the target resource packet is issued to the client by the server according to the file updating information.
In an optional embodiment, a target resource package is downloaded in a content distribution network in response to the resource update request, and the history resource package is updated according to index information in the target resource package; and uploading the target resource package to the content distribution network by the server according to the file updating information.
In an optional embodiment, the resource update information is obtained by analyzing the resource update request; reading a historical resource packet corresponding to the historical version according to the resource updating information; processing historical service files contained in a historical resource package according to a preset resource package processing algorithm to obtain historical index information and determine updating index information corresponding to the updating resource package; and comparing the historical index information with the updated index information, and determining the file updated information according to the comparison result of the index information.
In an alternative embodiment, at least one piece of sub-historical index information is determined in the historical index information, and at least one piece of sub-update index information is determined in the update index information; determining an index information association relation based on at least one piece of sub-historical index information and at least one piece of sub-updated index information; and determining an index information comparison result according to the index information association relation.
In an optional embodiment, the target resource packet is analyzed to obtain index information corresponding to the newly added service file and the difference service file respectively; determining file writing positions corresponding to the newly added service file and the difference service file respectively according to the index information; and updating the historical resource package according to the file writing position, the newly added service file and the difference service file.
In an optional embodiment, the historical service files contained in the historical resource packet are processed according to a suffix sorting algorithm to obtain historical index information; or processing the historical service files contained in the historical resource packet according to a Hash algorithm to obtain historical index information.
In an optional embodiment, a policy adjustment request sent by a server is received, a local update policy is adjusted according to an update adjustment policy carried in the policy adjustment request, and response information is fed back to the server according to an adjustment result.
The above is a schematic scheme of a resource processing method of this embodiment. It should be noted that the technical solution of the resource processing method and the technical solution of the resource processing system belong to the same concept, and details that are not described in detail in the technical solution of the resource processing method can be referred to the description of the technical solution of the resource processing system. Further, the components in the device embodiment should be understood as functional blocks that must be created to implement the steps of the program flow or the steps of the method, and each functional block is not actually divided or separately defined. The device claims defined by such a set of functional modules are to be understood as a functional module framework for implementing the solution mainly by means of a computer program as described in the specification, and not as a physical device for implementing the solution mainly by means of hardware.
Corresponding to the above system embodiment, the present application further provides an embodiment of a resource processing method applied to a server, and fig. 4 shows a flowchart of a resource processing method provided in an embodiment of the present application. As shown in fig. 4, the method is applied to a server, and includes:
step S402, receiving file updating information fed back by the client aiming at the resource updating request;
step S404, reading the update resource packet associated with the resource update request according to the file update information, and obtaining an update service file and index information;
step S406, creating a target resource package based on the updated service file and the index information.
In an optional embodiment, a target resource package is created based on the updated service file and the index information and uploaded to a content distribution network.
In an optional embodiment, a resource updating instruction is received, and a resource updating policy is determined according to the resource updating instruction; creating an update resource package corresponding to the update version according to the resource update strategy; and creating a resource updating request based on the updating resource packet, and sending the resource updating request to the client.
In an optional embodiment, reading the difference service file and the newly added service file in the update resource package according to the file update information, and determining index information corresponding to the difference service file and the newly added service file respectively; and determining an updated service file according to the difference service file and the newly added service file.
The above is a schematic scheme of a resource processing method of this embodiment. It should be noted that the technical solution of the resource processing method and the technical solution of the resource processing system belong to the same concept, and details that are not described in detail in the technical solution of the resource processing method can be referred to the description of the technical solution of the resource processing system. Further, the components in the device embodiment should be understood as functional blocks that must be created to implement the steps of the program flow or the steps of the method, and each functional block is not actually divided or separately defined. The device claims defined by such a set of functional modules are to be understood as a functional module framework for implementing the solution mainly by means of a computer program as described in the specification, and not as a physical device for implementing the solution mainly by means of hardware.
Corresponding to the above system embodiment, the present application also provides another resource processing system embodiment, and fig. 5 shows a schematic structural diagram of another resource processing system provided in the embodiment of the present application. As shown in fig. 5, the system 500 includes a server 510 and a client 520.
The server 510 is configured to determine an update resource packet and a history resource packet according to the resource update request; determining file updating information by comparing the updating resource packet with the historical resource packet; reading an update service file and index information in the update resource packet according to the file update information; creating at least one resource packet according to the updated service file and the index information;
the client 520 is configured to download a target resource package in response to the resource update request, and update a local resource package according to index information in the target resource package, where the target resource package belongs to the at least one resource package.
In an optional embodiment, the server is further configured to create at least one resource package according to the updated service file and the index information, and upload the resource package to the content distribution network; the client is further configured to download a target resource package in the content distribution network in response to the resource update request.
It should be noted that, the description content of the other resource processing system provided in this embodiment is similar to the description content of the resource processing system provided in the foregoing embodiment, and the same or corresponding contents may refer to the corresponding contents in the foregoing embodiment, and this embodiment is not limited in any way herein.
In another resource processing system provided in this embodiment, after the server completes creating the updated resource package, in order to enable each client to obtain the resource package according to the local requirement and reduce the acquisition of redundant resource packages, the server may compare all the historical resource packages that can be queried by the server with the updated resource package to determine the difference between the updated resource package and each historical resource package, thereby determining the service file that each historical resource package needs to be updated according to the difference, and create the resource package that can update each historical resource package by combining the updated service file and the index information corresponding to each historical resource package on the basis of the difference, so that each client can determine the target resource package that is needed according to the locally stored historical resource package and request downloading to update the local resource package, the aim of saving network resources is achieved by performing targeted resource updating.
For example, the J game server needs to update the J game, and at this time, a finer resource package is created for the J game, where the resource package includes files bundle _1 to bundle _ n. Meanwhile, three versions capable of continuing to run the J game are determined, namely the historical resource package 1 corresponding to the version 1, the historical resource package 2 corresponding to the version 2 and the historical resource package 3 corresponding to the version 3, namely, the client can also maintain the running of the game by installing the historical resource packages 1-3. In order to enable the client to experience the updated game service, an update resource package containing files bundle _1 to bundle _ n is created.
Furthermore, considering that the update resource package includes part of the service files related in the history resource packages 1 to 3, if the update resource package is updated in full, more network resources of the client need to be consumed for downloading, and the update process is also longer, so as to reduce the consumption of the network resources and improve the update efficiency. At this time, the hash value H1 corresponding to the file bundle _1 and the hash value H2 … corresponding to the file bundle _ n in the updated resource package may be calculated first.
Meanwhile, calculating a hash value H1-1 corresponding to the file bundle _1-1 in the history resource package 1, and a hash value H1-2 … corresponding to the file bundle _1-n, and H1-n corresponding to the file bundle _ 1-n; calculating a hash value H2-1 corresponding to the file bundle _2-1 in the history resource package 2, and a hash value H2-2 … corresponding to the file bundle _2-n, and H2-n corresponding to the file bundle _ 2-n; and calculating a hash value H3-1 corresponding to the file bundle _3-1 in the history resource package 3, and a hash value H3-2 … corresponding to the file bundle _3-n, and a hash value H3-n corresponding to the file bundle _ 3-n.
At this time, the hash values corresponding to the files in the history resource package 1 may be compared with the hash values corresponding to the files in the updated resource package one by one, and it is determined that the hash values H8, H9, and H20 are not matched with the hash values corresponding to the history resource package 1 according to the comparison result, which indicates that the file bundle _8 corresponding to the hash value H8, the file bundle _9 corresponding to the hash value H9, and the file bundle _20 corresponding to the hash value H20 do not exist in the client on which the history resource package 1 is installed. Furthermore, file update information corresponding to the historical resource package 1 can be determined according to the file bundle _8, the file bundle _9 and the file bundle _20, and after the J game server determines the file update information corresponding to the historical resource package 1, the file bundle _8, the file bundle _9 and the file bundle _20 can be read in the update resource package as update service files according to the file update information; and determining index information index _8, index _9 and index _20 corresponding to the file bundle _8, the file bundle _9 and the file bundle _20, then integrating the file and the index information, obtaining the resource package 1 corresponding to the historical resource package 1, and sending the resource package 1 to the CDN server.
Similarly, the hash values corresponding to the files in the history resource package 2 are compared with the hash values corresponding to the files in the updated resource package one by one, and if the hash values H9 and H20 are determined to be not matched with the hash values corresponding to the history resource package 2 according to the comparison result, it is determined that the file bundle _9 corresponding to the hash value H9 and the file bundle _20 corresponding to the hash value H20 do not exist in the client side where the history resource package 2 is installed. Further, file update information corresponding to the historical resource package 2 can be determined according to the file bundle _9 and the file bundle _20, and after the J game server determines the file update information corresponding to the historical resource package 2, the file bundle _9 and the file bundle _20 can be read in the update resource package as update service files according to the file update information; and determining index information index _9 and index _20 corresponding to the file bundle _9 and the file bundle _20, then integrating the file and the index information, obtaining the resource package 2 corresponding to the historical resource package 2, and sending the resource package 2 to the CDN server.
Similarly, the hash values corresponding to the files in the history resource package 3 are compared with the hash values corresponding to the files in the updated resource package one by one, and if the hash value H20 is determined to be not matched with the hash value corresponding to the history resource package 2 according to the comparison result, it is determined that the file bundle _20 corresponding to the hash value H20 does not exist in the client side where the history resource package 3 is installed. Furthermore, file updating information corresponding to the historical resource package 3 can be determined according to the file bundle _20, and after the J game server determines the file updating information corresponding to the historical resource package 3, the file bundle _20 can be read in the updating resource package as an updating service file according to the file updating information; and determining the index information index _20 corresponding to the file bundle _20, then integrating the file and the index information, obtaining the resource package 3 corresponding to the history resource package 3, and sending the resource package 3 to the CDN server.
On this basis, when the client 1 corresponding to the history resource package 1 needs to update the locally installed J game, the client 1 may request to download the resource package 1 as a target resource package at the CDN server, and analyze the target resource package to obtain the file bundle _8, the file bundle _9, the file bundle _20, the index information index _8, index _9, and index _20, and then determine a location where the file bundle _8 needs to be written into the file bundle _ S8, and a new file writing location where the file bundle _9 and the file bundle _20 need to be created according to the index information index _8, index _9, and index _ 20; and finally, the client 1 writes the file bundle _8, the file bundle _9 and the file bundle _20 into the designated positions according to the index information, so as to complete the updating of the J game.
In another resource processing system provided in this embodiment, after the server completes creating the updated resource package, in order to enable each client to obtain the resource package according to the local requirement and reduce the acquisition of redundant resource packages, the server may compare all the historical resource packages that can be queried by the server with the updated resource package to determine the difference between the updated resource package and each historical resource package, thereby determining the service file that each historical resource package needs to be updated according to the difference, and create the resource package that can update each historical resource package by combining the updated service file and the index information corresponding to each historical resource package on the basis of the difference, so that each client can determine the target resource package that is needed according to the locally stored historical resource package and request downloading to update the local resource package, the aim of saving network resources is achieved by performing targeted resource updating.
Fig. 6 illustrates a block diagram of a computing device 600 provided according to an embodiment of the present application. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to store data.
Computing device 600 also includes access device 640, access device 640 enabling computing device 600 to communicate via one or more networks 660. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 640 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-described components of computing device 600, as well as other components not shown in FIG. 6, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 6 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 600 may also be a mobile or stationary server. Wherein the processor 620 is configured to implement the steps of the resource handling method when executing the computer-executable instructions.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the resource processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the resource processing method.
An embodiment of the present application also provides a computer readable storage medium storing computer instructions, which when executed by a processor, are used for the resource processing method.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the resource processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the resource processing method.
An embodiment of the present application further provides a chip, in which a computer program is stored, and the steps of the resource processing method are implemented when the computer program is executed by the chip.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.
Claims (15)
1. A resource processing system, comprising:
the system comprises a client, a server and a server, wherein the client is configured to receive a resource updating request issued by the server and determine a historical resource packet corresponding to the resource updating request; processing the historical resource packet according to the resource updating request, obtaining file updating information and sending the file updating information to the server;
the server is configured to read the update resource packet associated with the resource update request according to the file update information, and obtain an update service file and index information; creating a target resource package based on the updated service file and the index information;
the client is further configured to respond to the resource updating request to download the target resource package, and update the historical resource package according to the index information in the target resource package.
2. The system of claim 1, wherein the server is further configured to receive a resource update instruction, and determine a resource update policy according to the resource update instruction; creating the updated resource package corresponding to the updated version according to the resource updating strategy; and creating the resource updating request based on the updating resource packet, and sending the resource updating request to the client.
3. The system of claim 1, wherein the client is further configured to obtain resource update information by parsing the resource update request; reading the historical resource packet corresponding to the historical version according to the resource updating information; processing historical service files contained in the historical resource package according to a preset resource package processing algorithm to obtain historical index information and determine updating index information corresponding to the updating resource package; comparing the historical index information with the updated index information, and determining the file updated information according to the comparison result of the index information.
4. The system of claim 3, wherein the client is further configured to determine at least one sub-historical index information in the historical index information and at least one sub-updated index information in the updated index information; determining an index information association relation based on the at least one piece of sub-history index information and the at least one piece of sub-update index information; and determining the index information comparison result according to the index information association relation.
5. The system according to claim 3 or 4, wherein the server is further configured to read a difference service file and a newly added service file from the update resource package according to the file update information, and determine index information corresponding to the difference service file and the newly added service file respectively; and determining the updated service file according to the difference service file and the newly added service file.
6. The system according to claim 5, wherein the client is further configured to parse the target resource package to obtain the index information corresponding to the newly added service file and the differential service file respectively; determining file writing positions corresponding to the newly added service file and the difference service file respectively according to the index information; and updating the historical resource package according to the file writing position, the newly added service file and the difference service file.
7. The system according to claim 3, wherein the client is further configured to process the historical service files contained in the historical resource package according to a suffix sorting algorithm, and obtain the historical index information; or processing the historical service files contained in the historical resource packet according to a hash algorithm to obtain the historical index information.
8. The system according to claim 1, wherein the client is further configured to receive a policy adjustment request sent by the server, adjust a local update policy according to an update adjustment policy carried in the policy adjustment request, and feed back response information to the server according to an adjustment result.
9. The system of claim 1, wherein the server is further configured to create a target resource package based on the updated service file and the index information and upload the target resource package to a content distribution network;
the client further configured to download the target resource package in the content distribution network in response to the resource update request.
10. A resource processing method is applied to a client and comprises the following steps:
receiving a resource updating request issued by a server, and determining a historical resource packet corresponding to the resource updating request;
processing the historical resource packet according to the resource updating request, obtaining file updating information and sending the file updating information to the server;
responding to the resource updating request to download a target resource package, and updating the historical resource package according to index information in the target resource package;
and the target resource packet is issued to the client by the server according to the file updating information.
11. A resource processing method is applied to a server and comprises the following steps:
receiving file updating information fed back by a client aiming at a resource updating request;
reading an update resource packet associated with the resource update request according to the file update information to obtain an update service file and index information;
and creating a target resource packet based on the updated service file and the index information.
12. A resource processing system, comprising:
the server is configured to determine an updating resource packet and a historical resource packet according to the resource updating request; determining file updating information by comparing the updating resource packet with the historical resource packet; reading an update service file and index information in the update resource packet according to the file update information; creating at least one resource packet according to the updated service file and the index information;
and the client is configured to respond to the resource updating request to download a target resource package and update a local resource package according to the index information in the target resource package, wherein the target resource package belongs to the at least one resource package.
13. The system of claim 12, wherein the server is further configured to create at least one resource package according to the updated service file and the index information and upload the resource package to a content distribution network;
the client is further configured to download a target resource package in the content distribution network in response to the resource update request.
14. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions and the processor is configured to execute the computer-executable instructions to implement the steps of the method of claim 10 or 11.
15. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of claim 10 or 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210642358.9A CN114900478B (en) | 2022-06-08 | 2022-06-08 | Resource processing system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210642358.9A CN114900478B (en) | 2022-06-08 | 2022-06-08 | Resource processing system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114900478A true CN114900478A (en) | 2022-08-12 |
CN114900478B CN114900478B (en) | 2024-03-26 |
Family
ID=82728161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210642358.9A Active CN114900478B (en) | 2022-06-08 | 2022-06-08 | Resource processing system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114900478B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657170A (en) * | 2013-11-25 | 2015-05-27 | 腾讯科技(上海)有限公司 | Data updating method, device and system |
CN109901874A (en) * | 2019-03-06 | 2019-06-18 | 珠海金山网络游戏科技有限公司 | A kind of file loading method and device calculate equipment and storage medium |
US20200327371A1 (en) * | 2019-04-09 | 2020-10-15 | FogHorn Systems, Inc. | Intelligent Edge Computing Platform with Machine Learning Capability |
CN112882746A (en) * | 2021-02-03 | 2021-06-01 | 网易(杭州)网络有限公司 | Application program updating method and device, storage medium and computer equipment |
CN112947983A (en) * | 2021-04-15 | 2021-06-11 | 网易(杭州)网络有限公司 | Application program updating method and device, electronic equipment and storage medium |
CN113094076A (en) * | 2021-03-16 | 2021-07-09 | 杭州电魂网络科技股份有限公司 | Version iteration method, device, equipment and medium based on version control |
CN113326058A (en) * | 2021-07-01 | 2021-08-31 | 苏州好玩友网络科技有限公司 | Method, device, equipment and medium for updating version of application |
CN114143377A (en) * | 2021-11-29 | 2022-03-04 | 杭州逗酷软件科技有限公司 | Resource request configuration method, server, client, equipment and storage medium |
CN114546460A (en) * | 2022-02-25 | 2022-05-27 | 上海商汤科技开发有限公司 | Firmware upgrading method and device, electronic equipment and storage medium |
CN114564227A (en) * | 2022-03-04 | 2022-05-31 | 网易(杭州)网络有限公司 | Application program updating method and device, electronic equipment and storage medium |
-
2022
- 2022-06-08 CN CN202210642358.9A patent/CN114900478B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657170A (en) * | 2013-11-25 | 2015-05-27 | 腾讯科技(上海)有限公司 | Data updating method, device and system |
CN109901874A (en) * | 2019-03-06 | 2019-06-18 | 珠海金山网络游戏科技有限公司 | A kind of file loading method and device calculate equipment and storage medium |
US20200327371A1 (en) * | 2019-04-09 | 2020-10-15 | FogHorn Systems, Inc. | Intelligent Edge Computing Platform with Machine Learning Capability |
CN112882746A (en) * | 2021-02-03 | 2021-06-01 | 网易(杭州)网络有限公司 | Application program updating method and device, storage medium and computer equipment |
CN113094076A (en) * | 2021-03-16 | 2021-07-09 | 杭州电魂网络科技股份有限公司 | Version iteration method, device, equipment and medium based on version control |
CN112947983A (en) * | 2021-04-15 | 2021-06-11 | 网易(杭州)网络有限公司 | Application program updating method and device, electronic equipment and storage medium |
CN113326058A (en) * | 2021-07-01 | 2021-08-31 | 苏州好玩友网络科技有限公司 | Method, device, equipment and medium for updating version of application |
CN114143377A (en) * | 2021-11-29 | 2022-03-04 | 杭州逗酷软件科技有限公司 | Resource request configuration method, server, client, equipment and storage medium |
CN114546460A (en) * | 2022-02-25 | 2022-05-27 | 上海商汤科技开发有限公司 | Firmware upgrading method and device, electronic equipment and storage medium |
CN114564227A (en) * | 2022-03-04 | 2022-05-31 | 网易(杭州)网络有限公司 | Application program updating method and device, electronic equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
PETER IZSAK等: "Training Compact Models for Low Resource Entity Tagging using Pre-trained Language Models", 《 2019 FIFTH WORKSHOP ON ENERGY EFFICIENT MACHINE LEARNING AND COGNITIVE COMPUTING - NEURIPS EDITION (EMC2-NIPS)》, 29 June 2021 (2021-06-29) * |
黄林;杨军;徐亮亮;: "基于微服务构建模型的应用系统增量更新算法", 计算机与现代化, no. 02, 15 February 2018 (2018-02-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN114900478B (en) | 2024-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112486074B (en) | Data processing system, method and device | |
CN109756581B (en) | File transmission system and method, computing device and storage medium | |
CN111949324B (en) | Distributed serial number generation method and device | |
CN111538605B (en) | Distributed data access layer middleware and command execution method and device | |
CN103455439A (en) | Local caching device, system and method for providing content caching service | |
US10970309B2 (en) | Data storage method and apparatus | |
CN112642146A (en) | Data processing method and device | |
CN103634393A (en) | IVR (interactive voice response) and realization method thereof | |
CN114666212A (en) | Configuration data issuing method | |
CN114221836A (en) | Data processing method and device | |
CN109254954A (en) | Document handling method and device calculate equipment and storage medium | |
CN114900478B (en) | Resource processing system and method | |
CN110677443A (en) | Data transmitting and receiving method, transmitting end, receiving end, system and storage medium | |
CN115525260A (en) | Code generation method and device based on protobuf | |
CN107153574A (en) | Picture code-transferring method and system | |
CN113382180B (en) | Picture processing method, computing device and readable storage medium | |
CN112949326B (en) | Information query method, device, equipment and computer readable medium | |
CN104866301B (en) | For calling and the method and device of assisted call local side ability | |
CN112883252A (en) | Service query method, device, computer equipment and readable storage medium | |
CN111522616A (en) | Page change method and device | |
US11095748B1 (en) | Network-based content rendering | |
US10878187B1 (en) | Network-based content rendering | |
CN110837476A (en) | Application program testing method and device | |
CN114070722A (en) | Network configuration method and device | |
CN114756573B (en) | Data processing method, device and system |
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 |