CN110471679B - Client resource allocation updating method and device, storage medium and server - Google Patents
Client resource allocation updating method and device, storage medium and server Download PDFInfo
- Publication number
- CN110471679B CN110471679B CN201910612028.3A CN201910612028A CN110471679B CN 110471679 B CN110471679 B CN 110471679B CN 201910612028 A CN201910612028 A CN 201910612028A CN 110471679 B CN110471679 B CN 110471679B
- Authority
- CN
- China
- Prior art keywords
- configuration
- client
- information
- resource
- latest
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000013468 resource allocation Methods 0.000 title claims abstract description 13
- 238000004519 manufacturing process Methods 0.000 claims abstract description 39
- 230000015654 memory Effects 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 3
- 230000010365 information processing Effects 0.000 claims 2
- 238000012986 modification Methods 0.000 abstract description 12
- 230000004048 modification Effects 0.000 abstract description 12
- 238000012545 processing Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000012216 screening Methods 0.000 description 3
- 238000000926 separation method Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 208000003443 Unconsciousness Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to the technical fields of data processing, data updating and batch updating, and provides a client resource allocation updating method, which comprises the following steps: acquiring project production information, determining ladder configuration of the project according to the project production information, and establishing long connection between the client and the server for executing the project corresponding to the ladder configuration; the client acquires the latest configuration resource information of the ladder corresponding to the client from the server in real time through long connection, and pulls the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to the configuration resource information; the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client. Configuration modification and information release authority are separated, so that configuration can be uniformly released, production operation safety and stability are guaranteed, instantaneity of acquiring configuration information is improved, different versions are released based on different environments, and different configurations are provided for users.
Description
Technical Field
The invention relates to the technical fields of data processing, data updating and batch updating, in particular to a method and a device for updating client resource allocation, a storage medium and a server.
Background
In the early development stage of internet companies, the server and the application programs are fewer, configuration information of the projects is stored in a file, for example, some basic database information and cache information are configured in the file, and each project has a separate configuration file.
With the development of internet technology, more servers and applications are available, and more items of configuration information are available. When the project configuration increases, the file type configuration becomes confused, and the speed of the server configuration decreases. When an application project is deployed on multiple machines, updating any configuration in the project each time requires updating many times on different server files, which is cumbersome and error-prone. In addition, when the configuration of the project is updated, the project service must be closed, then the configuration information in the configuration file is modified, and the configuration is restarted and reissued, and each time the configuration is updated, the configuration is required to be updated from the configuration center to the local place, so that the performance of the real-time update of the configuration is slower; the user cannot acquire the latest configuration resources through the graphical interface, so that configuration updating operation is complicated when configuration is needed, and user experience is reduced.
Disclosure of Invention
In order to solve the technical problems, especially the problems that the configuration of the client is slow to update and easy to make mistakes when the configuration of the server is updated in the current project, the following technical scheme is specially provided:
the method for updating the client resource allocation provided by the embodiment of the invention comprises the following steps:
acquiring project production information, determining ladder configuration of the project according to the project production information, and establishing long connection between the client and the server for executing the project corresponding to the ladder configuration;
the client acquires latest configuration resource information of a ladder corresponding to the client from a server in real time through the long connection, and pulls latest configuration resources corresponding to the latest configuration resource information from a configuration center according to the configuration resource information;
and the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client.
Optionally, the ladder includes a first ladder, a second ladder, and a third ladder, where the first ladder configures resource information based on the first ladder, the second ladder is all the latest configuration resource information of the project, and the third ladder determines the project configuration resource information based on feature information of a user.
Optionally, the third step is obtained by a method,
acquiring the user characteristic information of the client, wherein the user characteristic information comprises user preference, user history configuration resources, user gender and user history attention information;
and determining third ladder configuration resource information corresponding to the client according to the user characteristic information and the project production information.
Optionally, the pulling, according to the configuration resource information, the latest configuration resource corresponding to the latest configuration resource information from the configuration center includes:
the client pulls the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to a preset time period;
storing the latest configuration resources in a preset database and/or synchronizing the latest configuration resources into a preset cache file.
Optionally, the background server of the client terminal includes:
and responding to configuration acquisition operation of a user on a graphical interface of the client, and loading the latest configuration resource from the preset cache file.
Optionally, the background server of the client updates the configuration resource of the client based on the latest configuration resource acquired by the client, including:
When the background server of the client monitors that the client pulls the latest configuration resource in real time, the client is updated according to the latest configuration resource.
The embodiment of the application also provides a device for updating the client resource configuration, which comprises:
the long connection establishment module is used for acquiring project production information, determining ladder configuration of the project and a client and a server for executing the project corresponding to the ladder configuration according to the project production information, and establishing long connection between the client and the server;
the acquisition module is used for the client to acquire the latest configuration resource information of the ladder corresponding to the client from the server in real time through the long connection, and pull the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to the configuration resource information;
and the updating module is used for updating the configuration resources of the client based on the latest configuration resources acquired by the client by the background server of the client.
Optionally, the acquiring module includes:
the characteristic information acquisition unit is used for acquiring the user characteristic information of the client, wherein the user characteristic information comprises user preference, user history configuration resources, user gender and user history attention information;
And the configuration resource determining unit is used for determining third ladder configuration resource information corresponding to the client according to the user characteristic information and the project production information.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a computer program, and the program realizes the client resource configuration updating method according to any technical scheme when being executed by a processor.
The embodiment of the invention also provides a server, which comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the steps of the client resource configuration updating method according to any of the claims.
Compared with the prior art, the invention has the following beneficial effects:
1. the method for updating the client resource configuration provided by the embodiment of the application comprises the following steps: acquiring project production information, determining ladder configuration of the project according to the project production information, and establishing long connection between the client and the server for executing the project corresponding to the ladder configuration; the client acquires latest configuration resource information of a ladder corresponding to the client from a server in real time through the long connection, and pulls latest configuration resources corresponding to the latest configuration resource information from a configuration center according to the configuration resource information; and the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client. In the method, the configuration modification and the authority of configuration information release are separated, so that the configuration can be uniformly released, and meanwhile, the safety and stability of production operation can be ensured. The method and the device improve the instantaneity of configuration information acquisition, acquire configuration information corresponding to the ladder according to the client so as to acquire configuration resources corresponding to the ladder, avoid inconvenience to partial users caused by excessive configuration updating of the client, avoid the need of users to execute any other operation during configuration updating, improve user experience, realize opening different authorities according to different users according to the updating of the configuration resources of the ladder, and also can release different versions based on different environments so as to provide different configurations for the users and further improve the user experience.
2. The method for updating the configuration of the client resource provided by the embodiment of the application, wherein the pulling the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to the configuration resource information comprises the following steps: the client pulls the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to a preset time period; storing the latest configuration resources in a preset database and/or synchronizing the latest configuration resources into a preset cache file. The client establishes the same association relationship with the configuration center, and the client is connected with the server through long connection, so that the client can acquire the latest configuration information from the server in real time, and can acquire configuration resources corresponding to the configuration information pushed by the server from the configuration center at regular time. The running efficiency of the client at the terminal is improved, the client is prevented from frequently communicating with the configuration center, the client can acquire the latest configuration resources from the project generation configuration center according to the preset time period, further, the user does not need to execute other operations to update the configuration, the latest configuration resources are updated unconsciously by the user, the user uses the latest configuration resources, and the user experience is improved.
3. The method for updating the resource configuration of the client provided by the embodiment of the application, wherein the background server of the client is based on the latest configuration resource acquired by the client, comprises the following steps: and responding to configuration acquisition operation of a user on a graphical interface of the client, and loading the latest configuration resource from the preset cache file. The graphical interface of the client in the terminal is provided with a graphical interface for acquiring configuration resources, a user can enter the configuration file through the graphical interface into the cache file entry at the client, and further the user can modify the configuration file at the client, so that the user can modify the configuration file according to the needs of the user, the application program is enabled to be more in accordance with the personalized characteristics of the user, and the user experience is improved. Furthermore, authority control can be realized for users, and different users can open different authorities based on role functions of the users, so that different configuration information can be obtained. Particularly, based on the terminal where the client is located, different authorities can be opened to the user, and then versions can be issued for different environments.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flowchart of an embodiment of a method for updating a client resource configuration according to an exemplary embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an exemplary embodiment of a client resource configuration updating apparatus according to the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a server according to the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It will be appreciated by those skilled in the art that references to "application," "application program," "application software," and similar concepts herein are intended to be equivalent concepts well known to those skilled in the art, and refer to computer software, organically constructed from a series of computer instructions and related data resources, suitable for electronic execution. Unless specifically specified, such naming is not limited by the type, level of programming language, nor by the operating system or platform on which it operates. Of course, such concepts are not limited by any form of terminal.
In one embodiment, as shown in fig. 1, a method for updating a client resource configuration includes: s100, S200, S300.
S100: acquiring project production information, determining ladder configuration of the project according to the project production information, and establishing long connection between the client and the server for executing the project corresponding to the ladder configuration;
s200: the client acquires latest configuration resource information of a ladder corresponding to the client from a server in real time through the long connection, and pulls latest configuration resources corresponding to the latest configuration resource information from a configuration center according to the configuration resource information;
s300: and the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client.
In this application, a framework for rpc communication was developed based on netty: the client, the server and the configuration center config are separated from each other, namely, the configuration file modification end and the release end are separated in the technical scheme provided by the application. The project generation information mainly comprises an application program main information, wherein the application program main information comprises a version of an application program running in a client, latest version information of a configuration center, an application program name, a main structure of application program update, a client and a server for applying the application program, after the project generation information is determined, long connection between the client and the server is established, and before the project generation information is determined, the client and the server are required to establish an association relation with the configuration center, the configuration center can push the latest configuration information to the client through the server, the server can broadcast the latest configuration information to the corresponding client, so that each client can acquire corresponding configuration resources from the configuration center.
In the technical scheme provided by the application, the configuration center is respectively associated with the client and the server, the client and the server are connected in a long way, the client can pull the latest configuration information from the server, and the client can acquire the latest configuration resources from the configuration center. Further, in order to ensure that the latest configuration pulled by the client can be normally loaded when the service is unavailable, so that the local service is not affected, the client monitors whether the server side has configuration resource update information update, and sometimes, the client acquires and caches the latest configuration resource pulled corresponding to the information from the configuration center.
As a product, if the product needs to be developed on line in a rapid iteration way, the quality is ensured, the system just on line is ensured, once a problem occurs, the influence surface can be rapidly controlled, and a set of gray level release system needs to be designed; on which a/B testing can be performed, i.e. letting a part of the users continue to use the product property a and a part of the users start to use the product property B, if the users do not have any objection to B, the scope is gradually expanded and all users are migrated to B. The gray level release can ensure the stability of the whole system, and the problems can be found and adjusted during the initial gray level so as to ensure the influence degree. Gray period: this period of time from the start to the end of gradation release is called a gradation period. According to the technical scheme, the stepwise configuration resources and the client information corresponding to the stepwise configuration resources can be constructed through the above-mentioned process, so that the client capable of gray level release can be rapidly determined, the need of screening the client again when gray level release is needed each time is avoided, meanwhile, the requirements of different users can be guaranteed, the configuration resources of different projects are updated according to the configuration of different steps and the corresponding client thereof, gray level release of different versions of the production information of different projects is realized, the requirements of different users are met, user experience is improved, and meanwhile, feedback of the project production information configuration resources can be better and more targeted for statistics so that the application program can be better optimized.
Correspondingly, when the application program has a server of the application program itself and the client side has determined that the client side already comprises the latest configuration information, the configuration information of the application program is dynamically updated according to the latest configuration information of the client side, wherein the configuration information of the resource is the configuration information which needs to be dynamically modified by the server side. On the basis of the above, when the client acquires the latest configuration information, in order to enable the client to update the configuration resources in time, the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client, so that the user can experience the latest configuration resources more quickly. In the process, the configuration modification and the configuration information release are subjected to authority separation, so that the situation that the configuration can be updated only after the client is restarted or the data interface between the client and the service is updated each time can be avoided, and the instantaneity of configuration information acquisition is improved.
Optionally, the ladder includes a first ladder, a second ladder, and a third ladder, where the first ladder configures resource information based on the first ladder, the second ladder is all the latest configuration resource information of the project, and the third ladder determines the project configuration resource information based on feature information of a user. Namely, the configuration resource information of the third ladder dynamically adjusts the information of the configuration resource of the third ladder according to the user characteristics so as to meet the user requirements to the greatest extent and further improve the user experience. For the first ladder, the second ladder and the third ladder, the pulling mode and the updating mode are different, for example, basic configuration resource information is configured when a project is started, the project configuration resource information is set user characteristic feedback, all configuration resource information is updated in real time, and therefore the problems that different configuration information can be solved, the processing modes are different, and the updating efficiency of different configurations is improved can be solved.
Optionally, the third step is obtained by a method,
acquiring the user characteristic information of the client, wherein the user characteristic information comprises user preference, user history configuration resources, user gender and user history attention information;
and determining third ladder configuration resource information corresponding to the client according to the user characteristic information and the project production information.
As described above, the configuration resource information of the third ladder dynamically adjusts the information of the third ladder configuration resource according to the user characteristics, so as to meet the user requirements to the greatest extent, further improve the user experience, the server obtains the characteristic information of the user in the client, and the corresponding user characteristic information includes the preference, sex, history configuration resource and history attention information of the user, and from the information, the information capable of purchasing the information meeting the user requirements can be determined, and further the third ladder configuration is recommended to the user based on the characteristic information. For example, the third ladder configuration includes a configuration similar to a commodity advertisement, and if the user is male and likes basketball, and the user usually watches basketball video through the client (the client history configuration includes the configuration of basketball), the configuration of basketball commodity advertisement can be pushed to the user, so that the user can conveniently enter a purchase channel of basketball commodity through the interface, and the user can quickly enter the purchase platform to search for basketball commodity through the graphical interface of the client configuration, so that the user can quickly and conveniently search for the required commodity, and further user experience is improved.
Optionally, the pulling, according to the configuration resource information, the latest configuration resource corresponding to the latest configuration resource information from the configuration center includes:
the client pulls the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to a preset time period;
storing the latest configuration resources in a preset database and/or synchronizing the latest configuration resources into a preset cache file.
The client establishes the same association relation with the configuration center by combining the project production information, and is connected with the server through long connection, so that the client can acquire the latest configuration information from the server in real time, can acquire corresponding configuration resources from the configuration center in real time according to the configuration information, and can acquire the configuration resources corresponding to the configuration information pushed by the server from the configuration center at fixed time. In order to improve the running efficiency of the client in the terminal and avoid frequent communication between the client and the configuration center, the client can acquire the latest configuration resources from the project generation configuration center according to a preset time period, so that a user can update the configuration without executing other operations, the latest configuration resources are updated unconsciously by the user, the user uses the latest configuration resources, and the user experience is improved.
Further, the latest configuration resources may also be stored in a preset database, for example, in a memory, for updating the configuration before the client, and when the client loads, the latest configuration resources may be called from the memory. Furthermore, the latest configuration resources can be synchronized to a preset cache file, such as a cache of a background server of the client, when the server of the configuration center is unavailable, the server of the client is also unavailable, and the latest configuration information is synchronized to the preset cache file, so that the client can load the configuration resources in the cache, and when the timeliness of acquiring the configuration resources is improved, the client can execute corresponding tasks locally based on the configuration, thereby not affecting the normal provision of the service of the client.
Optionally, the background server of the client terminal includes:
and responding to configuration acquisition operation of a user on a graphical interface of the client, and loading the latest configuration resource from the preset cache file.
In the technical scheme provided by the application, the graphical interface for acquiring the configuration resources is provided on the graphical interface of the client in the terminal, the user can enter the configuration file through the graphical interface into the cache file entry at the client, further, the user can modify the configuration file at the client, after the configuration file modification is completed, the server of the background application program monitors that the configuration file of the client is modified, namely, the configuration file after the modification in the cache is acquired, so that the user can modify the configuration file according to own needs, the application program is more in accordance with the personalized characteristics of the user, and the user experience is improved. Furthermore, authority control can be realized for users, and different users can open different authorities based on role functions of the users, so that different configuration information can be obtained. Particularly, based on the terminal where the client is located, different authorities can be opened to the user, and then versions can be issued for different environments.
Optionally, the background server of the client updates the configuration resource of the client based on the latest configuration resource acquired by the client, including:
when the background server of the client monitors that the client pulls the latest configuration resource in real time, the client is updated according to the latest configuration resource.
In combination with the foregoing process, in the technical solution provided in the present application, the background service of the client monitors, in real time, whether the cache or the database of the client has the latest configuration resource, if so, in order to improve the user experience, so that the user can update the corresponding resource more quickly and conveniently, or update the corresponding latest configuration resource in the unconscious situation of the user, and updates the configuration of the client according to the monitored latest configuration resource.
The embodiment of the invention also provides a device for updating the resource allocation of the client, in one implementation manner, as shown in fig. 2, the device comprises: long connection establishment module 100, acquisition module 200, update module 300:
a long connection establishing module 100, configured to obtain project production information, determine a ladder configuration of the project according to the project production information, and a client and a server for executing the project corresponding to the ladder configuration, and establish a long connection between the client and the server;
The obtaining module 200 is configured to obtain, from a server, in real time, latest configuration resource information of a ladder corresponding to the client through the long connection, and pull, from a configuration center, latest configuration resources corresponding to the latest configuration resource information according to the configuration resource information;
and the updating module 300 is used for updating the configuration resources of the client based on the latest configuration resources acquired by the client by the background server of the client.
Further, as shown in fig. 2, the method and apparatus for updating client resource configuration provided in the embodiments of the present invention further include: a feature information obtaining unit 210, configured to obtain the user feature information of the client, where the user feature information includes preference of a user, user history configuration resources, user gender, and user history attention information; and the configuration resource determining unit 220 is configured to determine third ladder configuration resource information corresponding to the client according to the user characteristic information and the item production information. A pulling unit 230, configured to pull, by a client, a latest configuration resource corresponding to the latest configuration resource information from the configuration center according to a preset time period; the storage unit 240 is configured to store the latest configuration resource in a preset database and/or synchronize the latest configuration resource to a preset cache file. And the loading unit 310 is configured to load the latest configuration resource from the preset cache file in response to a configuration acquisition operation of the user on the graphical interface of the client. And the updating unit 320 is configured to update the client according to the latest configuration resource when the background server of the client monitors that the client pulls the latest configuration resource in real time.
The embodiment of the method for updating the client resource configuration can be realized by the device for updating the client resource configuration, and specific function realization is shown in the description of the embodiment of the method and is not repeated herein.
The embodiment of the invention provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the program is executed by a processor, the method for updating the client resource configuration in any technical scheme is realized. The computer readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS Memory, random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., computer, cell phone), and may be read-only memory, magnetic or optical disk, etc.
The embodiment of the invention can realize the embodiment of the client resource allocation updating method, and the configuration modification and the authority separation of the configuration information release in the application can ensure that the configuration can be uniformly released, and meanwhile, the safety and the stability of production operation can be ensured. The real-time performance of configuration information acquisition is improved, configuration information corresponding to the ladder is acquired according to the client, so that configuration resources corresponding to the ladder are acquired, inconvenience brought to partial users by excessive configuration updating of the client is avoided, other operations are not required to be executed by the users when configuration updating is carried out, and user experience is improved; the method for updating the client resource configuration provided by the embodiment of the application comprises the following steps: acquiring project production information, determining ladder configuration of the project according to the project production information, and establishing long connection between the client and the server for executing the project corresponding to the ladder configuration; the client acquires latest configuration resource information of a ladder corresponding to the client from a server in real time through the long connection, and pulls latest configuration resources corresponding to the latest configuration resource information from a configuration center according to the configuration resource information; and the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client. In this application, a framework for rpc communication was developed based on netty: the client, the server and the configuration center config are separated from each other, namely, the configuration file modification end and the release end are separated in the technical scheme provided by the application. The project generation information mainly comprises an application program main information, wherein the application program main information comprises a version of an application program running in a client, latest version information of a configuration center, an application program name, a main structure of application program update, a client and a server for applying the application program, after the project generation information is determined, long connection between the client and the server is established, and before the project generation information is determined, the client and the server are required to establish an association relation with the configuration center, the configuration center can push the latest configuration information to the client through the server, the server can broadcast the latest configuration information to the corresponding client, so that each client can acquire corresponding configuration resources from the configuration center. In the technical scheme provided by the application, the configuration center is respectively associated with the client and the server, the client and the server are connected in a long way, the client can pull the latest configuration information from the server, and the client can acquire the latest configuration resources from the configuration center. Further, in order to ensure that the latest configuration pulled by the client can be normally loaded when the service is unavailable, so that the local service is not affected, the client monitors whether the server side has configuration resource update information update, and sometimes, the client acquires and caches the latest configuration resource pulled corresponding to the information from the configuration center. As a product, if the product needs to be developed on line in a rapid iteration way, the quality is ensured, the system just on line is ensured, once a problem occurs, the influence surface can be rapidly controlled, and a set of gray level release system needs to be designed; on which a/B testing can be performed, i.e. letting a part of the users continue to use the product property a and a part of the users start to use the product property B, if the users do not have any objection to B, the scope is gradually expanded and all users are migrated to B. The gray level release can ensure the stability of the whole system, and the problems can be found and adjusted during the initial gray level so as to ensure the influence degree. Gray period: this period of time from the start to the end of gradation release is called a gradation period. According to the technical scheme, the stepwise configuration resources and the client information corresponding to the stepwise configuration resources can be constructed through the above-mentioned process, so that the client capable of gray level release can be rapidly determined, the need of screening the client again when gray level release is needed each time is avoided, meanwhile, the requirements of different users can be guaranteed, the configuration resources of different projects are updated according to the configuration of different steps and the corresponding client thereof, gray level release of different versions of the production information of different projects is realized, the requirements of different users are met, user experience is improved, and meanwhile, feedback of the project production information configuration resources can be better and more targeted for statistics so that the application program can be better optimized. Correspondingly, when the application program has a server of the application program itself and the client side has determined that the client side already comprises the latest configuration information, the configuration information of the application program is dynamically updated according to the latest configuration information of the client side, wherein the configuration information of the resource is the configuration information which needs to be dynamically modified by the server side. On the basis of the above, when the client acquires the latest configuration information, in order to enable the client to update the configuration resources in time, the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client, so that the user can experience the latest configuration resources more quickly.
In addition, in another embodiment, the present invention further provides a server, as shown in fig. 3, where the server processor 503, the memory 505, the input unit 507, the display unit 509, and other devices. Those skilled in the art will appreciate that the structural elements shown in fig. 3 do not constitute a limitation on all servers, and may include more or fewer components than shown, or may combine certain components. The memory 505 may be used to store an application 501 and various functional modules, and the processor 503 runs the application 501 stored in the memory 505 to perform various functional applications and data processing of the device. The memory 505 may be an internal memory or an external memory, or include both internal and external memories. The internal memory may include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, floppy disk, ZIP disk, U-disk, tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The memory 505 of the present disclosure is by way of example only and not by way of limitation.
The input unit 507 is used for receiving input of signals, as well as personal information and related physical condition information input by a user. The input unit 507 may include a touch panel and other input devices. The touch panel can collect touch operations on or near the client (such as operations of the client on or near the touch panel using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, mouse, joystick, etc. The display unit 509 may be used to display information input by a client or information provided to the client and various menus of the computer device. The display unit 509 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 503 is the control center of the computer device, connecting the various parts of the overall computer using various interfaces and lines, performing various functions and processing data by running or executing software programs and/or modules stored in the memory 503, and invoking data stored in the memory. The one or more processors 503 shown in fig. 3 are capable of executing, implementing, the functions of the long connection establishment module 100, the functions of the acquisition module 200, the functions of the update module 300, the functions of the feature information acquisition unit 210, the functions of the configuration resource determination unit 220, the functions of the pull unit 230, the functions of the storage unit 240, the functions of the loading unit 310, the functions of the update unit 320 shown in fig. 2.
In one embodiment, the server includes one or more processors 503 and one or more memories 505, one or more applications 501, wherein the one or more applications 501 are stored in the memory 505 and configured to be executed by the one or more processors 503, and the one or more applications 301 are configured to perform the client resource configuration updating method described in the above embodiments.
The server provided by the embodiment of the invention can realize the embodiment of the client resource allocation updating method, and in the application, the allocation modification and the authority separation of the allocation information release can be realized, so that the allocation can be uniformly released, and the safety and the stability of production operation can be ensured. The real-time performance of configuration information acquisition is improved, configuration information corresponding to the ladder is acquired according to the client, so that configuration resources corresponding to the ladder are acquired, inconvenience brought to partial users by excessive configuration updating of the client is avoided, other operations are not required to be executed by the users when configuration updating is carried out, and user experience is improved; the method for updating the client resource configuration provided by the embodiment of the application comprises the following steps: acquiring project production information, determining ladder configuration of the project according to the project production information, and establishing long connection between the client and the server for executing the project corresponding to the ladder configuration; the client acquires latest configuration resource information of a ladder corresponding to the client from a server in real time through the long connection, and pulls latest configuration resources corresponding to the latest configuration resource information from a configuration center according to the configuration resource information; and the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client. In this application, a framework for rpc communication was developed based on netty: the client, the server and the configuration center config are separated from each other, namely, the configuration file modification end and the release end are separated in the technical scheme provided by the application. The project generation information mainly comprises an application program main information, wherein the application program main information comprises a version of an application program running in a client, latest version information of a configuration center, an application program name, a main structure of application program update, a client and a server for applying the application program, after the project generation information is determined, long connection between the client and the server is established, and before the project generation information is determined, the client and the server are required to establish an association relation with the configuration center, the configuration center can push the latest configuration information to the client through the server, the server can broadcast the latest configuration information to the corresponding client, so that each client can acquire corresponding configuration resources from the configuration center. In the technical scheme provided by the application, the configuration center is respectively associated with the client and the server, the client and the server are connected in a long way, the client can pull the latest configuration information from the server, and the client can acquire the latest configuration resources from the configuration center. Further, in order to ensure that the latest configuration pulled by the client can be normally loaded when the service is unavailable, so that the local service is not affected, the client monitors whether the server side has configuration resource update information update, and sometimes, the client acquires and caches the latest configuration resource pulled corresponding to the information from the configuration center. As a product, if the product needs to be developed on line in a rapid iteration way, the quality is ensured, the system just on line is ensured, once a problem occurs, the influence surface can be rapidly controlled, and a set of gray level release system needs to be designed; on which a/B testing can be performed, i.e. letting a part of the users continue to use the product property a and a part of the users start to use the product property B, if the users do not have any objection to B, the scope is gradually expanded and all users are migrated to B. The gray level release can ensure the stability of the whole system, and the problems can be found and adjusted during the initial gray level so as to ensure the influence degree. Gray period: this period of time from the start to the end of gradation release is called a gradation period. According to the technical scheme, the stepwise configuration resources and the client information corresponding to the stepwise configuration resources can be constructed through the above-mentioned process, so that the client capable of gray level release can be rapidly determined, the need of screening the client again when gray level release is needed each time is avoided, meanwhile, the requirements of different users can be guaranteed, the configuration resources of different projects are updated according to the configuration of different steps and the corresponding client thereof, gray level release of different versions of the production information of different projects is realized, the requirements of different users are met, user experience is improved, and meanwhile, feedback of the project production information configuration resources can be better and more targeted for statistics so that the application program can be better optimized. Correspondingly, when the application program has a server of the application program itself and the client side has determined that the client side already comprises the latest configuration information, the configuration information of the application program is dynamically updated according to the latest configuration information of the client side, wherein the configuration information of the resource is the configuration information which needs to be dynamically modified by the server side. On the basis of the above, when the client acquires the latest configuration information, in order to enable the client to update the configuration resources in time, the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client, so that the user can experience the latest configuration resources more quickly.
The server provided by the embodiment of the present invention can implement the embodiment of the method for updating the client resource allocation provided above, and the specific function implementation is described in the method embodiment and is not repeated here.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.
Claims (9)
1. A method for updating a client resource configuration, comprising:
acquiring project production information, determining ladder configuration of each ladder in a plurality of ladders of a project according to the project production information, and establishing long connection between a client and a server of an execution project corresponding to the ladder configuration;
the client acquires latest configuration resource information of a ladder corresponding to the client from a server in real time through the long connection, and pulls latest configuration resources corresponding to the latest configuration resource information from a configuration center according to the configuration resource information;
the background server of the client updates the configuration resources of the client based on the latest configuration resources acquired by the client;
The project production information comprises information of application programs corresponding to the projects; the plurality of steps comprise a first step, a second step and a third step, wherein the steps of the first step are configured to be used for configuring resource information on the basis, the steps of the second step are configured to be used for all latest configuration resource information of the project, and the steps of the third step are configured to be used for determining the configuration resource information of the project based on user characteristic information; each ladder of the plurality of ladders corresponds to a respective client, and the first ladder and the second ladder correspond to different versions of an application program, respectively.
2. The method for updating a client resource allocation according to claim 1, wherein the third ladder is obtained by,
acquiring the user characteristic information of the client, wherein the user characteristic information comprises user preference, user history configuration resources, user gender and user history attention information;
and determining third ladder configuration resource information corresponding to the client according to the user characteristic information and the project production information.
3. The method for updating the configuration of the client resource according to claim 1, wherein the pulling the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to the configuration resource information comprises:
The client pulls the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to a preset time period;
storing the latest configuration resources in a preset database and/or synchronizing the latest configuration resources into a preset cache file.
4. A client resource allocation update method according to claim 3, wherein the client's backend server is based on the latest allocation resources acquired by the client, comprising:
and responding to configuration acquisition operation of a user on a graphical interface of the client, and loading the latest configuration resource from the preset cache file.
5. The method for updating the configuration of the client resource according to claim 1, wherein the background server of the client updates the configuration resource of the client based on the latest configuration resource acquired by the client, comprising:
when the background server of the client monitors that the client pulls the latest configuration resource in real time, the client is updated according to the latest configuration resource.
6. A client resource allocation updating apparatus, comprising:
the long connection establishment module is used for acquiring project production information, determining ladder configuration of each ladder in a plurality of ladders of a project and a client and a server of an execution project corresponding to the ladder configuration according to the project production information, and establishing long connection between the client and the server;
The acquisition module is used for the client to acquire the latest configuration resource information of the ladder corresponding to the client from the server in real time through the long connection, and pull the latest configuration resource corresponding to the latest configuration resource information from the configuration center according to the configuration resource information;
the updating module is used for updating the configuration resources of the client based on the latest configuration resources acquired by the client by the background server of the client;
the project production information comprises information of application programs corresponding to the projects; the plurality of steps comprise a first step, a second step and a third step, wherein the steps of the first step are configured to be used for configuring resource information on the basis, the steps of the second step are configured to be used for all latest configuration resource information of the project, and the steps of the third step are configured to be used for determining the configuration resource information of the project based on user characteristic information; each ladder of the plurality of ladders corresponds to a respective client, and the first ladder and the second ladder correspond to different versions of an application program, respectively.
7. The client resource configuration updating apparatus according to claim 6, wherein the acquisition module includes:
The system comprises a characteristic information acquisition unit, a characteristic information processing unit and a characteristic information processing unit, wherein the characteristic information acquisition unit is used for acquiring user characteristic information of a client, and the user characteristic information comprises user preference, user history configuration resources, user gender and user history attention information;
and the configuration resource determining unit is used for determining third ladder configuration resource information corresponding to the client according to the user characteristic information and the project production information.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the client resource allocation update method of any of claims 1 to 5.
9. A server, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the steps of the client resource configuration updating method according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910612028.3A CN110471679B (en) | 2019-07-08 | 2019-07-08 | Client resource allocation updating method and device, storage medium and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910612028.3A CN110471679B (en) | 2019-07-08 | 2019-07-08 | Client resource allocation updating method and device, storage medium and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110471679A CN110471679A (en) | 2019-11-19 |
CN110471679B true CN110471679B (en) | 2024-04-02 |
Family
ID=68507478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910612028.3A Active CN110471679B (en) | 2019-07-08 | 2019-07-08 | Client resource allocation updating method and device, storage medium and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471679B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111147312B (en) * | 2019-12-31 | 2022-11-22 | 深圳云天励飞技术股份有限公司 | Resource allocation management method and device, resource allocation cache management method and device, and allocation management system |
CN112231010B (en) * | 2020-09-28 | 2023-06-06 | 四川新网银行股份有限公司 | Method for managing and dynamically updating application configuration information based on OSGI (open service gateway initiative) specification |
CN112417402B (en) * | 2020-11-27 | 2024-04-12 | 亿企赢网络科技有限公司 | Authority control method, authority control device, authority control equipment and storage medium |
CN112882735B (en) * | 2021-03-11 | 2024-04-19 | 百度在线网络技术(北京)有限公司 | Fuse information processing method, device, equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103731437A (en) * | 2014-01-26 | 2014-04-16 | 合一网络技术(北京)有限公司 | Method and system for configuring information delivery |
WO2015169085A1 (en) * | 2014-05-05 | 2015-11-12 | 中国科学院声学研究所 | Method, device and system for processing media resource information |
CN105099761A (en) * | 2015-06-26 | 2015-11-25 | 广东欧珀移动通信有限公司 | Method and system for concentratedly managing configuration information of client |
CN108090069A (en) * | 2016-11-22 | 2018-05-29 | 北京神州泰岳软件股份有限公司 | A kind of method and apparatus for showing web page resources in a browser |
CN108647096A (en) * | 2018-05-16 | 2018-10-12 | Oppo广东移动通信有限公司 | Method of adjustment, device, storage medium and the mobile terminal of system resource configuration |
CN108696374A (en) * | 2017-04-10 | 2018-10-23 | 北京京东尚科信息技术有限公司 | Update the method and apparatus of client configuration |
CN109660377A (en) * | 2017-10-12 | 2019-04-19 | 中兴通讯股份有限公司 | Unified configuring management method, service server and operation and maintenance management platform |
CN109857429A (en) * | 2019-01-04 | 2019-06-07 | 浪潮商用机器有限公司 | A kind of update method, device, equipment and the storage medium of resources of virtual machine configuration |
-
2019
- 2019-07-08 CN CN201910612028.3A patent/CN110471679B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103731437A (en) * | 2014-01-26 | 2014-04-16 | 合一网络技术(北京)有限公司 | Method and system for configuring information delivery |
WO2015169085A1 (en) * | 2014-05-05 | 2015-11-12 | 中国科学院声学研究所 | Method, device and system for processing media resource information |
CN105099761A (en) * | 2015-06-26 | 2015-11-25 | 广东欧珀移动通信有限公司 | Method and system for concentratedly managing configuration information of client |
CN108090069A (en) * | 2016-11-22 | 2018-05-29 | 北京神州泰岳软件股份有限公司 | A kind of method and apparatus for showing web page resources in a browser |
CN108696374A (en) * | 2017-04-10 | 2018-10-23 | 北京京东尚科信息技术有限公司 | Update the method and apparatus of client configuration |
CN109660377A (en) * | 2017-10-12 | 2019-04-19 | 中兴通讯股份有限公司 | Unified configuring management method, service server and operation and maintenance management platform |
CN108647096A (en) * | 2018-05-16 | 2018-10-12 | Oppo广东移动通信有限公司 | Method of adjustment, device, storage medium and the mobile terminal of system resource configuration |
CN109857429A (en) * | 2019-01-04 | 2019-06-07 | 浪潮商用机器有限公司 | A kind of update method, device, equipment and the storage medium of resources of virtual machine configuration |
Also Published As
Publication number | Publication date |
---|---|
CN110471679A (en) | 2019-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110471679B (en) | Client resource allocation updating method and device, storage medium and server | |
US11106455B2 (en) | Integration of containers with external elements | |
US9678740B2 (en) | Migration mechanism | |
US8584115B2 (en) | Automated operating system device driver updating system | |
US20070143379A1 (en) | Metadata driven deployment of applications | |
US8239662B1 (en) | Network based operating system across devices | |
US10684838B2 (en) | Dynamic application deployment | |
US20090328025A1 (en) | Automatically managing versioning of mashup widgets | |
CA2894094C (en) | Managing software suite component versions | |
US9652220B2 (en) | Zero down-time deployment of new application versions | |
CN113312037A (en) | Data processing method, device and equipment applied to microservice and storage medium | |
US20120084413A1 (en) | Mechanism for Installing Monitoring Utilities Using Universal Performance Monitor | |
EP2238533A2 (en) | Managing component programs within a service application | |
US20210191739A1 (en) | Application startup method and apparatus, device and storage medium | |
CN111782235B (en) | Data upgrading and inquiring method and device | |
US20150067668A1 (en) | Installation engine and package format | |
US8683458B2 (en) | Automatic full install upgrade of a network appliance | |
CN114996337A (en) | Multi-cluster database management system and method | |
US10013259B2 (en) | User initiated data rollback using operating system partitions | |
CN113138785A (en) | Application program updating method and device | |
CN113157270A (en) | Page adaptation method and device | |
US8578276B2 (en) | Dynamic adaptive cross-site custom interface | |
US9614932B2 (en) | Managing and implementing web application data snapshots | |
CN109597660B (en) | Application configuration or service updating method and device, storage medium and terminal equipment | |
CN112426722B (en) | Method and device for thermally updating node map, storage medium and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |