Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
CN118767438A - Resource updating method and device, storage medium and electronic device - Google Patents
[go: Go Back, main page]

CN118767438A - Resource updating method and device, storage medium and electronic device - Google Patents

Resource updating method and device, storage medium and electronic device Download PDF

Info

Publication number
CN118767438A
CN118767438A CN202310392208.1A CN202310392208A CN118767438A CN 118767438 A CN118767438 A CN 118767438A CN 202310392208 A CN202310392208 A CN 202310392208A CN 118767438 A CN118767438 A CN 118767438A
Authority
CN
China
Prior art keywords
resource set
resources
target
memory
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310392208.1A
Other languages
Chinese (zh)
Inventor
翟龙城
池育龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202310392208.1A priority Critical patent/CN118767438A/en
Publication of CN118767438A publication Critical patent/CN118767438A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/552Details of game data or player data management for downloading to client devices, e.g. using OS version, hardware or software profile of the client device

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种资源更新方法和装置、存储介质及电子设备。其中,该方法包括:从数据库服务器上获取更新资源集合,其中,更新资源集合包括目标应用的更新资源;将更新资源集合存储到处于运行状态的应用服务器的内存中,其中,应用服务器是目标应用的服务器;在内存中已存储了当前资源集合的情况下,使用内存中存储的更新资源集合对当前资源集合执行更新操作,得到目标资源集合,其中,当前资源集合包括应用服务器已获取到的、且允许目标应用的客户端访问的资源,目标资源集合中的资源是应用服务器上更新后的、且允许目标应用的客户端访问的资源。本发明解决了资源更新的效率较低的技术问题。

The present invention discloses a resource update method and device, a storage medium and an electronic device. The method comprises: obtaining an update resource set from a database server, wherein the update resource set includes update resources of a target application; storing the update resource set in the memory of an application server in operation, wherein the application server is a server of the target application; when the current resource set is stored in the memory, using the update resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set, wherein the current resource set includes resources that have been obtained by the application server and are allowed to be accessed by the client of the target application, and the resources in the target resource set are resources that have been updated on the application server and are allowed to be accessed by the client of the target application. The present invention solves the technical problem of low efficiency of resource update.

Description

Resource updating method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of servers, and in particular, to a method and apparatus for updating resources, a storage medium, and an electronic device.
Background
During development of an application (e.g., a game application), a developer may pre-allocate game-related resources by configuring current resources. The client and the server of the game application are respectively maintained with current resources for logic calculation and presentation.
In the case that the current resource has an update or modifies the content, in the related art, the update manner of the current resource in the server and the client may involve multiple complex processes of client packaging and publishing, client downloading the updated resource, server resource packaging, server process reloading, and so on.
In detail, the server needs to download the updated resources first, restart the loading, read the updated resources, and the player downloads the latest resources through the update client. In this way, there is a disadvantage that the update process is complicated, and there is a risk of a certain update failure, and the time cost and the labor cost consumed in the update process are also large.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a resource updating method and device, a storage medium and electronic equipment, which are used for at least solving the technical problem of low resource updating efficiency.
According to an aspect of an embodiment of the present invention, there is provided a resource updating method, including: acquiring an update resource set from a database server, wherein the update resource set comprises update resources of a target application; storing the updated resource set into a memory of an application server in an operating state, wherein the application server is a server of the target application; and under the condition that the current resource set is stored in the memory, performing updating operation on the current resource set by using the updated resource set stored in the memory to obtain a target resource set, wherein the current resource set comprises resources which are acquired by the application server and are allowed to be accessed by the client of the target application, and the resources in the target resource set are updated on the application server and are allowed to be accessed by the client of the target application.
According to another aspect of the embodiment of the present invention, there is also provided a resource updating apparatus, including: the first acquisition unit is used for acquiring an update resource set from the database server, wherein the update resource set comprises update resources of the target application; the first storage unit is used for storing the updated resource set into a memory of an application server in an operating state, wherein the application server is a server of the target application; and the first execution unit is used for executing updating operation on the current resource set by using the updated resource set stored in the memory under the condition that the current resource set is stored in the memory to obtain a target resource set, wherein the current resource set comprises resources which are acquired by the application server and are allowed to be accessed by the client of the target application, and the resources in the target resource set are updated on the application server and are allowed to be accessed by the client of the target application.
Optionally, the first execution unit includes: and the first execution module is used for executing updating operation on the current resource set by using the updated resource set stored in the memory under the condition that the use of the resources in the current resource set is detected to be needed, so as to obtain a target resource set.
Optionally, the first execution module is configured to include: under the condition that the resources in the current resource set are accessed by the client of the target application, updating the current resource set by using the updated resource set stored in the memory to obtain a target resource set; or under the condition that the resources in the current resource set are called by the application server, updating the current resource set by using the updated resource set stored in the memory to obtain a target resource set.
Optionally, the first execution module is further configured to: and under the condition that the current resource set comprises a plurality of types of resources, the resources of a target type in the plurality of types are detected to be used, and the updated resource set stored in the memory and the current resource set both comprise the resources of the target type, updating the resources of the target type in the current resource set by using the resources of the target type in the updated resource set stored in the memory to obtain a target resource subset, wherein the target resource subset is used for replacing the resources of the target type in the current resource set, and the resources in the target resource subset are the resources of the target type which are allowed to be accessed by a client of the target application.
Optionally, the apparatus further includes: a first configuration unit, configured to configure an execution trigger condition of the update operation to execute the update operation under a condition that it is detected that a resource in the current resource set needs to be used, when a number of times that the resource stored in the memory that allows the client of the target application to access is updated is greater than or equal to a preset first time threshold and a number of times that the resource stored in the memory that allows the client of the target application to access is accessed is less than a preset second time threshold; or a second configuration unit, configured to configure an execution trigger condition of the update operation to execute the update operation under a condition that it is detected that the resources in the current resource set need to be used, when the frequency of the resources stored in the memory that allow the client of the target application to access are updated is greater than or equal to a preset first frequency threshold and the frequency of the resources stored in the memory that allow the client of the target application to access are accessed is less than a preset second frequency threshold.
Optionally, the first execution unit includes: and the second execution module is used for executing updating operation on the current resource set by using the updated resource set stored in the memory before detecting that the resources in the current resource set need to be used, so as to obtain a target resource set.
Optionally, the apparatus further includes: a third configuration unit, configured to configure an execution trigger condition of the update operation to execute the update operation before detecting that the use of the resource in the current resource set is required, where the number of times the stored resource in the memory that allows the client of the target application to access is updated is less than a preset third number of times threshold, and the number of times the stored resource in the memory that allows the client of the target application to access is greater than or equal to a preset fourth number of times threshold; or a fourth configuration unit, configured to configure an execution trigger condition of the update operation to execute the update operation before detecting that the use of the resource in the current resource set is required, where the frequency of the resource stored in the memory that allows the client of the target application to access is updated is less than a preset third frequency threshold, and the frequency of the resource stored in the memory that allows the client of the target application to access is greater than or equal to a preset fourth frequency threshold.
Optionally, the method comprises the following steps: the first acquisition unit includes: a first obtaining module, configured to obtain an updated full resource set from the database server, where the full resource set includes updated resources that allow access by a client of the target application; the first execution unit includes: and the replacing module is used for replacing the current resource set by using the full resource set stored in the memory under the condition that the full resource set is acquired from the database server.
Optionally, the first obtaining unit includes: a second obtaining module, configured to obtain an updated incremental resource set from the database server, where the incremental resource set includes updated resources from resources that allow the client of the target application to access; the first execution unit includes: and the third execution module is used for executing updating operation on resources corresponding to the incremental resource set in the current resource set by using the incremental resource set stored in the memory under the condition that the incremental resource set is acquired from the database server.
Optionally, the apparatus further includes: and the determining unit is used for determining the updated resource set in the memory as the resource which is acquired by the application server and is allowed to be accessed by the client of the target application under the condition that the current resource set is not stored in the memory.
Optionally, the apparatus further includes: a first sending unit, configured to send the updated resource set to the client, where the client is configured to perform an update operation on the current resource set on the client using the updated resource set; or a second sending unit, configured to send the target resource set to the client, where the client is configured to perform an update operation on the current resource set on the client using the target resource set.
According to an aspect of the embodiment of the present invention, there is also provided another resource updating method, including: acquiring an update resource set from an application server, wherein the update resource set comprises update resources of a target application, and the application server is a server of the target application; storing the updated resource set into a memory of a target client in an operating state, wherein the target client is a client of the target application; and under the condition that the current resource set is stored in the memory, performing updating operation on the current resource set by using the updated resource set stored in the memory to obtain a target resource set, wherein the current resource set comprises resources which are acquired by the target client and allowed to be displayed on the target client, and the resources in the target resource set are updated resources on the target client and allowed to be displayed on the target client.
According to another aspect of the embodiment of the present invention, there is further provided a resource updating apparatus, including: a second obtaining unit, configured to obtain an update resource set from an application server, where the update resource set includes an update resource of a target application, and the application server is a server of the target application; the second storage unit is used for storing the updated resource set into a memory of a target client in an operation state, wherein the target client is a client of the target application; and the second execution unit is used for executing updating operation on the current resource set by using the updated resource set stored in the memory under the condition that the current resource set is stored in the memory to obtain a target resource set, wherein the current resource set comprises resources which are acquired by the target client and allowed to be displayed on the target client, and the resources in the target resource set are updated resources which are allowed to be displayed on the target client.
Optionally, the second execution unit includes: a fourth execution module, configured to, when it is detected that a resource in the current resource set needs to be used, execute an update operation on the current resource set using the updated resource set stored in the memory, to obtain a target resource set; or before detecting that the resources in the current resource set need to be used, using the updated resource set stored in the memory to execute updating operation on the current resource set to obtain a target resource set.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the above-described resource updating method when run.
According to yet another aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the resource updating method as above.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to execute the above-described resource updating method by the computer program.
In the embodiment of the invention, the current resource set in the application server can be updated by using the updated resource set stored in the memory of the application server under the condition that the application server is in an operation state, so that the situation that the server needs to load the updated resource first and then restart the server under the condition that the resource needs to be updated is avoided, and the updating of the resource in the server can be completed. The method and the device realize the dynamic updating of the resources in the server under the condition that the server is not restarted. Therefore, the technical effect of improving the efficiency of resource updating is achieved, and the technical problem that the efficiency of resource updating is low is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative resource update method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an alternative update of a set of resources in an application server in accordance with an embodiment of the application;
FIG. 3 is a flow chart of an alternative resource update method according to an embodiment of the application;
FIG. 4 is a schematic illustration of a current commodity resource in an alternative application according to an embodiment of the present application;
FIG. 5 is a schematic illustration of an updated commodity resource in an alternative application according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an alternative update operation performed on a set of current resources according to an embodiment of the application;
FIG. 7 is a schematic diagram of an alternative update of resources in a current set of resources in accordance with an embodiment of the application;
FIG. 8 is a schematic diagram II of an alternative update of resources in a current set of resources according to an embodiment of the application;
FIG. 9 is a schematic diagram of an alternative update of a target type of resource in a current set of resources, in accordance with an embodiment of the present application;
FIG. 10 is a schematic diagram I of an alternate configuration update operation execution trigger condition in accordance with an embodiment of the present application;
FIG. 11 is a second schematic diagram of an alternative execution trigger condition for configuring an update operation according to an embodiment of the present application;
FIG. 12 is a third schematic diagram of an alternative execution trigger condition for configuring an update operation in accordance with an embodiment of the application;
FIG. 13 is a schematic diagram I of an alternative acquisition target resource set in accordance with an embodiment of the application;
FIG. 14 is a second schematic diagram of an alternative acquisition target resource set according to an embodiment of the application;
FIG. 15 is a schematic diagram of an alternative determination of a set of resources in memory according to an embodiment of the application;
FIG. 16 is a schematic diagram of an alternative sending of a set of resources to a client, according to an embodiment of the application;
FIG. 17 is a second flow chart of an alternative resource update method according to an embodiment of the application;
FIG. 18 is a schematic diagram I of an alternative update of a current set of resources in a client, in accordance with an embodiment of the application;
FIG. 19 is a schematic diagram II of an alternative update of a current set of resources in a client, according to an embodiment of the application;
FIG. 20 is a schematic diagram of an alternative resource update in accordance with an embodiment of the application;
FIG. 21 is a schematic diagram of an alternative update of a current set of resources using an updated set of resources in accordance with an embodiment of the application;
FIG. 22 is a schematic diagram of an alternative application server merging an updated resource set with a current resource set in accordance with an embodiment of the present application;
FIG. 23 is a schematic diagram of an alternative update of a current resource set in a different scenario according to an embodiment of the present application;
FIG. 24 is a schematic diagram of an alternative resource updating device according to an embodiment of the present invention;
FIG. 25 is a second schematic diagram of an alternative resource updating device according to an embodiment of the present invention;
FIG. 26 is a schematic diagram of an alternative electronic device in accordance with an embodiment of the application;
FIG. 27 is a block diagram of the computer system of an alternative electronic device in accordance with an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in the course of describing the embodiments of the application are applicable to the following explanation:
Resource collection: the application planner defines resource allocation according to the attribute of various resources in the application, such as commodity resource allocation, hero resource allocation and other resources. The client and the server need to load the resource set to perform the calculation of the corresponding logic.
A data interface platform: a data interface bridge between the application internal and application peripheral operation support systems, which realizes the incremental modification and configuration of the data (such as prop, experience, ban, etc.) in the application.
And the management application is an operation website of the application, and planning and operation personnel can send a request to an application side server through a data interface platform by managing application requests and operating data in the application so as to realize interaction of application data.
Application side server: for completing the request parsing and processing services of the data interface platform. The third party platform requests and operates the data in the application, and the data needs to be processed through the application side server.
Application servers providing player account login functionality, lobby services, and role-based main business logic, among others. Services may be provided in a clustered manner, but are not limited to. After the player logs in, most of the critical data is cached on the application server. And write back to the database server regularly, the write back frequency can be configured, for example: 1 minute to 5 minutes. The requests of the client are mostly processed directly on the application server, and the other part is transmitted to other servers through the application server for further processing. The globally unique identification of the application server may be, but is not limited to, an id (Identity document, identification number) of the application server.
Database server: is a repository that organizes, stores and manages data according to a data structure.
SysCommDataDB: a system level general data table, a data table in a database server.
SysCommData System level general data. The intervention resource table is updated by configuring SysCommData data and storing SysCommDataDB.
Communication protocol: the client and the application server of the application agree on a communication protocol for the interactive content.
According to an aspect of the embodiment of the present invention, there is provided a resource updating method, optionally, as an optional implementation manner, the resource updating method may be applied, but not limited to, in the environment shown in fig. 1.
The application server may include, but is not limited to, a terminal device 104, an application side server 101, a database server 103, and an application server 102, where the terminal device 104 has a target application installed thereon. The resource updating process in the embodiment of the present application can be explained and illustrated by taking a target application as a game application, taking a resource as a commodity, and adding a commodity in the game application as an example. The planning of applications and operator configuration of goods in the game application that need to be added may be, but are not limited to, processed by the application side server 101 to obtain an updated resource set. The updated resource set is then written to the database server 103, and the application server 102 obtains the updated resource set from the database server 103.
As shown in fig. 2, the application server 102 includes a hard disk 102-1 and a memory 102-2, where the hard disk 102-1 and the memory 102-2 each store a current resource set, and updating the current resource set in the application server 102 may be implemented by, but is not limited to, the following steps:
102, acquiring an updated resource set from a database server 103, wherein the updated resource set comprises updated resources of a target application;
Step 104, storing the updated resource set into the memory 102-2 of the application server 102 in the running state, wherein the application server 102 is a server of the target application;
In step 106, in the case that the current resource set is already stored in the memory 102-2, the update resource set stored in the memory 102-2 is used to perform an update operation on the current resource set, so as to obtain a target resource set, where the current resource set includes the resources that have been acquired by the application server 102 and are allowed to be accessed by the client 104 of the target application, and the resources in the target resource set are the resources that have been updated on the application server 102 and are allowed to be accessed by the client 104 of the target application.
By the method, the current resource set in the application server can be updated by using the updated resource set stored in the memory of the application server under the condition that the application server is in an operating state, so that the situation that the server needs to load the updated resource before restarting the server under the condition that the updated resource is needed is avoided, and the updating of the resource in the server can be completed. The method and the device realize the dynamic updating of the resources in the server under the condition that the server is not restarted. Therefore, the technical effect of improving the efficiency of resource updating is achieved, and the technical problem that the efficiency of resource updating is low is solved.
Alternatively, in the present embodiment, the terminal device 104 may be a terminal device configured with a target client, and may include, but is not limited to, at least one of the following: a Mobile phone (such as an Android Mobile phone, an iOS Mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, an MID (Mobile INTERNET DEVICES, mobile internet device), a PAD, a desktop computer, a smart television, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, and the like. The network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: local area networks, metropolitan area networks, and wide area networks, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communications. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and is not limited in any way in the present embodiment.
Optionally, as an optional implementation manner, as shown in fig. 3, the resource updating method includes:
in step S302, an update resource set is obtained from a database server, where the update resource set includes update resources of a target application.
The target application may include, but is not limited to, a gaming application, a just-in-time communication application, or an audiovisual application, or a live application, or the like. Optionally, in the embodiment of the present application, the target application is taken as a game application for explanation and explanation, and resources in the game application may be, but not limited to, a plurality of configuration systems including commodity resources, prop resources, skin resources, task resources, activities, hero resources, and the like. Updating the resource set may include, but is not limited to, updating a configuration of the current resource, adding a resource set, deleting a resource set, and so forth.
Such as: for commodity resources in a gaming application, the updated configuration of the current resource may be, but is not limited to, the price of the current commodity in the mall of the gaming application, the time allowed to make the purchase, the maximum number of allowed purchases, the type of account allowed to make the purchase, and so forth. The newly added set of resources may include, but is not limited to, the price of the newly added item in the mall of the gaming application, the time allowed to make the purchase, the maximum number of allowed purchases, the type of account allowed to make the purchase, and the like. Deleting a set of resources may include, but is not limited to, items in a mall that need to be deleted, etc. including a gaming application.
Alternatively, the price in the configuration in which the update resource set is the current commodity resource in the update game application is explained and illustrated as an example in the embodiment of the present application, which may be, but is not limited to, applicable to the embodiment of the present application. The update resource set may be, but not limited to, a full resource set or an incremental resource set, or the like, and optionally, in the embodiment of the present application, the update resource set is explained and illustrated as a full resource set, which may be, but not limited to, applicable to the embodiment of the present application.
As shown in FIG. 4, the price in the mall, the remaining time to shelf or discount, etc. for a plurality of items in the total items are shown in the mall's preference column for the gaming application, such as: the remaining time for the product 1 was 701 days, the price thereof was 888 coupons, the remaining time for the product 2 was 701 days, the purchase preference thereof was 5.0 turns, the price of the product 3 was 10 coupons, the price of the product 4 was 888 coupons, the price of the product 5 was 266 coupons, the price of the product 6 was 666 coupons, the price of the product 7 was 888 coupons, and the price of the product 8 was 566 coupons.
The price of the current commodity 4 may not reach the effects expected by the planning and developer of the gaming application, such as: because of the higher price of commodity 4, the player of the gaming application will purchase commodity 4 at a lower rate, in which case the planning and operator of the gaming application may, but is not limited to, wish to adjust the price of commodity 4 in the gaming application from 888 to 366 coupons, as shown in fig. 5, in which case the planning and operator of the gaming application may, but is not limited to, configure the price of commodity 8 to 566 coupons via the data interface platform. The data interface platform may store the price of the item 8 after modification and the price or discount or remaining time to shelf of the items 1 to 7 without modification, etc. in the database server.
It should be noted that the data interface platform may also, but not be limited to, store only the related information of the commodity 8 with the update in the database server.
Step S304, storing the updated resource set in a memory of an application server in a running state, where the application server is a server of the target application.
The application server may be, but is not limited to, a server associated with the target application, as will be appreciated that the target application will be used by the application server during operation. In the case of an updated resource set obtained from a database server, the updated resource set may be stored in the memory of the application server, but is not limited to, in the case of an application server in an operational state.
It may be understood that, where the application server includes a hard disk and a memory, and the resources of the target application are not updated, the hard disk in the application server stores the current resource set, and the memory of the application server may or may not store the current resource set. Under the condition that the updated resource set is obtained from the database server, the updated resource set can be stored into the memory of the application server under the condition that the application server is in an operating state (for example, the server is started and is running), so that the current resource set in the hard disk of the application server is prevented from being updated. By the method, the update resource set is dynamically acquired under the condition that the application server is not restarted, the time required for manufacturing the update resource package of the server is greatly reduced, and the efficiency of acquiring the update resource set is improved.
Step S306, when the current resource set is already stored in the memory, performing an update operation on the current resource set by using the updated resource set stored in the memory, to obtain a target resource set, where the current resource set includes resources that have been acquired by the application server and are allowed to be accessed by the client of the target application, and the resources in the target resource set are resources that have been updated on the application server and are allowed to be accessed by the client of the target application.
In the embodiment of the present application, the current resource set may be, but is not limited to, being stored in the memory of the application server.
The method comprises the steps of obtaining an updated resource set from a database server, storing the updated resource set into a memory of an application server in an operating state, and performing updating operations on the current resource set by using the updated resource set stored in the memory in the case that the current resource set is stored in the memory of the application server, wherein the updating operations can include operations including adding resources, deleting resources, modifying configuration information of the resources and the like.
The method and the device can be applied to game applications, and resources are commodity resources, for example, commodity displayed in a mall of the game application is added, commodity displayed in the mall of the game application is deleted, configuration information of commodity displayed in the mall of the game application is modified, and the method and the device for updating the current resource set are explained and described by using the updated resource set stored in the memory in the implementation of the method and the device.
As shown in fig. 6, the operator and planner of the game may, but not limited to, configure the goods presented in the mall of the game application through the management application, which may, but not limited to, initiate a request to the application side server, which may, but not limited to, include in the package a xx_add_ GOODS _item_info_new_req command for indicating an added goods, or a xx_del_ GOODS _item_info_new_req command for indicating a deleted goods, or a xx_update_ GOODS _item_info_new_req command for indicating configuration information for modifying goods. The application side server may, but not limited to, respond to the request, and may, but not limited to, add, delete, or modify configuration information of the merchandise in the game application through the application side server 101, to obtain the updated resource set.
The application side server stores the updated resource set in the database server, and the application server obtains the updated resource set from the database server, and can perform update operations such as adding, deleting or modifying configuration information of the commodity and the like on the commodity in the current resource set of the game application by using the updated resource set stored in the memory.
It should be noted that, after the update operation is performed on the current resource set using the update resource set stored in the memory, the update resource set in the memory 102-2 may be deleted, or the update resource set may be retained in the memory 102-2 for incremental update to the client 104. In the embodiment of the present application, after performing an update operation on the current resource set using the updated resource set stored in the memory, the update resource set in the memory 102-2 is deleted for explanation.
By the method, the current resource set in the application server can be updated by using the updated resource set stored in the memory of the application server under the condition that the application server is in an operating state, so that the situation that the server needs to load the updated resource before restarting the server under the condition that the updated resource is needed is avoided, and the updating of the resource in the server can be completed. The method and the device realize the dynamic updating of the resources in the server under the condition that the server is not restarted. Therefore, the technical effect of improving the efficiency of resource updating is achieved, and the technical problem that the efficiency of resource updating is low is solved.
As an alternative, performing an update operation on the current resource set using the updated resource set stored in the memory to obtain a target resource set, including:
S11, under the condition that the use of the resources in the current resource set is detected, updating operation is carried out on the current resource set by using the updated resource set stored in the memory, and a target resource set is obtained.
In the case where there is more dynamic modification of resources in the current set of resources, but access to the resources in the current set of resources is infrequent, as shown in fig. 7, the update operation may be performed on the current set of resources using the updated set of resources stored in the memory 102-2 of the application server 102, but not limited to, in the case where a need to use the resources in the current set of resources is detected.
These updating operations may be, but are not limited to, operations to delete, modify, or add resources in the current set of resources. Such as: for the game application, the commodity in the mall of the game application is newly added, or the commodity in the mall of the game application is deleted, or the price of the commodity in the mall of the game application, the time of purchase permission, the maximum number of purchase permission, and the like are modified. For the video and audio application, the video which allows the user to access in the video and audio application is added, or the video which allows the user to access in the video and audio application is deleted, or the video which allows the user to access in the video and audio application is modified, etc. For the live application, the gift allowed to be sent out by the user in the live application may be newly added, or the gift allowed to be sent out by the user in the live application may be deleted, or the configuration information such as the price of the gift allowed to be sent out by the user in the live application, the maximum number of the gift allowed to be sent out by the user, the time of the gift allowed to be sent out by the user, etc. may be modified.
After the update operation is performed on the current resource set by using the updated resource set stored in the memory, the configuration information of part of the resources in the current resource set may be changed, the configuration information of all the resources in the current resource set may be changed, the resources in the current resource set may be increased or fewer, and so on. Such as: in the case that the price of the commodity a needs to be used, it may indicate that the update operation is triggered to be performed on the current resource set by using the update resource set stored in the memory, in this case, the update operation is performed on the current resource set by using the update resource set stored in the memory, and after the update is completed, the price of the commodity a may be updated or may not be changed.
As an alternative, in a case that it is detected that a resource in the current resource set needs to be used, performing an update operation on the current resource set using the updated resource set stored in the memory, to obtain a target resource set, including:
S21, under the condition that the resources in the current resource set are accessed by the client of the target application, updating the current resource set by using the updated resource set stored in the memory to obtain the target resource set; or alternatively
S22, under the condition that the resources in the current resource set are called by the application server, updating operation is carried out on the current resource set by using the updated resource set stored in the memory, and a target resource set is obtained.
The resources in the current set of resources may, but are not limited to, allowing access by the client of the target application, as shown in fig. 8, where the resources in the current set of resources are accessed by the client 104 of the target application, it may be indicated that the client 104 of the target application needs to use the resources in the current set of resources, such as: resources in the current set of resources need to be displayed on the client 104, in detail, for example: the merchandise in the merchandise resources in the gaming application need to be displayed on the client 104, in which case the update operation is performed on the current set of resources in the memory 102-2 using the updated set of resources stored in the memory 102-2.
The resources in the current set of resources may, but are not limited to, allow for invocation by the application server, where the resources in the current set of resources are invoked by the application server, may indicate that the application server needs to use the resources in the current set of resources, where an update operation is performed on the current set of resources in memory using the updated set of resources stored in memory.
As an alternative, in a case that it is detected that a resource in the current resource set needs to be used, performing an update operation on the current resource set using the updated resource set stored in the memory, to obtain a target resource set, including:
S31, when the current resource set comprises a plurality of types of resources and the condition that the resources of the target type in the plurality of types are needed to be used is detected, and the updated resource set stored in the memory and the current resource set comprise the resources of the target type, the resources of the target type in the current resource set are used for executing updating operation on the resources of the target type in the current resource set, so that a target resource subset is obtained, wherein the target resource subset is used for replacing the resources of the target type in the current resource set, and the resources in the target resource subset are the resources of the target type which are allowed to be accessed by the client of the target application.
As shown in FIG. 9, the current set of resources in memory 102-2 may include, but is not limited to, type 1 resources, type 2 resources, type 3 resources, and type 4 resources, and the updated set of resources in memory 102-2 may include, but is not limited to, type 1 resources, type 2 resources, type 3 resources, and type 4 resources, where type 4 resources are the target type of resources.
In the case that it is detected that the type 4 resource needs to be used, and the updated resource set and the current resource set each include a type 4 resource, an update operation may be performed on the type 4 resource in the current resource set by using the type 4 resource in the updated resource set stored in the memory 102-2, to obtain a target resource subset, where the target resource subset is used to replace the type 4 resource in the current resource set, and the resource in the target resource subset is the type 4 resource that allows the client 104 of the target application to access.
Optionally, in this embodiment, when a resource in the current resource set is accessed by a client of the target application, an update operation is performed on a resource of a target type in the current resource set by using a resource of a target type in the update resource set stored in the memory, so as to obtain a target resource subset; or alternatively
And under the condition that the resources in the current resource set are called by the application server, updating the resources of the target type in the current resource set by using the resources of the target type in the updated resource set stored in the memory to obtain a target resource subset.
As an alternative, the method further includes:
S41, configuring an execution triggering condition of the update operation to execute the update operation under the condition that the resources in the current resource set need to be used is detected when the number of times that the resources in the memory, which are stored in the memory and allow the clients of the target application to access, are updated is greater than or equal to a preset first time threshold value and the number of times that the resources in the memory, which are stored in the memory and allow the clients of the target application to access, are accessed is smaller than a preset second time threshold value; or alternatively
S42, under the condition that the frequency of the resources which are stored in the memory and allow the client side of the target application to access is greater than or equal to a preset first frequency threshold value and the frequency of the resources which are stored in the memory and allow the client side of the target application to access is less than a preset second frequency threshold value, configuring an execution triggering condition of the updating operation to execute the updating operation under the condition that the resources in the current resource set need to be used are detected.
There may be a case where there is more dynamic modification of the resources in the current resource set, but the access of the resources in the current resource set is not frequent, in which case, as shown in fig. 10, in the current resource set stored in the memory 102-2, there may be but is not limited to including a type 1 resource, a type 2 resource, a type 3 resource, and a type 4 resource, the type 1 resource, the type 2 resource, the type 3 resource, and the type 4 resource being the resources allowed to be accessed by the client 104, and in which case, the execution triggering condition of the update operation may be configured to execute the update operation in a case where it is detected that the use of the resources in the current resource set is required, in a case where the frequency of allowing the access of the resources by the client 104 is greater than or equal to a preset first frequency threshold, and the frequency of allowing the access of the client 104 of the target application is less than a preset second frequency threshold. By the method, the situation that the resources in the current resource set are updated once is avoided, the update operation is carried out on the current resource set by using the update resource set, and the resources of the server are saved.
By the method, the operation of updating the combination of the resource set and the current resource set is realized under the condition that the resources in the current resource set are required to be used, the space overhead is saved, and the operation is carried out almost without additional opening up of memory space.
As an alternative, performing an update operation on the current resource set using the updated resource set stored in the memory to obtain a target resource set, including:
s51, before detecting that the resources in the current resource set need to be used, updating the current resource set by using the updated resource set stored in the memory to obtain a target resource set.
The resources in the current resource set may have fewer dynamic modifications, but the frequent access of the resources in the current resource set may indicate that the resources in the current resource set belong to the case of more and less read and write, in which case, as shown in fig. 11, an update operation may be performed on the current resource set in the memory 102-2 by using the update resource set stored in the memory 102-2, to obtain a target resource set, and then detecting that the resources in the current resource set need to be used. By the method, the resources in the current resource set are updated in advance by using the resources in the updated resource set under the condition that the resources in the current resource set are frequently accessed, and the efficiency of accessing the resources in the target resource set is improved.
As an alternative, the method further includes:
S61, under the condition that the number of times that the resources which are stored in the memory and allow the clients of the target application to access are updated is smaller than a preset third number of times threshold and the number of times that the resources which are stored in the memory and allow the clients of the target application to access are accessed is larger than or equal to a preset fourth number of times threshold, configuring an execution triggering condition of the update operation to execute the update operation before detecting that the resources in the current resource set need to be used; or alternatively
S62, under the condition that the frequency of the resources which are stored in the memory and allow the client side of the target application to access is smaller than a preset third frequency threshold value and the frequency of the resources which are stored in the memory and allow the client side of the target application to access is larger than or equal to a preset fourth frequency threshold value, configuring an execution triggering condition of the updating operation to execute the updating operation before detecting that the resources in the current resource set need to be used.
The resources in the current resource set may have fewer dynamic modifications, but the frequent access of the resources in the current resource set may indicate that the resources in the current resource set belong to a read-many-write-few case, in which case, as shown in fig. 12, the current resource set in the memory 102-2 may include, but is not limited to, a type 1 resource, a type 2 resource, a type 3 resource, and a type 4 resource, and the type 1 resource, the type 2 resource, the type 3 resource, and the type 4 resource are resources that allow the client 104 to access, and the execution trigger condition of the update operation may be configured to execute the update operation before detecting that the resources in the current resource set need to be used, if the number of times the resources that allow the client 104 to access are updated is less than a preset third number of times threshold, and the number of times the resources that allow the client 104 to access of the target application stored in the memory 102-2 are greater than or equal to a preset fourth number of times threshold.
By the method, the resources in the current resource set are updated in advance by using the resources in the updated resource set under the condition that the resources in the current resource set are frequently accessed, and the efficiency of accessing the resources in the target resource set is improved.
As an alternative, the method further includes:
S71, obtaining an updated resource set from a database server, comprising: acquiring an updated full resource set from a database server, wherein the full resource set comprises updated resources which allow a client of a target application to access;
S72, using the updated resource set stored in the memory to execute the updating operation on the current resource set, including: in the case where the full resource set is obtained from the database server, the current resource set is replaced with the full resource set stored in the memory.
The updated resource set may be, but is not limited to, a full resource set, and it is understood that the full resource set includes updated resources and resources that are not updated, for example: the price of a portion of the hero resources in the gaming application is updated and the price of a portion of the hero resources in the gaming application is not updated, then the full set of resources may include, but is not limited to, the price of the hero resources that are updated and the price of the hero resources that are not updated.
As shown in fig. 13, a full resource set is stored in the database server 103, the full resource set including no resource 1, resource 2, resource 3-1, and resource 4-1, where resource 1 and resource 2 are resources that are not updated, and resource 3-1 and resource 4-1 are resources that are updated. The memory 102-2 of the application server 102 stores a current set of resources including resource 1, resource 2, resource 3, and resource 4.
In such a case, application server 102 may, but is not limited to, obtain a full set of resources from database server 103, then store the full set of resources in memory 102-2 of application server 102, and then replace the current set of resources with the full set of resources stored in memory 102-2 to obtain a target set of resources, where the target set of resources includes resource 1, resource 2, resource 3-1, and resource 4-1. By directly replacing the current resource set with the full resource set, the resources required to be replaced in the current resource set are avoided, and the efficiency of acquiring the target resource set is improved.
As an alternative, the method further includes:
S81, obtaining an updated resource set from a database server, including: obtaining an updated incremental resource set from a database server, wherein the incremental resource set comprises updated resources from the resources that the client of the target application is allowed to access;
S82, using the updated resource set stored in the memory to execute the update operation on the current resource set: and under the condition that the incremental resource set is acquired from the database server, executing updating operation on the resources corresponding to the incremental resource set in the current resource set by using the incremental resource set stored in the memory.
The updated resource set may be, but is not limited to, an incremental resource set, and it is understood that the incremental resource set includes only updated resources, and does not include resources that are not updated, such as: the price of a portion of the hero resources in the gaming application is updated and the price of a portion of the hero resources in the gaming application is not updated, then the incremental resource set may include, but is not limited to, the price of an updated hero resource and not the price of an hero resource that is not updated.
As shown in FIG. 14, a set of incremental resources is stored in database server 103, the set of incremental resources including updated resource 1-1 and resource 2-1. The memory 102-2 of the application server 102 stores a current set of resources including resource 1, resource 2, resource 3, and resource 4. In such a case, the incremental resource set may be obtained from the database server 103, then stored in the memory 102-2 of the application server 102, and then the resources 1-1 and 2-1 in the incremental resource set stored in the memory 102-2 are used to replace the resources 1 and 2 corresponding to the incremental resource set in the current resource set, respectively, to obtain the target resource set, where the target resource set includes the resources 1-1, the resources 2-1, the resources 3 and the resources 4.
By the method, the updated resources are used for updating the corresponding resources in the current resource set, and accuracy of updating the current resource set is improved.
As an alternative, the method further includes:
S91, under the condition that the current resource set is not stored in the memory, determining the updated resource set in the memory as the resource which is acquired by the application server and is allowed to be accessed by the client of the target application.
The current resource set may be, but is not limited to being, not stored in the memory of the application server, in which case, as shown in fig. 15, the updated resource set is stored in the database server 103, and the current resource set is not stored in the memory 102-2 of the application server 102, in which case, the acquired updated resource set may be, but is not limited to being, stored in the memory 102-2, and the updated resource set in the memory 102-2 may be determined as a resource that the application server 102 has acquired and that allows the client 104 of the target application to access. By the method, the dynamic configuration of the updated resource set according to the planning of the application and the requirements of operators is realized, and the efficiency of the configuration of the updated resource set is improved.
As an alternative, the method further includes:
S10, sending an updated resource set to the client, wherein the client is set to execute updating operation on the current resource set on the client by using the updated resource set; or alternatively
And S11, sending a target resource set to the client, wherein the client is set to execute updating operation on the current resource set on the client by using the target resource set.
Communication may be allowed between the client and the application server, but is not limited to, such as: communication based on a communication protocol, etc., as shown in fig. 16, the updated resource set may be sent to the client 104, but is not limited to, in the case where the application server 102 acquires the updated resource set from the database server 103. It is to be appreciated that the updated resource set can include, but is not limited to, a full resource set or an incremental resource set. By the method, the update operation of the current resource set on the client by using the update resource set according to the requirement of the client for using the resources in the current resource set is realized.
Or in the case that the update resource set is used to perform an update operation on the current resource set stored in the memory 102-2 to obtain the target resource set, the target resource set is sent to the client 104, or the update resource set is sent to the client 104. By the method, the situation that the client side reuses the updated resource set to execute updating operation on the current resource set in the client side is avoided, the updated target resource set is directly sent to the client side, and updating efficiency of the current resource set in the client side is improved.
Optionally, as an optional embodiment, as shown in fig. 17, the above resource updating method further includes:
step S1702, an updated resource set is obtained from an application server, wherein the updated resource set comprises updated resources of a target application, and the application server is a server of the target application;
step S1704, storing the updated resource set in a memory of a target client in an operating state, where the target client is a client of the target application;
step S1706, in the case that the current resource set is already stored in the memory, performing an update operation on the current resource set by using the updated resource set stored in the memory, to obtain a target resource set, where the current resource set includes resources that have been acquired by the target client and are allowed to be displayed on the target client, and the resources in the target resource set are updated resources that are allowed to be displayed on the target client.
The client of the target application may, but is not limited to, allow communication interactions with the application server, in which case the client of the target application may, but is not limited to, obtain an updated set of resources from the application server, and update the current set of resources in the client directly using the updated set of resources. These update operations may include, but are not limited to: add operations, delete operations, modify operations, and so forth.
As shown in fig. 18, the memory 104-2 of the client 104 stores a current resource set, and the hard disk 104-1 of the client 104 stores a current resource set. The application server 102 has stored in memory 102-2 an updated set of resources.
The client 104 may, but is not limited to, obtain an updated set of resources from the memory 102-2 of the application server 102, wherein the updated set of resources includes updated resources of the target application, and the application server 102 is a server of the target application. The updated resource set is stored in the memory 104-2 of the client 104 in an operational state, wherein the client 104 is a client of the target application.
In the case that the current resource set is already stored in the memory 104-2, performing an update operation on the current resource set using the updated resource set stored in the memory 104-2 to obtain a target resource set, where the current resource set includes resources that have been acquired by the target client 104 and are allowed to be displayed on the target client 104, and the resources in the target resource set are updated resources on the target client 104 and are allowed to be displayed on the target client 104.
In detail, the client and the application server may, but are not limited to, allow communication, such as: based on CS protocol cs_cmd_get_xx_comm_res_config, the client may request different types (corresponding to resource types) according to the requirements to obtain different latest configuration data (corresponding to updating the resource set). Meanwhile, when the resource (corresponding to the current resource set) of the application server is updated, the parameters of the configuration of the type of resource in the configuration manager in advance are read.
May include, but is not limited to, data parsing functions, push opportunities, whether data changes push clients, and data update times. If the data is configured to change the push client field, when the resource data is updated (equivalent to the update of the resources in the local resource set), the application server actively calls the CS protocol CS_CMD_GET_xx_COMM_RES_CONFIG to send the latest data to the client, so that the update of the client data is realized. And the data analysis function is a processing function issued to the client for each specific resource type, and the filling of the packet-back data in the CS protocol is completed.
In this way, the update of the current resource set stored in the client 104 is avoided, but the obtained update resource set in the application server is directly used for updating the current resource set in the memory 104-2 in the client 104, and compared with the mode that in the related art, the player needs to download the update resource package again and install the update resource package, the current resource set in the hard disk 104-1 of the client 104 is updated, and then the current resource set in the memory 104-2 of the client 104 is updated, the resource update method in the embodiment of the application simplifies the resource update flow, and greatly improves the resource update efficiency in the client.
It should be noted that, in the case of performing an update operation on a resource in the current resource set using the update resource set, configuration information of each resource in the target resource set may be, but not limited to, changed or unchanged, for example: the price of commodity a may or may not be updated.
As an alternative, performing an update operation on the current resource set using the updated resource set stored in the memory to obtain a target resource set, including:
S121, under the condition that the use of the resources in the current resource set is detected, updating the current resource set by using the updated resource set stored in the memory to obtain a target resource set; or alternatively
S122, before the use of the resources in the current resource set is detected, updating the current resource set by using the updated resource set stored in the memory to obtain a target resource set.
The resources in the current resource set in the memory of the client may belong to more updated resources, but access fewer resources; it is also possible to belong to resources that are updated less frequently but are accessed more frequently. As shown in fig. 19, the client 104 may, but is not limited to, obtain the updated resource set stored in the memory 102-2 of the application server 102, store the obtained updated resource set in the memory 104-2 of the client, and perform the update operation on the current resource set in the memory 104-2 of the client 104 using the updated resource set stored in the memory 104-2 of the client 104 if the current resource set in the memory 104-2 of the client is detected to be needed to use the current resource set in the memory of the client, where the resources in the current resource set in the memory 104-2 of the client belong to more updates but have less access to the resources.
In the case where the resources in the current resource set in the memory of the client belong to resources that are updated less but accessed more frequently, the update operation may be performed on the current resource set using the updated resource set stored in the memory 104-2 to obtain the target resource set, but not limited to, before detecting that the resources in the current resource set need to be used. It will be appreciated that in such a case, timeliness of updating the frequently accessed resources in the current resource set may be ensured by performing an update operation (e.g., merging) on the updated resource set and the current resource set stored in the memory 104-2 in advance.
For better understanding of the method for updating resources in the embodiment of the present application, the following explanation and description of the method for updating resources in the embodiment of the present application in connection with the alternative embodiment may be, but are not limited to, applicable to the embodiment of the present application.
The application side server has a set of general Syscommdata data processing framework for adding, deleting, modifying and inquiring the data interface platform, and the framework side uses four asynchronous transactions to package, which can be but not limited to the following:
ASYNC_TYPE_xxx_SYSCOMMDATA_INSERT
ASYNC_TYPE_xxx_SYSCOMMDATA_DELETE
ASYNC_TYPE_xxx_SYSCOMMDATA_QUERY
ASYNC_TYPE_xxx_SYSCOMMDATA_LIST_QUERY
The Insert interface can realize the logic of new addition and modification, delete realizes the logic of deletion, query can inquire based on the resource ID, and List_query can realize batch inquiry of the resource.
Each interface has a corresponding Manager (Manager), and g_stSysCommonDataInsertMng、g_stSysCommonDataDeleteMng、g_stSysCommDataQueryMng、g_stSysCommDataiListQueryMng. each Manager includes a requested data interface platform protocol ID, a processing function for operating data, and a returned data interface platform protocol structure. After registration is completed, the framework may perform unified SysCommData additions, deletions, modifications, and queries. It can be understood that if the resource needs to be updated, such as adding, deleting, modifying or querying, the resource needs to be registered in the corresponding manager in each interface, and the corresponding operation can be performed on the resource only when the registration is completed.
In the event that registration is complete, the operator and planner of the target application may, but is not limited to, perform a corresponding update operation on the resource. As shown in fig. 20, the operator and the planner of the target application may, but are not limited to, perform corresponding resource configuration on the management application, and after the configuration data is filled, send the data to the data interface platform, where the data interface platform notifies the application side server to perform data processing. A framework is maintained in the application side server, so that the data interface platform is convenient for configuration such as addition, deletion, modification, inquiry and the like. The principle of implementation is to use a unified storage structure SysCommData to implement addition, deletion, modification, query, etc. of SysCommData.
The method comprises the following steps:
Step S2001, acquiring data in the database server, and the application server process may, but is not limited to, acquiring SysCommData data in the database server at the time of startup;
step S2002, initializing to obtain a current resource set; the current resource set may be sent before logging in, or after logging in; in the case where the current resource set is transmitted before login, step S2002 is executed: issued before login, steps S2005 to S2010 are executed, or step S2004 is executed: after logging in, the system issues and then steps S2005 to S2010 are executed.
Step S2005, the data interface platform writes the planning of the target application and the configuration of the operator into the request, and sends the request to the application side server;
step S2006, notifying the application side server to perform data processing;
Step S2007, an application side server processes to obtain an updated resource set;
Step S2008, writing the updated resource set into the database server;
step S2009, the database server synchronizes the updated resource set to the application server;
In step S2010, the updated resource is synchronized to the client of the target application, and in detail, the application server may, but is not limited to, perform an update operation on the current resource set in the application server by using the updated resource set, and may, but is not limited to, synchronize the updated resource to the client, for example: and pushing the updated resources to the client under the condition that the user of the client of the target application is online and the resource configuration in the client is changed.
In detail, all SysCommData data corresponding to the application server needs to be registered in gs_ stResTableConfig, and the registered content includes data types (such as types of resources) of SysCommData, data structure sizes, maximum numbers, and data of structure copy functions. The application server may prepare for loading data and merging data based on the required memory size of the data and logic of the data copy in the event that registration is completed.
As shown in fig. 21, the resources in the current set of resources may be updated using the updated set of resources by, but not limited to, performing the steps of:
In step S2101, the res.xml resource file (corresponding to the current resource set) is updated, and the planning and developer configures the local resource table res.xml resource file (corresponding to the current resource set) and submits the latest configuration data after confirming no error.
Step S2102, the application server reloads the resource; the application server has restart process operation and reload (reload) operation of resource configuration. The process is restarted while the reload operations are performed to reload the resource configuration. If there is an update to the local resource res.xml (corresponding to the current resource set), the latest resource can be loaded into the shared memory (corresponding to the memory of the application server) by using reload or restart of the server.
Step S2103, call the resource table loading function.
In step S2104, the updated merge function is triggered, and in detail, the updated merge function is triggered for merging the updated resource set and the current resource set. The specific implementation flow is as follows: if the resources in the updated resource set need to be directly updated into the data (equivalent to the current resource set) of the resource allocation table, the registration of the resource merging allocation table is needed first, and the registered contents comprise: table name, sysCommData data type, merge function, and merged initialization function. The merging function can be implemented according to actual requirements. Such as: when the resource ID of the local resource table (corresponding to the current resource set) is consistent with the resource ID in the updated resource set, the method can be realized by selecting to use the local resource (corresponding to the current resource set) to cover the resources in the updated resource set; or can be realized according to the mode of using the resources in the updated resource set to cover the local resources (equivalent to the current resource set); specific configuration information (such as price, time allowed for purchase, etc.) for specific resources may also be configured, such as: only the price attribute in a local commodity table in the gaming application is modified, not the replacement of the entire resource. After executing the merging function of resource intervention, the user can register the initializing function according to the realization requirement to perform more initializing work.
Step S2105, call a merge function for resource type registration.
In detail, in the process of merging the updated resource set and the current resource set by the application server, the application scope of the updated resource set may be different, for example: the updated resource set is applicable to all resources in the current resource set or the updated resource set is applicable to some of the resources in the current resource set. As shown in fig. 22, the updating of the resources in the current set of resources may be accomplished, but is not limited to, by:
In step S2202, the user (corresponding to the planning and operator of the target application) configures the resource data through the data platform interface. In the event of a configuration failure, the data interface platform returns the result of the failure to be used.
In step S2204, the resource data is stored in the database server.
In step S2206, the change information is updated (corresponding to the partition or the full area, in which the updated resource ID is recorded), and it is understood that the change information of the partition is used to record the updated resource information in a part of the partitions (such as a part of the battle areas, etc.) in the client of the target application, and the change information of the full area is used to record the updated resource information in all the partitions (such as all the battle areas, etc.) in the client of the target application. The change information may be identified, but is not limited to, by (SYS COMMDATA TYPE COMMDATA UPDA TE INFO). The database server returns the result of updating the change information, such as: and under the condition that the updating of the change information fails, the database server returns a failure result to the data interface server platform, and the data interface platform returns the failure result to the user. And under the condition that the change information is successfully updated, the database server returns a successful result to the data interface server platform, and the data interface platform returns the successful result to the user.
In step S2208, the application server pulls the change information of the corresponding full area from the database server, and the database server returns the result, and the change information of the full area may be, but is not limited to, identified by sys_ COMMDATA _type_ COMMDATA _ UPDA _te_info).
In step S2210, the application server pulls the change information of the corresponding full area from the database server, and the database server returns the result, and the change information of the full area may be, but not limited to, identified by sys_ COMMDATA _type_ COMMDATA _ UPDA _te_info).
In step S2212, the application server merges the change information of the whole area and the partition, processes the change information as a resource table, and compares the new and old data (corresponding to comparing and updating the resources in the resource set with the resources in the current resource set), thereby obtaining the type (corresponding to the target type) of the modified resource. In detail, the application server may, but is not limited to, pull the resource data (corresponding to updating the resource set) back at regular time, compare with the local data, and detect the change.
In step S2214, the application server pulls the modified resource data from the database server, and the database server returns the result.
Most of the resource data will not change frequently, in order to improve the performance of the application server, the change information of the resource may be recorded in the database server, where the change information records the related information of the updated resource, such as: an ID of the resource, a type of the resource, etc. Updating the change information while updating the resource data, and the application server pulls the change information each time, if a change of the resource data is detected, for example: in this case, the resource ID of the resource whose update has occurred is recorded in the conversion information, and the database server is pulled to acquire resource data (corresponding to the updated resource set). And comparing the new data with the old data to determine whether the resource data is newly added or deleted, and if the resource data is the same record, comparing the version number to determine whether the resource data is modified. In case of an update of the data record, an update time stamp is required.
It should be noted that, in the embodiment of the present application, the applicable scenario of the resource updating method may be, but not limited to, a scenario in which a part of resources are updated, or a scenario in which all resources are updated. As shown in fig. 23, in scenario 1 of updating a part of resources in an application server, an updated resource set (RES DATA SHARED memory) in an application server memory may be directly combined with a current resource set (Used RES Table shared memory) in the application server memory, so that an update operation of resources in the current resource set may be completed.
In scenario 2, where all resources in the application server are updated, and after all resources in the application server are updated, all resources in the current set of resources in the memory of the application server are updated, the resource table data (corresponding to the updated set of resources) may be reloaded (corresponding to the memory of the application server) to the shared memory (corresponding to the memory of the application server) in a manner that, but not limited to, invokes the server reload (reload), and the merge operation is performed. In detail, RES xml Data (corresponding to updated resource sets) may be loaded into the memory (Raw RES Table sharde memory) of the application server, and then merged with the current resource set in Used RES Table sharde memory. If the updating of the part of the resources in the resource set after the updating in the memory of the application server is continued under the condition that the updating of all the resources in the current resource set in the memory of the application server is completed, in this case, the updating operation of the resources in the current resource set can be completed by combining the updated resource set (RES DATA SHARED memory) in the memory of the application server with the current resource set (Used RES Table shared memory) in the memory of the application server.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. 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 required for the present invention.
According to another aspect of the embodiment of the present application, there is also provided an apparatus for implementing the above-mentioned resource updating method. As shown in fig. 24, the apparatus includes:
A first obtaining unit 2402, configured to obtain an update resource set from a database server, where the update resource set includes update resources of a target application;
A first storage unit 2404, configured to store the updated resource set in a memory of an application server in a running state, where the application server is a server of the target application;
A first execution unit 2406, configured to, when a current resource set is already stored in the memory, perform an update operation on the current resource set using the updated resource set stored in the memory, to obtain a target resource set, where the current resource set includes resources that have been acquired by the application server and are allowed to be accessed by a client of the target application, and the resources in the target resource set are resources that have been updated on the application server and are allowed to be accessed by the client of the target application.
By the embodiment of the application, the current resource set in the application server can be updated by using the updated resource set stored in the memory of the application server under the condition that the application server is in the running state, so that the situation that the server needs to load the updated resource before restarting the server under the condition that the updated resource is needed is avoided, and the updating of the resource in the server can be completed. The method and the device realize the dynamic updating of the resources in the server under the condition that the server is not restarted. Therefore, the technical effect of improving the efficiency of resource updating is achieved, and the technical problem that the efficiency of resource updating is low is solved.
As an alternative, the first execution unit includes: and the first execution module is used for executing updating operation on the current resource set by using the updated resource set stored in the memory under the condition that the use of the resources in the current resource set is detected to be needed, so as to obtain a target resource set.
As an alternative, the first execution module is configured to include: under the condition that the resources in the current resource set are accessed by the client of the target application, updating the current resource set by using the updated resource set stored in the memory to obtain a target resource set; or under the condition that the resources in the current resource set are called by the application server, updating the current resource set by using the updated resource set stored in the memory to obtain a target resource set.
As an alternative, the first execution module is further configured to: and under the condition that the current resource set comprises a plurality of types of resources, the resources of a target type in the plurality of types are detected to be used, and the updated resource set stored in the memory and the current resource set both comprise the resources of the target type, updating the resources of the target type in the current resource set by using the resources of the target type in the updated resource set stored in the memory to obtain a target resource subset, wherein the target resource subset is used for replacing the resources of the target type in the current resource set, and the resources in the target resource subset are the resources of the target type which are allowed to be accessed by a client of the target application.
As an alternative, the apparatus further comprises: a first configuration unit, configured to configure an execution trigger condition of the update operation to execute the update operation under a condition that it is detected that a resource in the current resource set needs to be used, when a number of times that the resource stored in the memory that allows the client of the target application to access is updated is greater than or equal to a preset first time threshold and a number of times that the resource stored in the memory that allows the client of the target application to access is accessed is less than a preset second time threshold; or a second configuration unit, configured to configure an execution trigger condition of the update operation to execute the update operation under a condition that it is detected that the resources in the current resource set need to be used, when the frequency of the resources stored in the memory that allow the client of the target application to access are updated is greater than or equal to a preset first frequency threshold and the frequency of the resources stored in the memory that allow the client of the target application to access are accessed is less than a preset second frequency threshold.
As an alternative, the first execution unit includes: and the second execution module is used for executing updating operation on the current resource set by using the updated resource set stored in the memory before detecting that the resources in the current resource set need to be used, so as to obtain a target resource set.
As an alternative, the apparatus further comprises: a third configuration unit, configured to configure an execution trigger condition of the update operation to execute the update operation before detecting that the use of the resource in the current resource set is required, where the number of times the stored resource in the memory that allows the client of the target application to access is updated is less than a preset third number of times threshold, and the number of times the stored resource in the memory that allows the client of the target application to access is greater than or equal to a preset fourth number of times threshold; or a fourth configuration unit, configured to configure an execution trigger condition of the update operation to execute the update operation before detecting that the use of the resource in the current resource set is required, where the frequency of the resource stored in the memory that allows the client of the target application to access is updated is less than a preset third frequency threshold, and the frequency of the resource stored in the memory that allows the client of the target application to access is greater than or equal to a preset fourth frequency threshold.
As an alternative, the apparatus further includes: the first acquisition unit includes: a first obtaining module, configured to obtain an updated full resource set from the database server, where the full resource set includes updated resources that allow access by a client of the target application; the first execution unit includes: and the replacing module is used for replacing the current resource set by using the full resource set stored in the memory under the condition that the full resource set is acquired from the database server.
As an alternative, the first obtaining unit includes: a second obtaining module, configured to obtain an updated incremental resource set from the database server, where the incremental resource set includes updated resources from resources that allow the client of the target application to access; the first execution unit includes: and the third execution module is used for executing updating operation on resources corresponding to the incremental resource set in the current resource set by using the incremental resource set stored in the memory under the condition that the incremental resource set is acquired from the database server.
As an alternative, the apparatus further comprises: and the determining unit is used for determining the updated resource set in the memory as the resource which is acquired by the application server and is allowed to be accessed by the client of the target application under the condition that the current resource set is not stored in the memory.
As an alternative, the apparatus further comprises: a first sending unit, configured to send the updated resource set to the client, where the client is configured to perform an update operation on the current resource set on the client using the updated resource set; or a second sending unit, configured to send the target resource set to the client, where the client is configured to perform an update operation on the current resource set on the client using the target resource set.
According to another aspect of the embodiment of the present application, another apparatus for implementing the above-mentioned resource updating method is also provided. As shown in fig. 25, the apparatus includes:
A second obtaining unit 2502, configured to obtain an update resource set from an application server, where the update resource set includes update resources of a target application, and the application server is a server of the target application;
a second storage unit 2504, configured to store the updated resource set in a memory of a target client in an operating state, where the target client is a client of the target application;
A second execution unit 2506, configured to, when the current resource set is already stored in the memory, perform an update operation on the current resource set using the updated resource set stored in the memory, to obtain a target resource set, where the current resource set includes resources that have been acquired by the target client and are allowed to be displayed on the target client, and the resources in the target resource set are resources that have been updated on the target client and are allowed to be displayed on the target client.
As an alternative, the second execution unit includes: a fourth execution module, configured to, when it is detected that a resource in the current resource set needs to be used, execute an update operation on the current resource set using the updated resource set stored in the memory, to obtain a target resource set; or before detecting that the resources in the current resource set need to be used, using the updated resource set stored in the memory to execute updating operation on the current resource set to obtain a target resource set.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the above-mentioned resource updating method, where the electronic device may be a terminal device or a server as shown in fig. 1. The present embodiment is described taking the electronic device as a server as an example. As shown in fig. 26, the electronic device comprises a memory 2602 and a processor 2604, the memory 2602 storing a computer program, the processor 2604 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, acquiring an updated resource set from a database server, wherein the updated resource set comprises updated resources of a target application;
s2, storing the updated resource set into a memory of an application server in an operating state, wherein the application server is a server of the target application;
And S3, under the condition that the current resource set is stored in the memory, updating operation is carried out on the current resource set by using the updated resource set stored in the memory to obtain a target resource set, wherein the current resource set comprises resources which are acquired by the application server and are allowed to be accessed by the client of the target application, and the resources in the target resource set are updated on the application server and are allowed to be accessed by the client of the target application.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 26 is only schematic, and the electronic device may be a smart phone (such as an Android Mobile phone, an iOS Mobile phone, etc.), a tablet computer, a palm computer, a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 26 does not limit the structure of the electronic device and the electronic apparatus described above. For example, the electronics can also include more or fewer components (e.g., network interfaces, etc.) than shown in fig. 26, or have a different configuration than shown in fig. 26.
The memory 2602 may be used to store software programs and modules, such as program instructions/modules corresponding to the resource updating method and apparatus in the embodiment of the present invention, and the processor 2604 executes the software programs and modules stored in the memory 2602, thereby executing various functional applications and data processing, that is, implementing the resource updating method described above. Memory 2602 may include high-speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 2602 may further include memory located remotely from the processor 2604, which may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 2602 may specifically, but is not limited to, information such as sample characteristics and target virtual resource account numbers for storing the items. As an example, as shown in fig. 26, the memory 2602 may include, but is not limited to, the first acquiring unit 2402, the first storing unit 2404, and the first executing unit 2406 in the resource updating device. In addition, other module units in the above-mentioned resource updating device may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 2606 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 2606 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 2606 is a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In addition, the electronic device further includes: a display 2608 for displaying the order information to be processed; and a connection bus 2610 for connecting the respective module components in the above-described electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, there is provided a computer program product comprising a computer program/instruction containing program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 2709 and/or installed from the removable medium 2711. When executed by the central processor 2701, performs various functions provided by embodiments of the present application. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
Fig. 27 schematically shows a block diagram of a computer system of an electronic device for implementing an embodiment of the application. Note that the computer system 2700 of the electronic device shown in fig. 27 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application. As shown in fig. 27, the computer system 2700 includes a central processing unit 2701 (Central Processing Unit, CPU) which can execute various appropriate actions and processes according to a program stored in a Read-Only Memory 2702 (ROM) or a program loaded from the storage portion 2708 into a random access Memory 2703 (Random Access Memory, RAM). In the random access memory 2703, various programs and data necessary for system operation are also stored. The central processing unit 2701, the read only memory 2702 and the random access memory 2703 are connected to each other through a bus 2704. An Input/Output interface 2705 (i.e., an I/O interface) is also connected to bus 2704.
The following components are connected to the input/output interface 2705: an input portion 2706 including a keyboard, a mouse, and the like; an output portion 2707 including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and a speaker, etc.; a storage portion 2708 including a hard disk and the like; and a communication section 2709 including a network interface card such as a local area network card, a modem, or the like. The communication section 2709 performs communication processing via a network such as the internet. The driver 2710 is also connected to the input/output interface 2705 as needed. A removable medium 2711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 2710 as needed, so that a computer program read out therefrom is installed into the storage portion 2708 as needed.
In particular, the processes described in the various method flowcharts may be implemented as computer software programs according to embodiments of the application. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 2709 and/or installed from the removable medium 2711. When executed by the central processor 2701, performs various functions defined in the system of the present application.
According to one aspect of the present application, there is provided a computer-readable storage medium, from which a processor of a computer device reads the computer instructions, the processor executing the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations of the above embodiments.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for performing the steps of:
S1, acquiring an updated resource set from a database server, wherein the updated resource set comprises updated resources of a target application;
s2, storing the updated resource set into a memory of an application server in an operating state, wherein the application server is a server of the target application;
And S3, under the condition that the current resource set is stored in the memory, updating operation is carried out on the current resource set by using the updated resource set stored in the memory to obtain a target resource set, wherein the current resource set comprises resources which are acquired by the application server and are allowed to be accessed by the client of the target application, and the resources in the target resource set are updated on the application server and are allowed to be accessed by the client of the target application.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for performing the steps of:
S1, acquiring an updated resource set from an application server, wherein the updated resource set comprises updated resources of a target application, and the application server is a server of the target application;
s2, storing the updated resource set into a memory of a target client in an operating state, wherein the target client is a client of the target application;
And S3, under the condition that the current resource set is stored in the memory, updating the current resource set by using the updated resource set stored in the memory to obtain a target resource set, wherein the current resource set comprises the resources acquired by the target client and allowed to be displayed on the target client, and the resources in the target resource set are the resources updated on the target client and allowed to be displayed on the target client.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (18)

1.一种资源更新方法,其特征在于,包括:1. A resource updating method, characterized by comprising: 从数据库服务器上获取更新资源集合,其中,所述更新资源集合包括目标应用的更新资源;Acquire an update resource set from a database server, wherein the update resource set includes update resources of a target application; 将所述更新资源集合存储到处于运行状态的应用服务器的内存中,其中,所述应用服务器是所述目标应用的服务器;storing the update resource set in a memory of an application server in operation, wherein the application server is a server of the target application; 在所述内存中已存储了当前资源集合的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,其中,所述当前资源集合包括所述应用服务器已获取到的、且允许所述目标应用的客户端访问的资源,所述目标资源集合中的资源是所述应用服务器上更新后的、且允许所述目标应用的客户端访问的资源。In the case where the current resource set has been stored in the memory, an update operation is performed on the current resource set using the updated resource set stored in the memory to obtain a target resource set, wherein the current resource set includes resources that have been acquired by the application server and that are allowed to be accessed by the client of the target application, and the resources in the target resource set are resources that have been updated on the application server and that are allowed to be accessed by the client of the target application. 2.根据权利要求1所述的方法,其特征在于,所述使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,包括:2. The method according to claim 1, characterized in that the using the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set comprises: 在检测到需要使用所述当前资源集合中的资源的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合。In the case where it is detected that resources in the current resource set need to be used, an update operation is performed on the current resource set using the update resource set stored in the memory to obtain a target resource set. 3.根据权利要求2所述的方法,其特征在于,所述在检测到需要使用所述当前资源集合中的资源的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,包括:3. The method according to claim 2, wherein when it is detected that resources in the current resource set need to be used, using the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set comprises: 在所述当前资源集合中的资源被所述目标应用的客户端访问的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合;或者When resources in the current resource set are accessed by a client of the target application, use the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set; or 在所述当前资源集合中的资源被所述应用服务器调用的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合。In the case where the resources in the current resource set are called by the application server, the update resource set stored in the memory is used to perform an update operation on the current resource set to obtain a target resource set. 4.根据权利要求2所述的方法,其特征在于,所述在检测到需要使用所述当前资源集合中的资源的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,包括:4. The method according to claim 2, wherein when it is detected that resources in the current resource set need to be used, using the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set comprises: 在所述当前资源集合中包括多个类型的资源、检测到需要使用所述多个类型中的目标类型的资源、且所述内存中存储的所述更新资源集合和所述当前资源集合均包括所述目标类型的资源的情况下,使用所述内存中存储的所述更新资源集合中所述目标类型的资源对所述当前资源集合中所述目标类型的资源执行更新操作,得到目标资源子集,其中,所述目标资源子集用于替换所述当前资源集合中所述目标类型的资源、且所述目标资源子集中的资源是允许所述目标应用的客户端访问的所述目标类型的资源。In a case where the current resource collection includes multiple types of resources, it is detected that resources of a target type among the multiple types need to be used, and both the updated resource collection and the current resource collection stored in the memory include resources of the target type, an update operation is performed on the resources of the target type in the current resource collection using the resources of the target type in the updated resource collection stored in the memory to obtain a target resource subset, wherein the target resource subset is used to replace the resources of the target type in the current resource collection, and the resources in the target resource subset are resources of the target type that are allowed to be accessed by clients of the target application. 5.根据权利要求2所述的方法,其特征在于,所述方法还包括:5. The method according to claim 2, characterized in that the method further comprises: 在所述内存中存储的允许所述目标应用的客户端访问的资源被更新的次数大于或等于预设的第一次数阈值、且所述内存中存储的允许所述目标应用的客户端访问的资源被访问的次数小于预设的第二次数阈值的情况下,将所述更新操作的执行触发条件配置为在检测到需要使用所述当前资源集合中的资源的情况下执行所述更新操作;或者In a case where the number of times the resources stored in the memory and allowed to be accessed by the client of the target application is updated is greater than or equal to a preset first number threshold, and the number of times the resources stored in the memory and allowed to be accessed by the client of the target application is accessed is less than a preset second number threshold, configuring the execution trigger condition of the update operation to execute the update operation when it is detected that a resource in the current resource set needs to be used; or 在所述内存中存储的允许所述目标应用的客户端访问的资源被更新的频率大于或等于预设的第一频率阈值、且所述内存中存储的允许所述目标应用的客户端访问的资源被访问的频率小于预设的第二频率阈值的情况下,将所述更新操作的执行触发条件配置为在检测到需要使用所述当前资源集合中的资源的情况下执行所述更新操作。When the frequency at which the resources stored in the memory and allowed to be accessed by the client of the target application are updated is greater than or equal to a preset first frequency threshold, and the frequency at which the resources stored in the memory and allowed to be accessed by the client of the target application are accessed is less than a preset second frequency threshold, the execution trigger condition of the update operation is configured to execute the update operation when it is detected that the resources in the current resource set need to be used. 6.根据权利要求1所述的方法,其特征在于,所述使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,包括:6. The method according to claim 1, characterized in that the using the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set comprises: 在检测到需要使用所述当前资源集合中的资源之前,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合。Before detecting that resources in the current resource set need to be used, the update resource set stored in the memory is used to perform an update operation on the current resource set to obtain a target resource set. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, characterized in that the method further comprises: 在所述内存中存储的允许所述目标应用的客户端访问的资源被更新的次数小于预设的第三次数阈值、且所述内存中存储的允许所述目标应用的客户端访问的资源被访问的次数大于或等于预设的第四次数阈值的情况下,将所述更新操作的执行触发条件配置为在检测到需要使用所述当前资源集合中的资源之前执行所述更新操作;或者In a case where the number of times the resources stored in the memory and allowed to be accessed by the client of the target application are updated is less than a preset third number threshold, and the number of times the resources stored in the memory and allowed to be accessed by the client of the target application is greater than or equal to a preset fourth number threshold, the execution trigger condition of the update operation is configured to execute the update operation before detecting the need to use the resources in the current resource set; or 在所述内存中存储的允许所述目标应用的客户端访问的资源被更新的频率小于预设的第三频率阈值、且所述内存中存储的允许所述目标应用的客户端访问的资源被访问的频率大于或等于预设的第四频率阈值的情况下,将所述更新操作的执行触发条件配置为在检测到需要使用所述当前资源集合中的资源之前执行所述更新操作。When the frequency at which the resources stored in the memory and allowed to be accessed by the client of the target application are updated is less than a preset third frequency threshold, and the frequency at which the resources stored in the memory and allowed to be accessed by the client of the target application are accessed is greater than or equal to a preset fourth frequency threshold, the execution trigger condition of the update operation is configured to execute the update operation before detecting the need to use the resources in the current resource set. 8.根据权利要求1至7中任一项所述的方法,其特征在于,包括:8. The method according to any one of claims 1 to 7, characterized in that it comprises: 所述从数据库服务器上获取更新资源集合,包括:从所述数据库服务器上获取更新的全量资源集合,其中,所述全量资源集合包括更新后的允许所述目标应用的客户端访问的各个资源;The obtaining of the updated resource set from the database server comprises: obtaining an updated full resource set from the database server, wherein the full resource set comprises updated resources that are allowed to be accessed by the client of the target application; 所述使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,包括:在从所述数据库服务器上获取到所述全量资源集合的情况下,使用所述内存中存储的所述全量资源集合替换所述当前资源集合。The updating operation on the current resource set using the updated resource set stored in the memory includes: when the full resource set is obtained from the database server, replacing the current resource set with the full resource set stored in the memory. 9.根据权利要求1至7中任一项所述的方法,其特征在于,9. The method according to any one of claims 1 to 7, characterized in that 所述从数据库服务器上获取更新资源集合,包括:从所述数据库服务器上获取更新的增量资源集合,其中,所述增量资源集合包括允许所述目标应用的客户端访问的资源中被更新的资源;The acquiring of the updated resource set from the database server comprises: acquiring an updated incremental resource set from the database server, wherein the incremental resource set comprises updated resources among the resources that the client of the target application is allowed to access; 所述使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作:在从所述数据库服务器上获取到所述增量资源集合的情况下,使用所述内存中存储的所述增量资源集合对所述当前资源集合中与所述增量资源集合对应的资源执行更新操作。The updating operation is performed on the current resource set using the updated resource set stored in the memory: when the incremental resource set is obtained from the database server, the updating operation is performed on the resources in the current resource set corresponding to the incremental resource set using the incremental resource set stored in the memory. 10.根据权利要求1至7中任一项所述的方法,其特征在于,所述方法还包括:10. The method according to any one of claims 1 to 7, characterized in that the method further comprises: 在所述内存中未存储所述当前资源集合的情况下,将所述内存中的所述更新资源集合确定为所述应用服务器已获取到的、且允许所述目标应用的客户端访问的资源。In the case that the current resource set is not stored in the memory, the updated resource set in the memory is determined as resources that have been acquired by the application server and are allowed to be accessed by the client of the target application. 11.根据权利要求1至7中任一项所述的方法,其特征在于,所述方法还包括:11. The method according to any one of claims 1 to 7, characterized in that the method further comprises: 向所述客户端发送所述更新资源集合,其中,所述客户端被设置为使用所述更新资源集合对所述客户端上的所述当前资源集合执行更新操作;或者Sending the updated resource set to the client, wherein the client is configured to use the updated resource set to perform an update operation on the current resource set on the client; or 向所述客户端发送所述目标资源集合,其中,所述客户端被设置为使用所述目标资源集合对所述客户端上的所述当前资源集合执行更新操作。The target resource set is sent to the client, wherein the client is configured to use the target resource set to perform an update operation on the current resource set on the client. 12.一种资源更新方法,其特征在于,包括:12. A resource updating method, characterized by comprising: 从应用服务器上获取更新资源集合,其中,所述更新资源集合包括目标应用的更新资源,所述应用服务器是所述目标应用的服务器;Acquire an update resource set from an application server, wherein the update resource set includes update resources of a target application, and the application server is a server of the target application; 将所述更新资源集合存储到处于运行状态的目标客户端的内存中,其中,所述目标客户端是所述目标应用的客户端;Storing the updated resource set in a memory of a target client in a running state, wherein the target client is a client of the target application; 在所述内存中已存储了当前资源集合的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,其中,所述当前资源集合包括所述目标客户端已获取到的、且允许在所述目标客户端上显示的资源,所述目标资源集合中的资源是所述目标客户端上更新后的、且允许在所述目标客户端上显示的资源。In the case where the current resource set has been stored in the memory, an update operation is performed on the current resource set using the updated resource set stored in the memory to obtain a target resource set, wherein the current resource set includes resources that have been acquired by the target client and are allowed to be displayed on the target client, and the resources in the target resource set are resources that have been updated on the target client and are allowed to be displayed on the target client. 13.根据权利要求12所述的方法,其特征在于,所述使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,包括:13. The method according to claim 12, wherein the step of using the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set comprises: 在检测到需要使用所述当前资源集合中的资源的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合;或者When it is detected that resources in the current resource set need to be used, use the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set; or 在检测到需要使用所述当前资源集合中的资源之前,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合。Before detecting that resources in the current resource set need to be used, the update resource set stored in the memory is used to perform an update operation on the current resource set to obtain a target resource set. 14.一种资源更新装置,其特征在于,包括:14. A resource updating device, characterized by comprising: 第一获取单元,用于从数据库服务器上获取更新资源集合,其中,所述更新资源集合包括目标应用的更新资源;A first acquisition unit, configured to acquire an update resource set from a database server, wherein the update resource set includes update resources of a target application; 第一存储单元,用于将所述更新资源集合存储到处于运行状态的应用服务器的内存中,其中,所述应用服务器是所述目标应用的服务器;A first storage unit, configured to store the update resource set in a memory of an application server in operation, wherein the application server is a server of the target application; 第一执行单元,用于在所述内存中已存储了当前资源集合的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,其中,所述当前资源集合包括所述应用服务器已获取到的、且允许所述目标应用的客户端访问的资源,所述目标资源集合中的资源是所述应用服务器上更新后的、且允许所述目标应用的客户端访问的资源。The first execution unit is used to, when the current resource set has been stored in the memory, use the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set, wherein the current resource set includes resources that have been acquired by the application server and are allowed to be accessed by the client of the target application, and the resources in the target resource set are resources that have been updated on the application server and are allowed to be accessed by the client of the target application. 15.一种资源更新装置,其特征在于,包括:15. A resource updating device, comprising: 第二获取单元,用于从应用服务器上获取更新资源集合,其中,所述更新资源集合包括目标应用的更新资源,所述应用服务器是所述目标应用的服务器;A second acquisition unit is configured to acquire an update resource set from an application server, wherein the update resource set includes update resources of a target application, and the application server is a server of the target application; 第二存储单元,用于将所述更新资源集合存储到处于运行状态的目标客户端的内存中,其中,所述目标客户端是所述目标应用的客户端;A second storage unit, used to store the updated resource set in a memory of a target client in a running state, wherein the target client is a client of the target application; 第二执行单元,用于在所述内存中已存储了当前资源集合的情况下,使用所述内存中存储的所述更新资源集合对所述当前资源集合执行更新操作,得到目标资源集合,其中,所述当前资源集合包括所述目标客户端已获取到的、且允许在所述目标客户端上显示的资源,所述目标资源集合中的资源是所述目标客户端上更新后的、且允许在所述目标客户端上显示的资源。The second execution unit is used to, when the current resource set has been stored in the memory, use the updated resource set stored in the memory to perform an update operation on the current resource set to obtain a target resource set, wherein the current resource set includes resources that have been acquired by the target client and are allowed to be displayed on the target client, and the resources in the target resource set are resources that have been updated on the target client and are allowed to be displayed on the target client. 16.一种计算机可读的存储介质,其特征在于,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行所述权利要求1至13任一项中所述的方法。16. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program executes the method described in any one of claims 1 to 13 when it is run. 17.一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现权利要求1至13所述方法的步骤。17. A computer program product, comprising a computer program/instruction, characterized in that the computer program/instruction implements the steps of the method according to claims 1 to 13 when executed by a processor. 18.一种电子设备,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至13任一项中所述的方法。18. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 13 through the computer program.
CN202310392208.1A 2023-04-04 2023-04-04 Resource updating method and device, storage medium and electronic device Pending CN118767438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310392208.1A CN118767438A (en) 2023-04-04 2023-04-04 Resource updating method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310392208.1A CN118767438A (en) 2023-04-04 2023-04-04 Resource updating method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN118767438A true CN118767438A (en) 2024-10-15

Family

ID=92978327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310392208.1A Pending CN118767438A (en) 2023-04-04 2023-04-04 Resource updating method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN118767438A (en)

Similar Documents

Publication Publication Date Title
US11032140B2 (en) Using a template to update a stack of resources
US12073258B2 (en) Configuration map based sharding for containers in a machine learning serving infrastructure
US10291704B2 (en) Networked solutions integration using a cloud business object broker
CN105740048B (en) An image management method, device and system
AU2017253679B2 (en) Providing access to a hybrid application offline
US9678740B2 (en) Migration mechanism
US20090199175A1 (en) Dynamic Allocation of Virtual Application Server
US10832309B2 (en) Inventory data model for large scale flash sales
WO2018063803A1 (en) Generating an application programming interface
EP4173181B1 (en) Container orchestration system (cos) services discovery across multiple cos clusters based on cos cluster domain name system
US8856365B2 (en) Computer-implemented method, computer system and computer readable medium
CN111338571B (en) Task processing method, device, equipment and storage medium
CN112883009B (en) Method and device for processing data
JP6760904B2 (en) Information processing equipment, information processing methods, and information processing programs
CN109947768B (en) local identifier for database objects
US20180300369A1 (en) Secure query interface
US11294892B2 (en) Virtual archiving of database records
CN118767438A (en) Resource updating method and device, storage medium and electronic device
US11474846B2 (en) Controller for bridging database architectures
CN117131295B (en) Resource management method, system, device, electronic equipment and storage medium
US20240273019A1 (en) Cache management for web application components
US20250371031A1 (en) Logical clone replication
US20250060984A1 (en) Methods and systems that manage cloud-computing infrastructure by idempotent application of data specifications and enforced-state management
HK40089848A (en) Static resource processing method, apparatus, device, and storage medium
CN114880276A (en) Distributed cluster management method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination