CN114900478B - Resource processing system and method - Google Patents

Resource processing system and method Download PDF

Info

Publication number
CN114900478B
CN114900478B CN202210642358.9A CN202210642358A CN114900478B CN 114900478 B CN114900478 B CN 114900478B CN 202210642358 A CN202210642358 A CN 202210642358A CN 114900478 B CN114900478 B CN 114900478B
Authority
CN
China
Prior art keywords
resource
update
file
information
resource package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210642358.9A
Other languages
Chinese (zh)
Other versions
CN114900478A (en
Inventor
潘亚楠
杨明邦
张强
刘明城
蔡其锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority to CN202210642358.9A priority Critical patent/CN114900478B/en
Publication of CN114900478A publication Critical patent/CN114900478A/en
Application granted granted Critical
Publication of CN114900478B publication Critical patent/CN114900478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission 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/762Admission 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects

Abstract

The application provides a resource processing system and a method, wherein the resource processing system comprises: the client is configured to receive a resource update request issued by the server and determine a historical resource package corresponding to the resource update request; processing the history resource package according to the resource update request to obtain file update information and sending the file update information to the server; the server side is configured to read the update resource package associated with the resource update request according to the file update information to obtain an update service file and index information; creating a target resource package based on the update service file and the index information; the client is further configured to respond to the resource update request to download the target resource package, and update the historical resource package according to the index information in the target resource package.

Description

Resource processing system and method
Technical Field
The present disclosure 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 online products need to rely on interaction between a client and a server to provide corresponding business services for users; the network resources can be fully utilized through interaction between the client and the server to reduce the calculation pressure of the client, and meanwhile, better business service can be provided for users. In the prior art, when the client and the server interact, most of the resources are accompanied with resource updating operation, in order to ensure the comprehensiveness of the resource updating, so as to support the client to continuously provide high-quality service for the user according to the updated resources, the server generally packages and sends the newly added resources, the modified resources and the history resources to the client together, which results in the client to additionally receive the history resources except the changes, wastes a large amount of network resources, and meanwhile, the client spends additional computing resources to finish the updating. There is therefore a need for an effective solution to the above problems.
Disclosure of Invention
In view of the foregoing, embodiments of the present application provide a resource processing system to solve the technical drawbacks of 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 client is configured to receive a resource update request issued by the server and determine a historical resource package corresponding to the resource update request; processing the history resource package according to the resource update request to obtain file update information and sending the file update information to the server;
the server side is configured to read the update resource package associated with the resource update request according to the file update information to obtain an update service file and index information; creating a target resource package based on the update service file and the index information;
the client is further configured to respond to the resource update 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 of the corresponding updated version according to the resource updating strategy; and creating the resource update request based on the update resource package and sending the resource update 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 package corresponding to the historical version according to the resource updating information; processing a history service file contained in the history resource package according to a preset resource package processing algorithm to obtain history index information, and determining update index information corresponding to the update resource package; and comparing the historical index information with the updated index information, and determining the file updated information according to index information comparison results.
Optionally, the client is further configured to determine at least one sub-history index information in the history index information, and determine at least one sub-update index information in the update index information; determining an index information association relationship based on the at least one sub-history index information and the at least one 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 new 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 new 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 package 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 the history service file included in the history resource package according to a suffix ordering algorithm to obtain the history index information; or processing the history service file contained in the history resource package according to a hash algorithm to obtain the history 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 update service file and the index information and upload the target resource package to a content distribution network;
The client is 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 an embodiment of the present application, there is provided a resource processing method, applied to a client, including:
receiving a resource update request issued by a server side, and determining a historical resource package corresponding to the resource update request;
processing the history resource package according to the resource update request to obtain file update information and sending the file update information to the server;
downloading a target resource package in response to the resource update request, and updating the historical resource package according to index information in the target resource package;
and the target resource package 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 update information fed back by a client side aiming at a resource update request;
reading an update resource package 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 package 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 side is configured to determine an updated resource package and a historical resource package according to the resource update request; determining file updating information by comparing the updating resource package with the history resource package; reading an update service file and index information in the update resource package according to the file update information; creating at least one resource package according to the update 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 the local resource package according to 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 update 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 of the present application, there is provided a computing device comprising:
a memory and a processor;
the memory is used for storing computer executable instructions, and the processor implements the steps of the resource processing method when executing the computer executable instructions.
According to a sixth aspect of embodiments of the present application, there is provided a computer readable storage medium storing computer executable instructions which, 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.
After the client receives the resource updating request issued by the server, the resource processing system can firstly determine a historical resource package according to the request, and determine file updating information to be sent to the server by processing the historical resource package; at this time, the server side can read the update service file and index information according to the file update information, and a target resource package which only needs to be updated by the client side is created by combining the update service file and the index information; and finally, the client downloads the target resource package from the server to update the local historical resource package, so that the service file which needs to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, thereby greatly reducing the consumption of network resources, saving the computing resource of the client for additionally processing the unchanged file, and improving the file updating efficiency.
Drawings
FIG. 1 is a schematic diagram of a resource processing system according to an embodiment of the present application;
FIG. 2 is a process flow diagram of a resource processing method applied in a game scenario according to an embodiment of the present application;
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 according to an embodiment of the present application;
FIG. 5 is a schematic 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 one 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, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
The terminology used in one or more embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of one or more embodiments of the application. As used in this application in one or more embodiments 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 or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the present application.
First, terms related to one or more embodiments of the present invention will be explained.
CDN: the (Content Delivery Network, content distribution network) is an intelligent virtual network built on the basis of the existing network, and by means of the edge servers deployed in various places, a user can obtain required content nearby through load balancing, content distribution, scheduling and other functional modules of the center platform, network congestion is reduced, and user access response speed and hit rate are improved. The key technologies of CDNs mainly include content storage and distribution technologies.
Bundle: is a directory containing the resources that the program will use; these resources contain, for example, images, sounds, compiled code.
In this 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, and is described in detail in the following embodiments.
In practical applications, the update amount of the Unity3D application product is particularly large. For example, a bundle is 5M, even if only 1M resources change, the server needs to repackage the whole bundle, and send the repackaged bundle to the client for updating, so as to cover the old bundle, wherein 4M resources are updated more. 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, more network resources are required to be consumed for resource transmission, and meanwhile, the client consumes additional computing resources for update processing operation, so that the waste of available resources is serious, and therefore, an effective scheme is needed to solve the above problems.
After the client receives the resource updating request issued by the server, the resource processing system can firstly determine a historical resource package according to the request, and determine file updating information to be sent to the server by processing the historical resource package; at this time, the server side can read the update service file and index information according to the file update information, and a target resource package which only needs to be updated by the client side is created by combining the update service file and the index information; and finally, the client downloads the target resource package from the server to update the local historical resource package, so that the service file which needs to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, thereby greatly reducing the consumption of network resources, saving the computing resource of the client for additionally processing the unchanged file, and improving the file updating efficiency.
FIG. 1 is a schematic diagram of a resource processing system 100 according to an embodiment of the present application, where the resource processing system includes a client 110 and a server 120;
the client 110 is configured to receive a resource update request issued by the server and determine a historical resource package corresponding to the resource update request; processing the history resource package according to the resource update request to obtain file update information and sending the file update information to the server;
the server 120 is configured to read an 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 update 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, in order to facilitate description of the resource processing system, an application in a game scenario is described as an example, and the implementation processes in other service scenarios may refer to the same or corresponding description contents of this embodiment, which are not repeated herein.
Specifically, the client specifically refers to a device that is held by a user and can communicate with the server through a network, including but not limited to a mobile phone, a computer, an intelligent wearable device, etc.; correspondingly, the server specifically refers to a server capable of sending required resources to the client through interaction with the client, belongs to a server to which an application program installed on the client belongs, and different application programs correspond to different servers.
Accordingly, the resource update request specifically refers to a request issued by the server for updating a part of resources in the application program installed on the client, where the updated resources include, but are not limited to, codes, text, pictures, video, audio, and the like, and the embodiment is not limited in any way. That is, after the client needs to update according to the requirement of the server, the client can continue to provide the application program for the user and the corresponding service provided by the application program. Correspondingly, the historical resource package specifically refers to a resource package to which the service file which needs to be updated currently belongs in the last version, and the resource package of the current version can be obtained by updating the resource package of the last version. Correspondingly, the file updating information specifically refers to information that the part of the historical service files in the historical resource package needs to be updated according to the resource updating request, so that the subsequent targeted downloading of the service files is realized, and the updating processing operation is completed.
Correspondingly, the updated resource package specifically refers to a resource package capable of replacing a historical resource package, and the updated resource package is integrally downloaded to the client for replacement, so that the updating processing operation can be directly completed; however, since the update resource package contains not only the changed service file but also 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 update service file specifically refers to a service file that needs to be used by the client for the update, and does not include 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 in 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 contained 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 is stated that the server needs to update part or all of the application program of the client because of the service requirement, and in the resource update process, in order to save network resources and computing resources, the client may determine the historical resource package of the previous version according to the resource update request, process the historical resource package according to the resource update request, determine the file update information corresponding to the service file that needs to be updated according to the processing result, and feed the file update information back to the server.
The server receives the file updating information returned by the client, and can read the updated updating resource packet according to the file updating information at the moment so as to obtain the updating service file and the index information from the updating resource packet. The service file and the index information corresponding to the service file which need to be updated at this time are used for creating a target resource package of the corresponding file update information so as to support the client to download according to the requirement.
The client can respond to the resource update request to download the target resource package from the server at this time, and update the historical resource package according to the index information in the target resource package, namely, the updated service file is written into the corresponding position through the index information, so that the update processing operation of this time is completed, and the client is supported to continue to provide 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 wasting network resources caused by multiple requests of the client by the client.
In addition, considering the efficiency of network resource transmission, after creating a target resource package, the server may upload the target resource package to the content distribution network, and the client downloads the target resource package from the content distribution network, where in this embodiment, the server is further configured to create a 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 is further configured to download the target resource package in the content distribution network in response to the resource update request.
That is, after creating the target resource package corresponding to the file update information from the update service file and the index information, it may be transmitted to the content distribution network to support the client to download according to the need. The client can respond to the resource update request at this time 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 will send a request for updating part of the resources of the J game to the client; after receiving a resource update request issued by a 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 update request, determines that a bundle_1 file needs to be updated, adds a bundle_2 file, and combines a resource package processing result to obtain file update information and feeds the file update information back to the J game server.
After receiving the file update information (bundle_1 file update, bundle_2 file addition), the J game server reads the bundle_1 file and the bundle_2 file in the update resource package created for the update (including bundle_1 to bundle_n files, where n is a positive integer), determines index information corresponding to each file, and gathers the bundle_1 file, bundle_2 file and the index information creation target resource package corresponding to each file, and uploads the update resource package to the CDN server.
The client side responds to the resource updating request to download a target resource package on the CDN server, and the target resource package is analyzed to obtain a bundle_1 file and a bundle_2; and then determining a writing position according to index information corresponding to each file, and respectively writing the bundle_1 file and the bundle_2 into the old file according to the writing position to finish updating processing operation, so that a new version of J game can be obtained, and a client can provide game service for a user through the new version of J game.
In summary, after the client receives the resource update request issued by the server, the historical resource package may be determined according to the request, and the historical resource package is processed to determine the file update information and send the file update information to the server; at this time, the server side can read the update service file and index information according to the file update information, and a target resource package which only needs to be updated by the client side is created by combining the update service file and the index information; and finally, the client downloads the target resource package from the server to update the local historical resource package, so that the service file which needs to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, thereby greatly reducing the consumption of network resources, saving the computing resource of the client for additionally processing the unchanged file, and improving the file updating efficiency.
Furthermore, before the resource is updated, the server side needs to create an update resource package according to the update requirement, and the creation request is issued to each client side, so that the update processing operation of the client side update request can be realized; 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 of the corresponding updated version according to the resource updating strategy; and creating the resource update request based on the update resource package and sending the resource update request to the client.
Specifically, the resource update instruction set specifically refers to an instruction submitted by a game maintainer when performing game update; correspondingly, the resource updating strategy specifically refers to a service file, an added service file and an unchanged service file, wherein the service file, the added service file and the unchanged service file are required to be updated in the designated position.
Based on the above, when the server receives the resource update instruction submitted by the game maintainer, in order to ensure the comprehensiveness of the update, the service file, the added service file and the unchanged service file which need to be updated can be positioned according to the resource update instruction; and then, selecting the business files to be updated, the added business files and the business files which are unchanged according to the resource updating strategy to create an updating resource package, combining the resource updating package to create a resource updating request, and sending the resource updating request to the client for subsequent resource updating processing operation.
Along the above example, the J game maintainer submits a resource update instruction, determines that the file to be updated is a bundle_1 file, and the added file is a bundle_2 file, and the unchanged files are bundle_3 to bundle_n files, then creates an update resource package by combining the bundle_1 file to the bundle_n file, creates a resource update request based on the update resource package, and sends the resource update request to each client side installed with the J game, so that the client side can determine the updated content and related files, thereby facilitating the subsequent update processing operation.
In summary, by creating an update resource package based on a resource update policy, the comprehensiveness of the update resource package can be ensured, and a resource update request can be created based on the comprehensiveness, so that the client can be clearly informed of the update content related to the current resource update, thereby improving the resource update efficiency.
Furthermore, the file updating information is the basis of downloading the target resource package by the subsequent client by using less network resources, 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 parsing the resource update request; reading the historical resource package corresponding to the historical version according to the resource updating information; processing a history service file contained in the history resource package according to a preset resource package processing algorithm to obtain history index information, and determining update index information corresponding to the update resource package; and comparing the historical index information with the updated index information, and determining the file updated information according to index information comparison results.
Specifically, the resource update information is information indicating a certain historical resource package, and can determine the historical resource package to which the service file to be updated belongs; which may include an identification of the resource package correspondence that needs to be updated. Correspondingly, the historical version specifically refers to the version corresponding to the resource package which needs to be updated. Correspondingly, the resource package processing algorithm specifically refers to an algorithm capable of processing the history business files in the history resource package; for example, according to a suffix ordering algorithm, processing the history service file contained in the history resource package to obtain the history index information; or processing the history service file contained in the history resource package according to a hash algorithm to obtain the history index information. Namely, the resource package processing algorithm can convert each history service file into a unique corresponding character string index; correspondingly, the history index information is the character string index corresponding to each history service file. Correspondingly, the update index information specifically refers to an index character string corresponding to the update service file contained in the update resource package.
It should be noted that, the determining process of updating the index information is the same as the determining process of the history index information; namely: when the history index information is obtained through the hash algorithm, updating the index information is also obtained through the hash algorithm; therefore, when the subsequent comparison is carried out, the file updating information can be determined according to the index information with the same dimension.
Based on the above, after receiving the resource update request, the client can analyze the resource update request to obtain the resource update information so as to ensure that accurate file update information is created; then, according to the resource updating information, reading a history resource package corresponding to the history version, and according to a preset resource package processing algorithm, processing history service files contained in the history resource package to obtain history index information corresponding to each history service file; and determining update index information corresponding to each update service file in the update resource package, determining the same index information by comparing the historical index information with the update index information, removing the same index information, and determining the rest index information corresponding to the service file to be downloaded, and determining file update information.
In addition, when the update index information is determined, the update index information can be finished in advance by the server, namely, when the server determines the update resource package, namely, each update service file in the update resource package is processed so as to determine the update index information of each update service file, and the update index information is written into a resource update request and sent 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 history index information, the client requests the server for updating the index information, and informs the server of adopting a resource packet processing algorithm when the client requests the client, so that the server can feed back the updated index information in a targeted manner. In practical application, the method for determining the updated index information may be determined according to the practical application scenario, and the embodiment is not limited in any way.
In conclusion, the file updating information is determined by adopting an index information comparison mode, so that the determination accuracy of the file updating information is effectively ensured, the service file required by the client can be accurately positioned, and the targeted updating processing operation of the file is realized.
Further, when comparing index information, in order to ensure that file update information is accurately determined based on a comparison result, a comparison may be performed based on a file, in this embodiment, the client is further configured to determine at least one sub-history index information in the history index information, and determine at least one sub-update index information in the update index information; determining an index information association relationship based on the at least one sub-history index information and the at least one sub-update index information; and determining the index information comparison result according to the index information association relation.
Specifically, the sub-history index information specifically refers to a character string index corresponding to each history service file in the history 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 the association relation between the historical service files and the updated service files with the same file content, and is used for representing that file formats and contents of the historical service files and the updated service files are corresponding, and the service files with differences can be determined through the association relation, so that the service files which need to be updated by the client can be determined.
Based on the above, after the history index information and the update index information are obtained, sub-history index information corresponding to each history service file can be determined in the history index information, and sub-update index information corresponding to each update service file can be determined in the update index information; then comparing the two, and determining an index information association relation according to the comparison result, namely associating the index information with the association relation; and finally, determining index information without connection according to the index association relation, and using the index information for creating file updating information subsequently.
In conclusion, the index information comparison result is determined in a comparison mode, so that the file updating information determined based on the index information comparison result can be ensured to be more accurate, and the subsequent rapid and efficient completion of resource updating operation is supported.
Further, after receiving the file update information, the server performs a creation processing operation of the target resource package according to the file update information, and in this embodiment, the server is further configured to read a difference service file and a new 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 new service file respectively; and determining the updated service file according to the difference service file and the newly added service file.
Specifically, the difference service file is a service file which is determined according to file update information and needs to update a history service file existing in the client; correspondingly, the newly added service file specifically refers to a service file which does not exist at the client and needs to be downloaded to the client for use.
Based on the above, 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 end can provide 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 package according to the update service file; index information corresponding to the difference service file and the newly added service file is respectively determined, so that the subsequent updating processing operation can be conveniently performed according to the index information; and determining the updated service file by combining the difference service file and the newly added service file, so as to realize the subsequent construction of the target resource package.
To sum up, in order to ensure that fewer network resources are utilized to complete the transmission of the resource package, the server side can read the update resource package according to the file update information, so as to screen out the difference service file and the newly added service file which need to be transmitted to the client side, thereby supporting the client side to perform the update processing operation in a targeted manner.
Further, 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, the client may complete the updating process by considering that the target resource package includes a new service file and a difference service file, so that the writing position needs to be positioned according to index information; 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 refers to a local storage position of the newly added service file and the difference service file written into the client, and is used for completing the update processing operation under the condition of not damaging the running environment of the application program. Based on the above, after the client receives the target resource packet fed back by the 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 this time, the client can locate the file writing positions corresponding to the newly added service file and the difference service file respectively according to the index information, and finally write the newly added service file and the difference service file into the designated 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.
Along the above example, the history resource package includes 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_sm 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 H2 … corresponding to the file bundle_2 and a hash value Hn corresponding to the file bundle_n; and then comparing the hash value corresponding to the file in the historical resource packet with the hash value corresponding to the file in the updated resource packet, and determining that the hash value H1 and the hash value H2 are not matched with the hash value corresponding to the historical resource packet 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, 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 an updating resource packet according to the file updating information to serve as updating service files; and determining index information index_1 corresponding to the file bundle_1 and index information index_2 corresponding to the file bundle_2, obtaining a target resource package by integrating the file bundle_1 and the file bundle_2 and the index information index_1 and the index_2, and sending the target resource package to the CDN server.
Furthermore, the client can obtain the file bundle_1 and the file bundle_2, and index information index_1 and index_2 by requesting the CDN server, downloading the target resource package uploaded by the server and analyzing the target resource package; then determining the position of the file bundle_1 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 by 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 designated positions according to the index information, so that the update of the J game is completed.
In conclusion, by performing writing processing operation on the newly added service file and the difference service file based on the index information, the accuracy of the writing position can be ensured, and meanwhile, the service file updating processing operation can be completed rapidly, so that the resource updating efficiency is improved.
In addition, considering that the client only writes in the newly added service file and the difference service file when updating the service file, the client needs to adjust the original update mechanism.
Specifically, the policy adjustment request specifically refers to a request for adjusting a client update mechanism; correspondingly, the update adjustment strategy specifically refers to a strategy for updating only the required business files. Accordingly, 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 specifically refers to policy adjustment completion information sent to the client.
Based on this, in order to be able to support the client to complete the update of the application only by updating the required service files. The method can actively send the strategy adjustment request to the client by the server, 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 according to the adjustment result. So as to realize the subsequent updating processing operation of the business file according to the new strategy.
In conclusion, by adjusting the policy, the client can be supported to only download the required service files, so that network resources can be saved, consumption of computing resources can be saved, and resource updating efficiency is ensured.
After the client receives the resource updating request issued by the server, the resource processing system can firstly determine a historical resource package according to the request, and determine file updating information to be sent to the server by processing the historical resource package; at this time, the server side can read the update service file and index information according to the file update information, and a target resource package which only needs to be updated by the client side is created by combining the update service file and the index information; and finally, the client downloads the target resource package from the server to update the local historical resource package, so that the service file which needs to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, thereby greatly reducing the consumption of network resources, saving the computing resource of the client for additionally processing the unchanged file, and improving the file updating efficiency.
Corresponding to the above embodiment, the present embodiment further provides a resource processing method, where fig. 2 shows a processing flow chart of the resource processing method applied to a game scenario provided in an embodiment of the present application, and specifically includes the following steps:
step S202, the server determines a resource update strategy according to the resource update instruction, and creates an update resource package corresponding to the update version according to the resource update strategy.
In step S204, the server creates a resource update request according to the update resource package, and sends the resource update request to the client.
In step S206, the client receives the resource update request, and obtains the resource update information by analyzing the resource update request.
Step S208, the client reads the history resource package corresponding to the history version according to the resource updating information, and processes the history service file in the history resource package according to the hash algorithm to obtain the history index information.
In step S210, the client determines update index information corresponding to the update resource package, determines at least one sub-history index information in the history index information, and determines at least one 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 sub-history index information and the at least one 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.
In step S216, the server reads the difference service file and the newly added service file from 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 them, 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 the newly added service file, the difference service file and the index information.
In step S222, the client determines writing positions corresponding to the newly added service file and the difference service file respectively according to the index information.
In step S224, the client writes the newly added service file and the difference service file into the designated positions according to the file writing positions, thereby completing the update of the history resource package.
In summary, after the client receives the resource update request issued by the server, the historical resource package may be determined according to the request, and the historical resource package is processed to determine the file update information and send the file update information to the server; at this time, the server side can read the update service file and index information according to the file update information, and a target resource package which only needs to be updated by the client side is created by combining the update service file and the index information; and finally, the client downloads the target resource package from the server to update the local historical resource package, so that the service file which needs to be updated is downloaded in a targeted manner under the condition that the unchanged file is not processed, thereby greatly reducing the consumption of network resources, saving the computing resource of the client for additionally processing the unchanged file, and improving the file updating efficiency.
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 by an embodiment of the present application. As shown in fig. 3, the method is applied to a client, and includes:
step S302, a resource update request issued by a server is received, and a history resource package corresponding to the resource update request is determined;
step S304, processing the history resource package according to the resource update request, obtaining file update information and sending the file update information to the server;
step S306, a target resource package is downloaded in response to the resource update request, and the historical resource package is updated according to index information in the target resource package; and the target resource package is issued to the client by the server according to the file updating information.
In an alternative embodiment, a target resource package is downloaded in a content distribution network in response to the resource update request, and the historical 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 alternative embodiment, the resource update information is obtained by parsing the resource update request; reading a history resource package corresponding to the history version according to the resource updating information; processing a history service file contained in a history resource package according to a preset resource package processing algorithm to obtain history index information, and determining update index information corresponding to the update resource package; and comparing the historical index information with the updated index information, and determining file updating information according to the index information comparison result.
In an alternative embodiment, at least one sub-history index information is determined in the history index information, and at least one sub-update index information is determined in the update index information; determining an index information association relationship based on the at least one sub-history index information and the at least one sub-update index information; and determining an index information comparison result according to the index information association relation.
In an optional embodiment, analyzing the target resource package 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 alternative embodiment, the history service files contained in the history resource package are processed according to a suffix ordering algorithm to obtain history index information; or processing the history service file contained in the history resource package according to the hash algorithm to obtain history index information.
In an optional embodiment, a policy adjustment request sent by the server is received, the local update policy is adjusted according to the 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 an exemplary scheme of a resource processing method of the present 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 conception, and details of the technical solution of the resource processing method, which are not described in detail, can be referred to the description of the technical solution of the resource processing system. Furthermore, the components in the apparatus embodiments should be understood as functional blocks that must be established to implement the steps of the program flow or the steps of the method, and the functional blocks are not actually functional partitions or separate limitations. The device claims defined by such a set of functional modules should be understood as a functional module architecture for implementing the solution primarily by means of the computer program described in the specification, and not as a physical device for implementing the solution primarily by means of hardware.
Corresponding to the system embodiment, the present application further provides an embodiment of a resource processing method applied to the server, and fig. 4 shows a flowchart of a resource processing method provided by an embodiment of the present application. As shown in fig. 4, the method is applied to a server, and includes:
step S402, receiving file update information fed back by a client for a resource update request;
step S404, reading the update resource package associated with the resource update request according to the file update information to obtain an update service file and index information;
step S406, creating a target resource package based on the update service file and the index information.
In an alternative embodiment, a target resource package is created based on the update service file and the index information and uploaded to a content distribution network.
In an alternative embodiment, a resource update instruction is received, and a resource update strategy is determined according to the resource update instruction; creating an update resource package corresponding to the update version according to the resource update strategy; a resource update request is created based on the update resource package and sent to the client.
In an optional embodiment, reading a difference service file and a new service file in an update resource package according to file update information, and determining index information corresponding to the difference service file and the new service file respectively; and determining an updating service file according to the difference service file and the newly added service file.
The above is an exemplary scheme of a resource processing method of the present 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 conception, and details of the technical solution of the resource processing method, which are not described in detail, can be referred to the description of the technical solution of the resource processing system. Furthermore, the components in the apparatus embodiments should be understood as functional blocks that must be established to implement the steps of the program flow or the steps of the method, and the functional blocks are not actually functional partitions or separate limitations. The device claims defined by such a set of functional modules should be understood as a functional module architecture for implementing the solution primarily by means of the computer program described in the specification, and not as a physical device for implementing the solution primarily by means of hardware.
Corresponding to the above system embodiment, the present application further provides another embodiment of a resource processing system, and fig. 5 shows a schematic structural diagram of another resource processing system provided in an embodiment of the present application. As shown in fig. 5, the system 500 includes a server 510 and a client 520.
A server 510 configured to determine an update resource package and a history resource package according to the resource update request; determining file updating information by comparing the updating resource package with the history resource package; reading an update service file and index information in the update resource package according to the file update information; creating at least one resource package according to the update 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 update 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 another resource processing system provided in this embodiment is similar to the description content of the resource processing system provided in the above embodiment, and the same or corresponding content may refer to the corresponding content in the above embodiment, which is not limited in any way herein.
In the another resource processing system provided in this embodiment, after the server side completes creation of the update resource package, in order to enable each client side to acquire the resource package according to local requirements and reduce acquisition of the redundant resource package, the difference between the update resource package and each historical resource package can be determined by comparing all historical resource packages which can be queried by the server with the update resource package, so that a service file which needs to be updated by each historical resource package is determined according to the difference, and based on the difference, the update service file and index information corresponding to each historical resource package are combined, a resource package which can update each historical resource package is created, so that each client side can determine a target resource package which is needed according to the locally stored historical resource package and request downloading to update the local resource package, thereby achieving the purpose of purposefully updating resources and saving network resources.
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 of the J game which can be continuously run by the client are determined, namely, a historical resource package 1 corresponding to the version 1, a historical resource package 2 corresponding to the version 2 and a historical resource package 3 corresponding to the version 3, namely, the client can also maintain the game running by installing the historical resource packages 1-3. To enable clients to experience updated gaming services, an update resource package is created that contains files bundle_1 through bundle_n.
Further, considering that the update resource package includes part of the service files related to the historical resource package 1-3, if the full update needs to consume more network resources of the client for downloading, the update process is longer, so as to reduce the consumption of 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 update resource package may be calculated.
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 a hash value H1-n corresponding to the file bundle_1-2; 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 corresponding to the file bundle_2-2; 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 corresponding to the file bundle_3-2.
At this time, the hash value corresponding to the file in the history resource packet 1 may be compared with the hash value corresponding to the file in the updated resource packet, and if it is determined that the hash value H8, the hash value H9, and the hash value H20 do not match with the hash value corresponding to the history resource packet 1 according to the comparison result, it is indicated 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 side where the history resource packet 1 is installed. Further, the 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 according to the file update information to serve as update service files; 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, integrating the file and the index information, obtaining a resource package 1 corresponding to the historical resource package 1, and sending the resource package 1 to the CDN server.
Similarly, the hash value corresponding to the file in the historical resource packet 2 is compared with the hash value corresponding to the file in the updated resource packet, and if the hash value H9 and the hash value H20 are not matched with the hash value corresponding to the historical resource packet 2 according to the comparison result, the file bundle_9 corresponding to the hash value H9 and the file bundle_20 corresponding to the hash value H20 are not existed in the client side for installing the historical resource packet 2. Further, the 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 according to the file update information to serve as update service files; and determining index information index_9 and index_20 corresponding to the file bundle_9 and the file bundle_20, integrating the file and the index information, obtaining a resource package 2 corresponding to the historical resource package 2, and sending the resource package 2 to the CDN server.
Similarly, the hash value corresponding to the file in the history resource package 3 is compared with the hash value corresponding to the file in the updated resource package, 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, the file bundle_20 corresponding to the hash value H20 is indicated to be not present in the client side for installing the history resource package 3. Further, the file update information corresponding to the history resource package 3 can be determined according to the file bundle_20, and after the J game server determines the file update information corresponding to the history resource package 3, the file bundle_20 can be read in the update resource package according to the file update information to serve as an update service file; and determining index information index_20 corresponding to the file bundle_20, integrating the file and the index information to obtain a resource package 3 corresponding to the history resource package 3, and sending the resource package 3 to the CDN server.
On the basis, when the client 1 corresponding to the history resource package 1 needs to update the locally installed J game, the CDN server can request to download the resource package 1 as a target resource package, the target resource package is analyzed to obtain a file bundle_8, a file bundle_9 and a file bundle_20, index information index_8, index_9 and index_20, and then the position where the file bundle_8 needs to be written into the file bundle_S8 is determined according to the index information index_8, index_9 and index_20, and new file writing positions need to be created for the file bundle_9 and the file bundle_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 that the update of the J game is completed.
In the another resource processing system provided in this embodiment, after the server side completes creation of the update resource package, in order to enable each client side to acquire the resource package according to local requirements and reduce acquisition of the redundant resource package, the difference between the update resource package and each historical resource package can be determined by comparing all historical resource packages which can be queried by the server with the update resource package, so that a service file which needs to be updated by each historical resource package is determined according to the difference, and based on the difference, the update service file and index information corresponding to each historical resource package are combined, a resource package which can update each historical resource package is created, so that each client side can determine a target resource package which is needed according to the locally stored historical resource package and request downloading to update the local resource package, thereby achieving the purpose of purposefully updating resources and saving network resources.
Fig. 6 illustrates a block diagram of a computing device 600 provided in accordance with an embodiment of the present application. The components of computing device 600 include, but are not limited to, memory 610 and processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to hold 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. The 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 illustrated in FIG. 6 is for exemplary purposes only and is not intended to limit 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., smart phone), wearable computing device (e.g., smart watch, smart glasses, 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 processing method when executing computer-executable instructions.
The foregoing is a schematic illustration of a computing device of this 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 of the technical solution of the computing device, which are not described in detail, 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 that, when executed by a processor, are used in the resource processing method.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the resource processing method belong to the same concept, and details of the technical solution of the storage medium which are not described in detail 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 storing a computer program which, when executed by the chip, implements the steps of the resource processing method.
The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can 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 are also possible or may be advantageous.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all necessary for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The above-disclosed preferred embodiments of the present application are provided only as an aid to the elucidation of the present application. Alternative embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the teaching of this application. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. This application is to be limited only by the claims and the full scope and equivalents thereof.

Claims (15)

1. A resource processing system, comprising:
the client is configured to receive a resource update request issued by the server and determine a historical resource package corresponding to the resource update request; processing the historical resource package according to the resource update request to obtain file update information and sending the file update information to the server, wherein the resource update request refers to a request which is issued by the server and needs to update part of resources in an application program installed on the client, and the file update information refers to information which determines that a historical service file in the historical resource package needs to be updated according to the resource update request;
the server side is configured to read the update resource package associated with the resource update request according to the file update information to obtain an update service file and index information; creating a target resource package based on the update service file and the index information, wherein the index information refers to an index corresponding to the update service file and is used for informing a client that each update service file needs to be written in a position;
the client is further configured to respond to the resource update request to download the target resource package, and update the historical resource package according to the index information in the target resource package;
The client is further configured to obtain resource update information by analyzing the resource update request; and reading the historical resource package corresponding to the historical version according to the resource updating information, wherein the resource updating information is information indicating the historical resource package and is used for determining the historical resource package to which the business file needing to be updated belongs.
2. The system of claim 1, wherein the server is further configured to receive a resource update instruction, and determine a resource update policy based on the resource update instruction; creating the updated resource package of the corresponding updated version according to the resource updating strategy; and creating the resource update request based on the update resource package and sending the resource update request to the client.
3. The system of claim 1, wherein the client is further configured to process a history service file included in the history resource package according to a preset resource package processing algorithm, obtain history index information, and determine update index information corresponding to the update resource package; and comparing the historical index information with the updated index information, and determining the file updated information according to index information comparison results.
4. The system of claim 3, wherein the client is further configured to determine at least one sub-history index information in the history index information and at least one sub-update index information in the update index information; determining an index information association relationship based on the at least one sub-history index information and the at least one 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 new 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 new service file, respectively; and determining the updated service file according to the difference service file and the newly added service file.
6. The system of claim 5, wherein 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.
7. The system of claim 3, wherein the client is further configured to process the historical business files contained in the historical resource package according to a suffix ordering algorithm to obtain the historical index information; or processing the history service file contained in the history resource package according to a hash algorithm to obtain the history index information.
8. The system of 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 update service file and the index information and upload to a content distribution network;
the client is further configured to download the target resource package in the content distribution network in response to the resource update request.
10. A method for processing resources, applied to a client, comprising:
Receiving a resource update request issued by a server side, and determining a historical resource package corresponding to the resource update request, wherein the resource update request refers to a request issued by the server side for updating part of resources in an application program installed on a client side;
processing the historical resource package according to the resource update request to obtain file update information and sending the file update information to the server, wherein the file update information refers to information which is required to be updated by determining a historical service file in the historical resource package according to the resource update request;
downloading a target resource package in response to the resource update request, and updating the historical resource package according to index information in the target resource package; the target resource package is issued to the client by the server according to the file update information, wherein the index information 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 in a position;
wherein the determining the historical resource package corresponding to the resource update request includes: analyzing the resource updating request to obtain resource updating information; and reading the historical resource package corresponding to the historical version according to the resource updating information, wherein the resource updating information is information indicating the historical resource package and is used for determining the historical resource package to which the business file needing to be updated belongs.
11. The resource processing method is characterized by being applied to a server and comprising the following steps:
receiving file update information fed back by a client side aiming at a resource update request;
reading an update resource package associated with the resource update request according to the file update information to obtain an update service file and index information, wherein the file update information refers to information which is required to be updated for the history service file in the history resource package according to the resource update request, and the resource update request refers to a request which is issued by a server and is required to update part of resources in an application program installed on a client; the determining the historical resource package corresponding to the resource update request comprises the following steps: analyzing the resource updating request to obtain resource updating information; reading the historical resource package corresponding to the historical version according to the resource updating information, wherein the resource updating information is information indicating a certain historical resource package and is used for determining the historical resource package to which the business file to be updated belongs;
and creating a target resource package based on the updated service file and the index information.
12. A resource processing system, comprising:
The server side is configured to determine an updated resource package and a historical resource package according to the resource update request; determining file update information by comparing the update resource package with the history resource package, wherein the resource update request refers to a request issued by a server for updating part of resources in an application program installed by a client, and the file update information refers to information for determining that a history service file in the history resource package needs to be updated according to the resource update request; reading an update service file and index information in the update resource package according to the file update information; creating at least one resource package according to the update service file and the index information; the index information is an index corresponding to the update service files and is used for informing the client that each update service file needs to be written in a position;
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 index information in the target resource package, wherein the target resource package belongs to the at least one resource package;
the client is further configured to obtain resource update information by analyzing the resource update request; and reading the historical resource package corresponding to the historical version according to the resource updating information, wherein the resource updating information is information indicating the historical resource package and is used for determining the historical resource package to which the business file needing to be updated belongs.
13. The system of claim 12, wherein the server is further configured to create at least one resource package from the update service file and the index information and upload 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 for storing computer executable instructions, the processor being for executing 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, implement the steps of the method of claim 10 or 11.
CN202210642358.9A 2022-06-08 2022-06-08 Resource processing system and method Active CN114900478B (en)

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 CN114900478A (en) 2022-08-12
CN114900478B true 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 (9)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11616839B2 (en) * 2019-04-09 2023-03-28 Johnson Controls Tyco IP Holdings LLP Intelligent edge computing platform with machine learning capability

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
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)

* Cited by examiner, † Cited by third party
Title
Training Compact Models for Low Resource Entity Tagging using Pre-trained Language Models;Peter Izsak等;《 2019 Fifth Workshop on Energy Efficient Machine Learning and Cognitive Computing - NeurIPS Edition (EMC2-NIPS)》;20210629;全文 *
基于微服务构建模型的应用系统增量更新算法;黄林;杨军;徐亮亮;;计算机与现代化;20180215(第02期);全文 *

Also Published As

Publication number Publication date
CN114900478A (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN109756581B (en) File transmission system and method, computing device and storage medium
US9282137B2 (en) Dynamic package creation for predictive page load optimization
EP2296092A1 (en) Application catalog on an application server for wireless devices
WO2021051747A1 (en) Data update method, system and device, electronic device, and computer storage medium
CN110413673B (en) Database data unified acquisition and distribution method and system
AU2020223891A1 (en) Server-based segmentation of subscriber information and content format conversion for targeted content provision
CN111404990A (en) File transmission method, device, client and storage medium
CN109358833B (en) Audio playing method and system, computing device and storage medium
CN111597213A (en) Caching method, software server and storage medium
CN113190254A (en) Updating method and device
CN112642146A (en) Data processing method and device
CN116048673A (en) Service processing method and platform
CN114900478B (en) Resource processing system and method
CN113992662A (en) File transmission method, device and storage medium
CN107153574A (en) Picture code-transferring method and system
CN114385596A (en) Data processing method and device
CN112949326B (en) Information query method, device, equipment and computer readable medium
CN112953993B (en) Resource scheduling method, equipment, network system and storage medium
US20220070750A1 (en) Information processing device, information processing method, and program
CN113296750A (en) Function creating method and system, and function calling method and system
US11095748B1 (en) Network-based content rendering
US10878187B1 (en) Network-based content rendering
WO2019046371A1 (en) Predictive system for selecting groups of users in connection with a network service
CN114363640B (en) Data storage method, device and system
CN111240869B (en) Cache processing method and device

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