CN110471679A - Client resource configures update method, device and storage medium, server - Google Patents

Client resource configures update method, device and storage medium, server Download PDF

Info

Publication number
CN110471679A
CN110471679A CN201910612028.3A CN201910612028A CN110471679A CN 110471679 A CN110471679 A CN 110471679A CN 201910612028 A CN201910612028 A CN 201910612028A CN 110471679 A CN110471679 A CN 110471679A
Authority
CN
China
Prior art keywords
client
configuration
resource
information
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910612028.3A
Other languages
Chinese (zh)
Other versions
CN110471679B (en
Inventor
张健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201910612028.3A priority Critical patent/CN110471679B/en
Publication of CN110471679A publication Critical patent/CN110471679A/en
Application granted granted Critical
Publication of CN110471679B publication Critical patent/CN110471679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution 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)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to data processing, data to update, batch updating technical field, a kind of client resource provided by the embodiments of the present application configures update method, it include: to obtain project construction information, the step configuration of the project and the client and server of project implementation corresponding with step configuration are determined according to project construction information, establish long connection between the two;Client obtains the latest configuration resource information that the client corresponds to ladder from server in real time by long connection, pulls the corresponding latest configuration resource of latest configuration resource information from configuration center according to configuration resource information;The latest configuration resource that the background server of client is obtained based on client updates the configuration resource of client.Configuration modification is separated with the permission that information is issued, and so that configuration is able to carry out unified publication, is guaranteed production and operation security and stability, improves the real-time for obtaining configuration information, issues different editions based on varying environment, different configurations is provided for user.

Description

Client resource configures update method, device and storage medium, server
Technical field
The present invention relates to data processing, data to update, batch updating technical field, and in particular to a kind of client resource is matched Set update method, device and storage medium, server.
Background technique
In Internet company's early stage of development, server and application program are less, and the configuration information of project can be all stored in In file, for example hereof some basic database informations, cache information configuration, each project has itself individually A configuration file.
With the development of internet technology, server and application program are more and more, and the configuration information of project is also got over Come more.When project configuration increases, the configuration of file type can then become chaotic, and the speed that server is configured is also under meeting Drop.When an application item is deployed on more machines, the configuration of any one of each renewal item is required in different clothes It is updated many times on business device file, trouble and easy error.In addition, we have to item when the configuration of renewal item Mesh service is closed, and then modifies the configuration information in configuration file, and will carry out restarting and issue again, and configured every time It when update, requires from configuration center to local, the update of configuration could be executed, cause the performance for configuring real-time update slower; User can not also get newest configuration resource by graphical interfaces, when needing to configure, so that configuration updates operation more Complexity reduces user experience.
Summary of the invention
To overcome the above technical problem, especially current project is when server end configuration updates, client configuration It updates slow and is easy the problem of malfunctioning, spy proposes following technical scheme:
A kind of client resource provided in an embodiment of the present invention configures update method, comprising:
Obtain project construction information, according to the project construction information determine the project step configuration and with the rank Ladder configures the client and server of corresponding project implementation, establishes the long company between the client and the server-side It connects;
The client obtains the latest configuration money that the client corresponds to ladder from server in real time by the long connection Source information pulls the corresponding latest configuration money of the latest configuration resource information from configuration center according to the configuration resource information Source;
The latest configuration resource that the background server of the client is obtained based on the client, updates matching for client Set resource.
Optionally, the ladder includes the first ladder, the second ladder, third ladder, is configured based on first ladder Resource information, second ladder are newest all configuration resource informations of the project, and the third ladder is based on user's Characteristic information determines the project configuration resource information.
Optionally, the third ladder obtains by the following method,
The user's characteristic information of client is obtained, the user's characteristic information includes the hobby of user, user's history It configures resource, user's gender, user's history and pays close attention to information;
According to the user's characteristic information and the project construction information, the corresponding third step configuration money of client is determined Source information.
Optionally, described to pull the latest configuration resource information correspondence from configuration center according to the configuration resource information Latest configuration resource, comprising:
It is corresponding most that client according to preset period of time pulls the latest configuration resource information from the configuration center New configuration resource;
The latest configuration resource is stored in presetting database and/or is synchronized in preset cache file.
Optionally, the latest configuration resource that the background server of the client is obtained based on the client, comprising:
Operation is obtained in the configuration of Client GUI in response to user, from the preset cache file described in load Latest configuration resource.
Optionally, the latest configuration resource that the background server of the client is obtained based on the client updates visitor The configuration resource at family end, comprising:
The latest configuration resource is pulled when the background server of client listens to client in real time, according to described in most New breath configuration resource updates client.
Embodiments herein additionally provides a kind of client resource configuration updating device, comprising:
Long connection establishment module determines the project according to the project construction information for obtaining project construction information The client and server of step configuration and project implementation corresponding with the step configuration, establishes the client and institute State the long connection between server-side;
Module is obtained, the client is obtained from server in real time by the long connection for the client and corresponds to ladder Latest configuration resource information, it is corresponding from configuration center to pull the latest configuration resource information according to the configuration resource information Latest configuration resource;
Update module, the latest configuration resource that the background server for the client is obtained based on the client, Update the configuration resource of client.
Optionally, the acquisition module includes:
Characteristic acquisition unit, for obtaining the user's characteristic information of client, the user's characteristic information packet Include hobby, user's history configuration resource, user's gender, the user's history concern information of user;
Resource determination unit is configured, for determining client according to the user's characteristic information and the project construction information Hold corresponding third step configuration resource information.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited on the computer readable storage medium Computer program is contained, which realizes that client resource described in any technical solution configures update side when being executed by processor Method.
The embodiment of the invention also provides a kind of servers, comprising:
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and quilt It is configured to be executed by one or more of processors, one or more of application programs are configured to carry out according to any skill Client resource described in art scheme configures the step of update method.
Compared with the prior art, the present invention has the following beneficial effects:
1, a kind of client resource provided by the embodiments of the present application configures update method, comprising: project construction information is obtained, The step configuration and corresponding with step configuration project implementation of the project are determined according to the project construction information Client and server establishes the long connection between the client and the server-side;The client is connected by the length It connects and obtains the latest configuration resource information that the client corresponds to ladder from server in real time, according to the configuration resource information from matching The center of setting pulls the corresponding latest configuration resource of the latest configuration resource information;The background server of the client is based on institute The latest configuration resource for stating client acquisition, updates the configuration resource of client.Configuration modification and configuration information in this application The permission of publication separates, so that configuration is able to carry out unified publication, while also can guarantee production and operation security and stability.It improves The real-time that configuration information obtains obtains the configuration information of corresponding ladder according to client, to obtain the configuration money of corresponding ladder Source, the update for avoiding client from crossing multi-configuration is inconvenient to certain customers' bring, when carrying out configuration update, does not need user and holds Other any operations of row, improve user experience, according to the update of step configuration resource, realize according to different users, open not Same permission equally can issue different editions based on varying environment, different configurations is provided for user, is further increased User experience.
2, a kind of client resource provided by the embodiments of the present application configures update method, described to believe according to the configuration resource Breath from configuration center pulls the corresponding latest configuration resource of the latest configuration resource information, comprising: client according to it is default when Between the period from the configuration center pull the corresponding latest configuration resource of the latest configuration resource information;By the latest configuration Resource is stored in presetting database and/or is synchronized in preset cache file.Due to client establish it is same with configuration center Sample has incidence relation, and client is also attached with server-side by long connection, and then client can be in real time from clothes Business end obtains newest configuration information, while can also be periodically from the configuration information phase of configuration center acquisition and server push Corresponding configuration resource.Client is improved in terminal operating efficiency, client is avoided continually to be communicated with configuration center, Client can generate configuration center from project according to preset period of time and obtain newest configuration resource, and then user does not need The update that executing other operations just realizes configuration uses user in the unconscious lower update latest configuration resource of user Latest configuration resource, improves user experience.
3, a kind of client resource provided by the embodiments of the present application configures update method, the background server of the client The latest configuration resource obtained based on the client, comprising: obtain behaviour in the configuration of Client GUI in response to user Make, the latest configuration resource is loaded from the preset cache file.It is provided with and obtains on the graphical interfaces of client in terminal The graphical interfaces of configuration resource is taken, user can enter cache file entrance by graphical interfaces in client and enter configuration file In, and then user can realize the modification to configuration file in client, and user is matched according to their own needs The modification of file is set, and application program is made more to meet the individualized feature of user, improves user experience.It is possible to further right User realizes permission control, and different users can obtain different configurations based on the open different permission of its role function Information.Particularly, based on the terminal where client, different rights can be opened to user, and then can be directed to varying environment Released version.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is that client resource of the present invention configures a kind of process signal of embodiment in the exemplary embodiments of update method Figure;
Fig. 2 is the structural schematic diagram for the exemplary embodiments that client resource of the present invention configures updating device;
Fig. 3 is an example structure schematic diagram of server of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refers to that there are the feature, integer, step, operations, but it is not excluded that in the presence of or addition it is one or more other Feature, integer, step, operation.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
It will be appreciated by those skilled in the art that so-called " application ", " application program ", " application software " and class of the invention It is same concept well known to those skilled in the art like the concept of statement, refers to and instructed by series of computation machine and related data The computer software for being suitable for electronics operation of the organic construction of resource.Unless specified, this name itself is not by programming language Type, rank, the operating system of operation of also not rely by it or platform are limited.In the nature of things, this genus also not by appoint The terminal of what form is limited.
A kind of client resource provided by the embodiments of the present application configures update method, in a kind of wherein embodiment, such as Shown in Fig. 1, comprising: S100, S200, S300.
S100: obtain project construction information, according to the project construction information determine the project step configuration and with The client and server of the corresponding project implementation of the step configuration, is established between the client and the server-side Long connection;
S200: the client, which by the long connection obtains the client from server in real time and corresponds to the newest of ladder, matches Resource information is set, pulls from configuration center that the latest configuration resource information is corresponding newest to match according to the configuration resource information Set resource;
S300: the latest configuration resource that the background server of the client is obtained based on the client updates client The configuration resource at end.
In this application, based on netty develop a rpc communication frame: client, server-side server with And configuration center config, i.e., configuration file is modified into end in technical solution provided by the present application and publishing side separates.Project is raw It is mainly an application program main information at information, which includes version, the configuration that application program is run in the client The latest version information and application name at center, the primary structure of the application program update, using the application program Client and server-side establish client based on the project construction information and the long of server-side connect after determination, and Before the process, it is also necessary to client above-mentioned and server-side and configuration center be established incidence relation, and then configuration center can With by the server, to client push latest configuration information, which can be broadcast to corresponding by server Client allows each client to obtain corresponding configuration resource from configuration center, further, provided by the present application In technical solution, client can monitor the latest configuration resource information that server receives in real time, in order to which client can be with Rapidly carry out the acquisition of latest configuration resource, holiday client when avoiding server broadcast latest configuration information, with reality The configuration of existing client can access update.
Wherein, in technical solution provided by the present application, configuration center is associated respectively with client and server-side, Client and the long connection of server-side simultaneously, client can pull newest configuration information from server-side, while client may be used also To obtain newest configuration resource from configuration center.Further, in order to guarantee latest configuration that client pulls service not When available, additionally it is possible to which the configuration of normal load local, so that local service is unaffected, whether client monitors server device end There is configuration resource updates information update, sometimes, client obtains the corresponding latest configuration resource of the information from configuration center and draws It takes and is cached.
It is online if necessary to iteratively faster exploitation due to a product, guarantee quality again, guarantees just online system, It so can cracking control influence face once going wrong, it is necessary to design a set of gray scale delivery system;It on it can be into Row A/B testing allows a part of user to continue to use product characteristic A, a part of user starts to use product characteristic B, if with Family is to what no opposing views of B, then gradually expanded scope, all moves to all users to come above B.Gray scale publication can be with The stabilization for guaranteeing total system, can find, adjustment problem when initial gray, to guarantee its disturbance degree.The gray scale phase: Gray scale issues this period of time, referred to as gray scale phase during start and ending.In technical solution provided by the present application, by preceding The process of stating allows to construct steps configuration resource, and client-side information corresponding with the steps configuration resource, And then can quickly determine and be able to carry out gray scale issue client terminal, when avoiding needing gray scale to issue each time, require again To screening for client, while also ensuring the demand of different user, the configuration and its for different ladders are corresponding Client carries out the update of disparity items production information configuration resource, realizes the different versions for disparity items production information This gray scale publication, meets the demand of different user, improves user experience, while more excellent can targetedly carry out project life The feedback for producing information configuration resource is counted, in order to be able to preferably optimization application.
Correspondingly, application program oneself has the server of oneself, determine that client has included latest configuration at it When information, then according to the configuration information of the latest configuration information dynamic more new application of client, wherein resource matches confidence Breath is the configuration information that server-side needs dynamic modification.On the basis of above-mentioned, when client gets latest configuration information, In order to enable client can update configuration resource in time, the background server of client newest is matched based on what client obtained Resource is set, the configuration resource of client is updated, so that user can experience newest configuration resource more quickly.Preceding During stating, by configuration modification and configuration information publication carry out permission separation, and then can to avoid every time restart client or Update client and the data-interface of service are just able to achieve the update of configuration, improve the real-time of configuration information acquisition.
Optionally, the ladder includes the first ladder, the second ladder, third ladder, is configured based on first ladder Resource information, second ladder are newest all configuration resource informations of the project, and the third ladder is based on user's Characteristic information determines the project configuration resource information.I.e. the configuration resource information of third ladder is adjusted according to user characteristics dynamic The information of third step configuration resource farthest to meet user demand, and then improves user experience.To the first ladder, Second ladder, third ladder pull mode and update mode difference, for example, configurations resource information is matched when starting project It sets, project configuration resource information is aggregate user profile feedback, and all configuration resource informations are real-time updates, and then be can solve Different configuration informations, processing mode is different, improves the problem of different configurations update efficiency.
Optionally, the third ladder obtains by the following method,
The user's characteristic information of client is obtained, the user's characteristic information includes the hobby of user, user's history It configures resource, user's gender, user's history and pays close attention to information;
According to the user's characteristic information and the project construction information, the corresponding third step configuration money of client is determined Source information.
As previously mentioned, the configuration resource information of third ladder is according to user characteristics dynamic adjustment third step configuration resource Information farthest to meet user demand, and then improves user experience, and server obtains the feature letter of user in client Breath, correspondingly, user's characteristic information includes hobby, gender, history the configuration resource and user's history concern information of user, from Can determine in the category information can purchase the information for meeting user demand, and then recommend third rank to user based on such characteristic information Ladder configuration.Illustratively, for example, third step configuration includes the configuration similar to Commdity advertisement, user is male, likes basketball And the user often passes through client viewing basketball video (configuration that the configuration of client history includes basketball), then it can be to user The configuration of basketball class Commdity advertisement is pushed, and then enters the purchasing channel of basketball class commodity by the interface convenient for user, so that User rapidly enters purchase platform lookup basketball class commodity by the graphical interfaces of the client configuration, allows user quick Oneself required article is easily searched, and then improves user experience.
Optionally, described to pull the latest configuration resource information correspondence from configuration center according to the configuration resource information Latest configuration resource, comprising:
It is corresponding most that client according to preset period of time pulls the latest configuration resource information from the configuration center New configuration resource;
The latest configuration resource is stored in presetting database and/or is synchronized in preset cache file.
In conjunction with project construction information above-mentioned, client, which is established, same as configuration center has incidence relation, and client End is also attached with server-side by long connection, and then client can match confidence from server-side acquisition is newest in real time Breath, according to the configuration information client can center obtains corresponding configuration resource from configuration in real time, while can also be with Periodically configuration resource corresponding with the configuration information of server push is obtained from configuration center.Exist to improve client Terminal operating efficiency, avoids client from continually being communicated with configuration center, client can according to preset period of time from Project generates configuration center and obtains newest configuration resource, and then user does not need to execute other operations just realizes configuration It updates, in the unconscious lower update latest configuration resource of user, so that user is used latest configuration resource, improve user experience.
Further, latest configuration resource can also be stored in the preset database, such as be stored in memory, is used for The configuration before client is updated, in client load, then can be called from memory to latest configuration resource.Further Ground, can also by latest configuration source synchronous into preset cache file, as client background server caching in, configuring The server at center cannot the used time, the server of client is also unavailable, by latest configuration synchronizing information to preset cache text In part, then client can load in caching and configure resource, and when improving the timeliness of configuration resource acquisition, client can also Locally to execute corresponding task based on the configuration, and then the normal offer of client service is not influenced.
Optionally, the latest configuration resource that the background server of the client is obtained based on the client, comprising:
Operation is obtained in the configuration of Client GUI in response to user, from the preset cache file described in load Latest configuration resource.
In technical solution provided by the present application, it is provided on the graphical interfaces of client in terminal and obtains configuration resource Graphical interfaces, user can enter cache file entrance by graphical interfaces in client and enter in configuration file, and then user The modification to configuration file can be realized in client, after configuration file modification is completed, the server of background application It listens to client configuration file to modify, that is, obtains the configuration file after the modification in caching, allow user's root It needs to carry out the modification of configuration file according to oneself, and application program is made more to meet the individualized feature of user, improve user's body It tests.It is possible to further realize permission control to user, different users opens different permissions based on its role function, into And different configuration informations can be obtained.Particularly, based on the terminal where client, different rights can be opened to user, into And varying environment released version can be directed to.
Optionally, the latest configuration resource that the background server of the client is obtained based on the client updates visitor The configuration resource at family end, comprising:
The latest configuration resource is pulled when the background server of client listens to client in real time, according to described in most New breath configuration resource updates client.
In conjunction with process above-mentioned, in technical solution provided by the present application, the background service of client monitors client in real time Whether newest configuration resource is had in the caching or database at end, if any in order to improve the experience of user, so that user can be with The update of respective resources is more rapidly easily carried out, or carries out corresponding latest configuration resource more in user's imperception situation Newly, then according to the configuration of the latest configuration resource updates client listened to.
The embodiment of the invention also provides a kind of client resources to configure updating device, in a kind of wherein embodiment, As shown in Figure 2, comprising: long connection establishment module 100 obtains module 200, update module 300:
Long connection establishment module 100 determines the project according to the project construction information for obtaining project construction information Step configuration and project implementation corresponding with the step configuration client and server, establish the client with Long connection between the server-side;
Module 200 is obtained, the client is obtained from server in real time by the long connection for the client and is corresponded to The latest configuration resource information of ladder pulls the latest configuration resource information from configuration center according to the configuration resource information Corresponding latest configuration resource;
Update module 300, the latest configuration money that the background server for the client is obtained based on the client Source updates the configuration resource of client.
Further, as shown in Fig. 2, a kind of client resource configuration update method device provided in the embodiment of the present invention Further include: characteristic acquisition unit 210, for obtaining the user's characteristic information of client, the user's characteristic information Hobby, user's history configuration resource, user's gender, user's history including user pay close attention to information;Configure resource determination unit 220, for determining the corresponding third step configuration money of client according to the user's characteristic information and the project construction information Source information.Unit 230 is pulled, the latest configuration is pulled from the configuration center according to preset period of time for client and provides The corresponding latest configuration resource of source information;Storage unit 240, for storing in the preset database the latest configuration resource And/or it is synchronized in preset cache file.Loading unit 310, for being obtained in response to user in the configuration of Client GUI Extract operation loads the latest configuration resource from the preset cache file.Updating unit 320, for when client after Platform server listens to client in real time and pulls the latest configuration resource, configures resource updates client according to the newest breath End.
Above-mentioned client money may be implemented in a kind of client resource configuration update method device provided in an embodiment of the present invention Source configures the embodiment of update method, and concrete function realizes the explanation referred in embodiment of the method, and details are not described herein.
A kind of computer readable storage medium provided in an embodiment of the present invention stores on the computer readable storage medium There is computer program, realizes that client resource described in any one technical solution configures update side when which is executed by processor Method.Wherein, the computer readable storage medium includes but is not limited to any kind of disk (including floppy disk, hard disk, CD, CD- ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random AcceSS Memory, immediately Memory), EPROM (EraSable Programmable Read-Only Memory, Erarable Programmable Read only Memory), (Electrically EraSable Programmable Read-Only Memory, electric erazable programmable is read-only to be deposited EEPROM Reservoir), flash memory, magnetic card or light card.It is, storage equipment includes by equipment (for example, computer, mobile phone) with energy Any medium for the form storage or transmission information enough read can be read-only memory, disk or CD etc..
A kind of computer readable storage medium provided in an embodiment of the present invention is, it can be achieved that the configuration of above-mentioned client resource updates The embodiment of method, configuration modification is separated with the permission that configuration information is issued in this application, so that configuration is able to carry out unification Publication, while also can guarantee production and operation security and stability.The real-time for improving configuration information acquisition, obtains according to client The configuration information of corresponding ladder, to obtain the configuration resource of corresponding ladder, the update for avoiding client from crossing multi-configuration is used to part Family bring is inconvenient, when carrying out configuration update, does not need user and executes other any operations, improve user experience;The application A kind of client resource that embodiment provides configures update method, comprising: project construction information is obtained, according to the project construction Information determines the step configuration of the project and the client and server of project implementation corresponding with the step configuration, builds Stand the long connection between the client and the server-side;The client is obtained from server in real time by the long connection The client corresponds to the latest configuration resource information of ladder, pulls according to the configuration resource information from configuration center described newest Configure the corresponding latest configuration resource of resource information;The background server of the client is obtained newest based on the client Resource is configured, the configuration resource of client is updated.In this application, the frame of rpc communication: client is developed based on netty Client, server-side server and configuration center config are held, i.e., repairs configuration file in technical solution provided by the present application Change end and publishing side separation.It is mainly an application program main information that project, which generates information, which includes that application program exists The latest version information of the version, configuration center that are run in client and the master of application name, the application program update Structure, client and server-side using the application program are wanted, after determination, client is established based on the project construction information The long connection at end and server-side, and before this procedure, it is also necessary to client above-mentioned and server-side and configuration center are established Incidence relation, and then configuration center can be by the server to client push latest configuration information, server can should Latest configuration information is broadcast to corresponding client, and each client is allowed to obtain corresponding configuration resource from configuration center, Further, it is provided by the present application and in technical solution, client can monitor the latest configuration that server receives in real time Resource information avoids server broadcast latest configuration in order to which client can rapidly carry out the acquisition of latest configuration resource Holiday client when information, to realize that the configuration of client can access update.Wherein, in technology provided by the present application In scheme, configuration center is associated respectively with client and server-side, while client and the long connection of server-side, client Newest configuration information can be pulled from server-side, while client can also obtain newest configuration resource from configuration center. Further, in order to guarantee latest configuration that client pulls when servicing unavailable, additionally it is possible to the configuration of normal load local, So that local service is unaffected, client monitors whether server device end has configuration resource updates information update, sometimes, visitor Family end obtains the corresponding latest configuration resource of the information from configuration center and pulls and cached.Due to a product, such as Fruit needs iteratively faster exploitation online, guarantees quality again, guarantees just online system, so can be quickly once going wrong Control influence face, it is necessary to design a set of gray scale delivery system;A/B testing can be carried out on it, that is, allows a part User continues to use product characteristic A, and a part of user starts to use product characteristic B, if user does not have any opposing views to B, that Gradually expanded scope all moves to all users to come above B.Gray scale issues the stabilization that can guarantee total system, first It can be found when beginning gray scale, adjustment problem, to guarantee its disturbance degree.The gray scale phase: during gray scale issues start and ending This period of time, referred to as gray scale phase.In technical solution provided by the present application, allow to construct ladder by aforementioned process The configuration resource of property, and client-side information corresponding with the steps configuration resource, and then can quickly determine can Gray scale issue client terminal is carried out, when avoiding needing gray scale to issue each time, requires screening to client again, simultaneously The demand for also ensuring different user, configuration and its corresponding client for different ladders carry out disparity items production The update of information configuration resource realizes the gray scale publication for the different editions of disparity items production information, meets difference The demand of user, improves user experience, at the same can the more excellent feedback for targetedly carrying out project construction information configuration resource into Row statistics, in order to be able to preferably optimization application.Correspondingly, application program oneself has the server of oneself, at it When determining that client has included latest configuration information, then according to the latest configuration information dynamic more new application of client Configuration information, wherein the configuration information of resource, that is, server-side needs the configuration information of dynamic modification.On the basis of above-mentioned, When client gets latest configuration information, in order to enable client can update configuration resource in time, after client The latest configuration resource that platform server is obtained based on client updates the configuration resource of client, so that user can be more Rapidly experience newest configuration resource.
In addition, the present invention also provides a kind of servers, as shown in figure 3, the server process in another embodiment The devices such as device 503, memory 505, input unit 507 and display unit 509.It will be understood by those skilled in the art that Fig. 3 shows Structure devices out do not constitute the restriction to Servers-all, may include than illustrating more or fewer components or group Close certain components.Memory 505 can be used for storing application program 501 and each functional module, and the operation of processor 503 is stored in The application program 501 of reservoir 505, thereby executing the various function application and data processing of equipment.Memory 505 can be interior Memory or external memory, or including both built-in storage and external memory.Built-in storage may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash Device or random access memory.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..It is disclosed in this invention to deposit Reservoir includes but is not limited to the memory of these types.Memory 505 disclosed in this invention is only used as example rather than as limit It is fixed.
Input unit 507 is used to receive the personal information and relevant physical condition of input and the user's input of signal Information.Input unit 507 may include touch panel and other input equipments.Touch panel collect client on it or near Touch operation (such as client using any suitable object or attachment such as finger, stylus on touch panel or in touch surface Operation near plate), and corresponding attachment device is driven according to a pre-set procedure;Other input equipments may include but not It is limited to one of physical keyboard, function key (such as broadcasting control button, switch key etc.), trace ball, mouse, operating stick etc. Or it is a variety of.Display unit 509 can be used for showing the information of client's input or be supplied to the information and computer equipment of client Various menus.The forms such as liquid crystal display, Organic Light Emitting Diode can be used in display unit 509.Processor 503 is that computer is set Standby control centre is stored in using the various pieces of various interfaces and the entire computer of connection by running or executing Software program and/or module in reservoir 503, and the data being stored in memory are called, it performs various functions and handles Data.One or more processors 503 shown in Fig. 3 are able to carry out, realize long connection establishment module 100 shown in Fig. 2 Function, obtain the function of module 200, the function of update module 300, the function of characteristic acquisition unit 210, configuration resource The function of determination unit 220, the function of storage unit 240, the function of loading unit 310, updates the function of pulling unit 230 The function of unit 320.
In one embodiment, the server includes one or more processors 503, and one or more storages Device 505, one or more application program 501, wherein one or more of application programs 501 are stored in memory 505 And be configured as being executed by one or more of processors 503, one or more of application programs 301 are configured to carry out Client resource described in above embodiments configures update method.
A kind of server provided in an embodiment of the present invention is, it can be achieved that above-mentioned client resource configures the implementation of update method Example, configuration modification is separated with the permission that configuration information is issued in this application, so that configuration is able to carry out unified publication, while It can guarantee production and operation security and stability.The real-time for improving configuration information acquisition obtains corresponding ladder according to client Configuration information avoids client from crossing the update of multi-configuration to certain customers' bring not to obtain the configuration resource of corresponding ladder Just, it when carrying out configuration update, does not need user and executes other any operations, improve user experience;The embodiment of the present application provides A kind of client resource configure update method, comprising: obtain project construction information, according to the project construction information determine should The client and server of the step configuration of project and project implementation corresponding with the step configuration, establishes the client Long connection between end and the server-side;The client obtains the client pair from server in real time by the long connection The latest configuration resource information for answering ladder pulls the latest configuration resource letter from configuration center according to the configuration resource information Cease corresponding latest configuration resource;The latest configuration resource that the background server of the client is obtained based on the client, Update the configuration resource of client.In this application, the frame based on netty exploitation one rpc communication: client, Configuration file is modified end and publication in technical solution that is, provided by the present application by server-side server and configuration center config End separation.It is mainly an application program main information that project, which generates information, which includes that application program is transported in the client The latest version information and application name of capable version, configuration center, the primary structure of the application program update, application The client and server-side of the application program establish client and server-side based on the project construction information after determination Long connection, and before this procedure, it is also necessary to client above-mentioned and server-side and configuration center are established into incidence relation, into And configuration center can be by the server to client push latest configuration information, server can be by the latest configuration information It is broadcast to corresponding client, each client is allowed to obtain corresponding configuration resource from configuration center, further, at this Application provide and in technical solution, client can monitor the latest configuration resource information that server receives in real time, so as to The acquisition of latest configuration resource can be rapidly carried out in client, holiday when avoiding server broadcast latest configuration information Client, to realize that the configuration of client can access update.Wherein, in technical solution provided by the present application, in configuration The heart is associated respectively with client and server-side, while client and the long connection of server-side, and client can be from server-side Newest configuration information is pulled, while client can also obtain newest configuration resource from configuration center.Further, in order to Guarantee latest configuration that client pulls when servicing unavailable, additionally it is possible to the configuration of normal load local, so that local service Unaffected, client monitors whether server device end has configuration resource updates information update, and sometimes, client is from configuration The heart obtains the corresponding latest configuration resource of the information and pulls and cached.Due to a product, if necessary to quickly change Generation exploitation is online, guarantees quality again, guarantees just online system, so can cracking control influence once going wrong Face, it is necessary to design a set of gray scale delivery system;A/B testing can be carried out on it, that is, a part of user is allowed to continue to use Product characteristic A, a part of user start to use product characteristic B, if user gradually expands what no opposing views of B Range all moves to all users to come above B.Gray scale, which is issued, can guarantee the stabilization of total system, initial gray when Time can find, adjustment problem, to guarantee its disturbance degree.The gray scale phase: gray scale issue start and ending during this section when Between, referred to as gray scale phase.In technical solution provided by the present application, allow to construct steps configuration money by aforementioned process Source, and client-side information corresponding with the steps configuration resource, and then can quickly determine and be able to carry out gray scale hair Cloth client when avoiding needing gray scale to issue each time, requires screening to client again, while also ensuring not With the demand of user, configuration and its corresponding client for different ladders carry out disparity items production information configuration money The update in source realizes the gray scale publication for the different editions of disparity items production information, meets the demand of different user, Improve user experience, at the same can the more excellent feedback for targetedly carrying out project construction information configuration resource counted, so as to In being capable of preferably optimization application.Correspondingly, application program oneself has oneself server, client has been determined at it When being included latest configuration information, then according to the configuration information of the latest configuration information of client dynamic more new application, Wherein, the configuration information of resource, that is, server-side needs the configuration information of dynamic modification.On the basis of above-mentioned, when client obtains When to latest configuration information, in order to enable client can update configuration resource in time, the background server of client is based on The latest configuration resource that client obtains, updates the configuration resource of client, so that user can experience more quickly Newest configuration resource.
The reality of the client resource configuration update method of above-mentioned offer may be implemented in server provided in an embodiment of the present invention Example is applied, concrete function realizes the explanation referred in embodiment of the method, and details are not described herein.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of client resource configures update method characterized by comprising
Project construction information is obtained, the step configuration of the project is determined according to the project construction information and matches with the ladder The client and server for setting corresponding project implementation establishes the long connection between the client and the server-side;
The client obtains the latest configuration resource letter that the client corresponds to ladder from server in real time by the long connection Breath, pulls the corresponding latest configuration resource of the latest configuration resource information from configuration center according to the configuration resource information;
The latest configuration resource that the background server of the client is obtained based on the client updates the configuration money of client Source.
2. client resource according to claim 1 configures update method, which is characterized in that the ladder includes the first rank Ladder, the second ladder, third ladder, configure resource information based on first ladder, second ladder be the project most New all configuration resource informations, the project configuration resource information that the third ladder is determined based on user's characteristic information.
3. client resource according to claim 2 configures update method, which is characterized in that the third ladder by with Lower method obtains,
The user's characteristic information of client is obtained, the user's characteristic information includes the hobby of user, user's history configuration Resource, user's gender, user's history pay close attention to information;
According to the user's characteristic information and the project construction information, the corresponding third step configuration resource letter of client is determined Breath.
4. client resource according to claim 1 configures update method, which is characterized in that described to be provided according to the configuration Source information pulls the corresponding latest configuration resource of the latest configuration resource information from configuration center, comprising:
Client pulls that the latest configuration resource information is corresponding newest to match according to preset period of time from the configuration center Set resource;
The latest configuration resource is stored in presetting database and/or is synchronized in preset cache file.
5. client resource according to claim 4 configures update method, which is characterized in that the backstage of the client takes The latest configuration resource that business device is obtained based on the client, comprising:
Operation is obtained in the configuration of Client GUI in response to user, is loaded from the preset cache file described newest Configure resource.
6. client resource according to claim 1 configures update method, which is characterized in that the backstage of the client takes The latest configuration resource that business device is obtained based on the client, updates the configuration resource of client, comprising:
The latest configuration resource is pulled when the background server of client listens to client in real time, according to the newest breath Configure resource updates client.
7. a kind of client resource configures updating device characterized by comprising
Long connection establishment module determines the ladder of the project according to the project construction information for obtaining project construction information The client and server of configuration and project implementation corresponding with the step configuration, establishes the client and the clothes Long connection between business end;
Module is obtained, the client is obtained from server in real time by the long connection for the client and corresponds to ladder most It is corresponding most from configuration center to pull the latest configuration resource information according to the configuration resource information for new configuration resource information New configuration resource;
Update module, the latest configuration resource that the background server for the client is obtained based on the client update The configuration resource of client.
8. client resource according to claim 7 configures updating device, which is characterized in that the acquisition module includes:
Characteristic acquisition unit, for obtaining the user's characteristic information of client, the user's characteristic information includes user's Hobby, user's history configuration resource, user's gender, user's history pay close attention to information;
Resource determination unit is configured, for determining client pair according to the user's characteristic information and the project construction information The third step configuration resource information answered.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the program realize client resource configuration update method as claimed in any one of claims 1 to 6 when being executed by processor.
10. a kind of server characterized by comprising
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of application programs are configured to carry out according to claim 1 The step of configuring update method to 6 described in any item client resources.
CN201910612028.3A 2019-07-08 2019-07-08 Client resource allocation updating method and device, storage medium and server Active CN110471679B (en)

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 true CN110471679A (en) 2019-11-19
CN110471679B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147312A (en) * 2019-12-31 2020-05-12 深圳云天励飞技术有限公司 Resource allocation management method and device, resource allocation cache management method and device, and allocation management system
CN112231010A (en) * 2020-09-28 2021-01-15 四川新网银行股份有限公司 Application configuration information management and dynamic updating method based on OSGI (open service gateway initiative) specification
CN112417402A (en) * 2020-11-27 2021-02-26 亿企赢网络科技有限公司 Authority control method, authority control device and storage medium
CN112882735A (en) * 2021-03-11 2021-06-01 百度在线网络技术(北京)有限公司 Fusing information processing method, device, equipment and storage medium

Citations (8)

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

Patent Citations (8)

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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147312A (en) * 2019-12-31 2020-05-12 深圳云天励飞技术有限公司 Resource allocation management method and device, resource allocation cache management method and device, and allocation management system
CN112231010A (en) * 2020-09-28 2021-01-15 四川新网银行股份有限公司 Application configuration information management and dynamic updating method based on OSGI (open service gateway initiative) specification
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
CN112417402A (en) * 2020-11-27 2021-02-26 亿企赢网络科技有限公司 Authority control method, authority control device and storage medium
CN112417402B (en) * 2020-11-27 2024-04-12 亿企赢网络科技有限公司 Authority control method, authority control device, authority control equipment and storage medium
CN112882735A (en) * 2021-03-11 2021-06-01 百度在线网络技术(北京)有限公司 Fusing information processing method, device, equipment and storage medium
CN112882735B (en) * 2021-03-11 2024-04-19 百度在线网络技术(北京)有限公司 Fuse information processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110471679B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN110471679A (en) Client resource configures update method, device and storage medium, server
US10048830B2 (en) System and method for integrating microservices
US10013337B2 (en) Feature switches for private cloud and on-premise application components
US9569869B2 (en) Consolidation and customization of graph-based models
CN109358858A (en) Automatically dispose method, apparatus, medium and electronic equipment
US9164753B2 (en) Generating software updates
KR20210052410A (en) Training method, device, equipment and storage medium of online prediction model
US9411562B2 (en) Inter-application transform builder for cloud applications
US20140096014A1 (en) Method for enabling dynamic client user interfaces on multiple platforms from a common server application via metadata
US20110289119A1 (en) Methods and systems for monitoring server cloud topology and resources
US20130085810A1 (en) Federated business configuration and scoping
US20230308504A9 (en) Method and system of application development for multiple device client platforms
US20120150792A1 (en) Data extraction framework
CN103425483B (en) Method and storage medium for dynamically customized menus
US11729053B1 (en) Dynamic application configuration techniques
US10452757B2 (en) Persistent user personalization
US20190180189A1 (en) Client synchronization for offline execution of neural networks
CN104615452A (en) Information providing method and device
US20200125948A1 (en) Machine learning from the integration flow metadata
US20140317497A1 (en) Method, Apparatus and System for Changing Font for Application Program
CN110069176A (en) A kind of interface processing method and device, quick start method and device
CN111984248B (en) Page editing method and device, storage medium and electronic device
JP7220733B2 (en) User APP interest embedding method and device, electronic device, storage medium and computer program
US11126411B2 (en) Dashboard user interface for data driven applications
KR101848398B1 (en) Producing system application driving information of remote server based and method of the same

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