CN108574601A - A kind of gray scale dissemination method and system - Google Patents

A kind of gray scale dissemination method and system Download PDF

Info

Publication number
CN108574601A
CN108574601A CN201810263812.3A CN201810263812A CN108574601A CN 108574601 A CN108574601 A CN 108574601A CN 201810263812 A CN201810263812 A CN 201810263812A CN 108574601 A CN108574601 A CN 108574601A
Authority
CN
China
Prior art keywords
user
registration center
test
micro services
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810263812.3A
Other languages
Chinese (zh)
Inventor
许广彬
张银滨
郭晓
李德才
杨波
陈瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Huayun Data Technology Service Co Ltd
Original Assignee
Wuxi Huayun Data Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Huayun Data Technology Service Co Ltd filed Critical Wuxi Huayun Data Technology Service Co Ltd
Priority to CN201810263812.3A priority Critical patent/CN108574601A/en
Publication of CN108574601A publication Critical patent/CN108574601A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

A kind of gray scale dissemination method provided in an embodiment of the present invention and system, belong to field of computer technology.The gray scale dissemination method, including:Registration center receives the service request that user console is sent, and the service request includes the user identifier of user and the mark of the requested micro services of the user;The registration center judges whether the micro services are issued with gray scale mode according to the mark of the micro services;If so, the registration center judges whether the user is test user according to the user identifier;If so, the address of service of the Beta versions of the micro services is returned to the user console by the registration center, so that the user console calls the Beta versions according to the address of service.

Description

A kind of gray scale dissemination method and system
Technical field
The present invention relates to field of computer technology, in particular to a kind of gray scale dissemination method and system.
Background technology
With the prevalence of micro services framework, the threshold of distributed system architecture is also lower and lower, using the system of the framework Also more and more.Under distributed scene, the deployment of service update is more and more flexible, the problem of how smoothly upgrading online service Increasingly highlight.Existing scheme is all based on access system at present, and the distribution of flow, but this method are controlled by access system Entire Platform Dependent can be caused in access system so that access system at entire platform bottleneck, and according to production environment The different of the network architecture even need multiple access systems, increase deployment, O&M and monitoring difficulty, while access layer flow is walked It needs to manually complete to adjustment, step trouble is easy error.Therefore, the prior art is larger in the presence of deployment, O&M, monitoring difficulty It is high and have to rely on the problems such as access system with error rate.
Invention content
A kind of gray scale dissemination method provided by the invention and system, it is intended to improve above-mentioned technical problem.
A kind of gray scale dissemination method provided by the invention, including:Registration center receives the service that user console is sent and asks It asks, the service request includes the user identifier of user and the mark of the requested micro services of the user;In the registration The heart judges whether the micro services are issued with gray scale mode according to the mark of the micro services;If so, registration center's root Judge whether the user is test user according to the user identifier;If so, the registration center is by the micro services The address of service of Beta versions returns to the user console, so that the user console is called according to the address of service The Beta versions.
Optionally, judge whether the user is to test after user according to the user identifier in the registration center, Further include:If the user is not test user, the registration center returns to the micro services to the user console The address of service of formal online version.
Optionally, the address of service of the Beta versions of the micro services user is returned in the registration center to control After platform processed, further include:If the Beta versions are by testing, the offline formal online version of original of registration center, and will The Beta edition upgradings are formal online version newly.
Optionally, the address of service of the Beta versions of the micro services user is returned in the registration center to control After platform processed, further include:If the Beta versions are not over test, the offline Beta versions of registration center.
Optionally, after the registration center determines that the user is to test user, and, it is incited somebody to action in the registration center Before the address of service of the Beta versions returns to the user console, further include:Described in the registration center determines The version number of Beta versions is higher than the version number of the formal online version.
Optionally, the registration center judges whether the user is test user according to the user identifier, including:Institute It states registration center and judges whether the user identifier adds the expression user to test the label of user, the label is by described User console adds after determining that the user is test user;If the user identifier is added with the label, described Registration center determines that the user is test user.
A kind of gray scale delivery system provided by the invention, including:Registration center and user console, wherein
The user console is used for:Service request is sent to the registration center, the service request includes user's The mark of user identifier and the requested micro services of the user;The registration center, for receiving the service request;Root Judge whether the micro services are issued with gray scale mode according to the mark of the micro services;It is issued with gray scale mode in the micro services When, then judge whether the user is test user according to the user identifier;It, will and when the user is test user The address of service of the Beta versions of the micro services returns to the user console;The user console is additionally operable to:According to Call the Beta versions in the address of service.
Optionally, the registration center is additionally operable to:Judging whether the user is that test is used according to the user identifier After family, if judging the user not and being test user, to the user console return the micro services it is formal The address of service of line version.
Optionally, the registration center is additionally operable to:The address of service of the Beta versions of the micro services is being returned into institute After stating user console, if the Beta versions by test, the offline formal online version of original, and by the Beta versions Upgrade to new formal online version;And if the Beta versions not over test, the offline Beta versions.
Optionally, the user console is additionally operable to indicate that the user is test to test the user identifier addition of user The label of user;The registration center is used for:Judge whether the user is test user according to the user identifier, including: Judge whether the user identifier adds and indicate the user to test the label of user, the label is by the user console It is added after determining that the user is test user;If the user identifier is added with the label, the registration center is true The fixed user is test user.
A kind of gray scale dissemination method and system that aforementioned present invention provides, pass through registration center and receive user console and send Service request, wherein the service request includes the user identifier of user and the mark of the requested micro services of the user Know.To which the registration center judges whether the micro services are issued with gray scale mode further according to the mark of the micro services, When the micro services are issued with gray scale mode, then the registration center judges whether the user is survey according to the user identifier Family on probation.When the user is test user, then the registration center is by the address of service of the Beta versions of the micro services The user console is returned to, so that the user console calls the Beta versions according to the address of service.To Ordinary user is realized by registration center and tests the gray scale publication of user's dimension, independent of traditional access layer, is simplified The framework of micro services reduces the input of deployment and O&M.The ash of single micro services and the combination of multiple micro services is realized simultaneously Degree publication, and maloperation is effectively prevented, and then overcome above-mentioned technical problem.Being furthermore achieved reduces deployment, O&M, prison The difficulty and error rate of control and need not rely on access system technique effect.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the schematic diagram that the registration center that present pre-ferred embodiments provide interacts with user console;
Fig. 2 is a kind of structure diagram of server provided in an embodiment of the present invention;
Fig. 3 is the flow chart for the gray scale dissemination method that first embodiment of the invention provides;
Fig. 4 is the flow chart for the gray scale dissemination method that second embodiment of the invention provides;
Fig. 5 is the high-level schematic functional block diagram for the gray scale delivery system that third embodiment of the invention provides;
Fig. 6 is a kind of implementation schematic diagram of gray scale delivery system shown in fig. 5.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.Therefore, The detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit the model of claimed invention below It encloses, but is merely representative of the selected embodiment of the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not having There is the every other embodiment obtained under the premise of making creative work, shall fall within the protection scope of the present invention.
First introduce below the present embodiments relate to some concepts:
Gray scale is issued:Refer to sending Beta versions to test user when issuing application product or service (such as micro services), Beta versions can gradually be expanded if the test result of Beta versions is preferable by sending formal online version to other users Scope of release, until all users are moved on Beta versions, Beta edition upgradings at this time are formal online version newly This.Gray scale issues the stabilization that can ensure total system, can be found when initial gray, adjustment problem, to ensure Its disturbance degree.
As shown in Figure 1, being the registration center that present pre-ferred embodiments provide and the signal that user console interacts Figure.The registration center 200 is communicatively coupled by network and user console 100, with into row data communication or interaction.
In the present embodiment, the registration center 200 is the software function module or computer program in server, On the other hand 200 one side of the registration center is used to issue in incognito in a manner of gray scale for realizing the registering functional of user Business, specifically, the registration center 200, for receiving the service request;Judged according to the mark of the micro services described micro- Whether service is issued with gray scale mode;When the micro services are issued with gray scale mode, then institute is judged according to the user identifier State whether user is test user;And when the user is test user, by the service of the Beta versions of the micro services Address returns to the user console 100.
As an implementation, the registration center 200 is additionally operable to:Judging the user according to the user identifier Whether it is to test after user, if it is test user to judge the user not, is returned to the user console 100 described The address of service of the formal online version of micro services.
As an implementation, it is additionally operable in the registration center 200:By the service of the Beta versions of the micro services After address returns to the user console 100, if the Beta versions by test, the offline formal online version of original, And by the Beta edition upgradings it is new formal online version;And if the Beta versions not over test, it is offline The Beta versions.
In the present embodiment, the user console 100 is software function module or computer journey in server Sequence, wherein 100 one side of the user console is used to send service request, the service request to the registration center 200 The mark of user identifier and the requested micro services of the user including user, the on the other hand user console 200 It is additionally operable to:The Beta versions are called according to the address of service.And the user console 200 is additionally operable to described in determination User is that addition indicates that the user is the label for testing user after testing user.
As shown in Fig. 2, being a kind of structure diagram of server provided in an embodiment of the present invention.The server 300 includes Gray scale delivery system 400, memory 302, storage control 303, processor 304 and Peripheral Interface 305.
The memory 302, storage control 303, processor 304 and 305 each element of Peripheral Interface are direct between each other Or be electrically connected indirectly, to realize the transmission or interaction of data.For example, these elements can pass through one or more between each other Communication bus or signal wire, which are realized, to be electrically connected.The gray scale delivery system 400 include it is at least one can be with software or firmware (firmware) form is stored in the memory 302 or is solidificated in the operating system of the server 300 Software function module in (operating system, OS).The processor 304 is used to execute to store in memory 302 Module is can perform, such as the software function module or computer program that the gray scale delivery system 400 includes.
Wherein, memory 302 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read- Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 302 is for storing program, and the processor 304 is after receiving and executing instruction, described in execution Program, the method performed by server 100 that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can answer It is realized in processor 304, or by processor 304.
Processor 304 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 304 can To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), application-specific integrated circuit (ASIC), Ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hard Part component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor Can be microprocessor or the processor can also be any conventional processor etc..
The Peripheral Interface 305 couples various input/output devices to processor 304 and memory 302.At some In embodiment, Peripheral Interface 305, processor 304 and storage control 303 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
Referring to Fig. 3, being the flow chart for the gray scale dissemination method that first embodiment of the invention provides.It below will be to Fig. 3 institutes The detailed process shown is described in detail.
Step S101, registration center receive the service request that user console is sent.
Wherein, the service request includes the user identifier of user and the mark of the requested micro services of the user.
In the present embodiment, the service request can be user's registration request, can also be that user uses request, may be used also To be other requests, here, being not especially limited.
In the present embodiment, the user identifier can be user account, can also be ID either station address or It is the address etc. bound with user account.Here, being not especially limited.
Wherein, the mark of the micro services can be the character string for characterizing the micro services, can also be a word Symbol etc..Here, being not especially limited.
As an implementation, registration center receives the service request that user is sent based on user console, wherein institute It can also be ordinary user with right and wrong ordinary user, such as developer, tester or administrator to state user.Here, not Make specific limit.
In the present embodiment, the registration center is used to receive the service request of user console transmission;User's control Platform processed is for sending service request to the registration center.
Wherein it is preferred to which the user console can be operated by WebPortal, to realize that reducing user uses door Sill.
Whether step S102, the registration center judge the micro services with gray scale mode according to the mark of the micro services Publication.
Wherein, gray scale mode publication refers to the method for software service Renewal step by step in distributed structure/architecture, i.e., with ash The micro services that degree mode is issued are gray scale service.The micro services include the micro services that will be updated or issue for the first time.
In the present embodiment, the registration center be used for according to the mark of the micro services judge the micro services whether with Gray scale mode is issued.
In the present embodiment, the registration center can issue single micro services with gray scale mode or multiple micro services combine Micro services.
As an implementation, the matched storage information of mark institute of registration center's inquiry and the micro services, For example, the storage information can be the type information of micro services, can also be the type letter of the user corresponding to the micro services Breath, if the user is ordinary user or administrator etc..To judge the micro services whether with ash according to the storage information Degree mode is issued.For example, when it is the requested micro services of ordinary user that the storage presentation of information, which is micro services, it is determined that institute Micro services are stated not issue with gray scale mode.
Step S103, if so, the registration center judges whether the user is that test is used according to the user identifier Family.
When the micro services are issued with gray scale mode, the micro services are not directly to other use in addition to testing user Family provide service, only for test user use, then the registration center according to the user identifier judge the user whether be Test user.
Wherein, the test user refers to non-generic user, and such as test user can be developer, tester Or administrator etc..
In the present embodiment, the registration center is used to judge whether the user is that test is used according to the user identifier Family.
In this embodiment, it is preferred that the registration center, which judges whether the user identifier adds, indicates the user To test the label of user, for example, the registration center parses the user identifier by preset analytic method, to know Whether the not described user identifier, which adds, indicates that the user is the label for testing user, and the label is existed by the user console Determine that the user is to be added after testing user;If the user identifier is added with the label, the registration center determines The user is test user.Wherein, the label can be a character string, can also be character etc., for example, the user Console is the user identifier addition Test Tag after determining that the user is test user, or is test user's Flow adds Test Tag, judge whether the user is that test is used by whether adding Test Tag in identification flow Family indicates that the user is test user such as when there is Test Tag in flow.Here, being not especially limited.
Step S104, if so, the address of service of the Beta versions of the micro services is returned to institute by the registration center User console is stated, so that the user console calls the Beta versions according to the address of service.
In the present embodiment, when the user is test user, then the registration center is by the Beta of the micro services The address of service of version returns to the user console, so that the user console is according to described in the calling of the address of service Beta versions.The i.e. described registration center is used for when the user is test user, by the clothes of the Beta versions of the micro services Business address returns to the user console, so that the user console calls described Beta editions according to the address of service This.The user console is used to receive the address of service of the Beta versions of the micro services transmitted by the registration center, And the Beta versions are called according to the address of service of the Beta versions of the micro services.
In the present embodiment, if the user is not test user, the registration center returns to the user console Go back to the address of service of the formal online version of the micro services.Wherein, the formal online version is issued for non-test Version used by a user.
As an implementation, described after user console gets the address of service of Beta versions of micro services User console obtains corresponding micro services according to the address of service from registration center, and the registration center determines whether there is With the micro services that gray scale mode is issued, if in the presence of the micro services issued with gray scale mode, described in registration center's determination The version number of Beta versions is higher than the version number of the formal online version.If there is no the micro services issued with gray scale mode, Then the registration center returns to the address of service of the formal online version of the micro services to the user console.
Gray scale dissemination method provided in an embodiment of the present invention, registration center are asked by receiving the service that user console is sent Ask, and the mark based on the micro services in service request judges whether the micro services are issued with gray scale mode, it is described in incognito When business is issued with gray scale mode, then the registration center judges whether the user is test user according to the user identifier. When the user is test user, then the address of service of the Beta versions of the micro services is returned to institute by the registration center User console is stated, so that the user console calls the Beta versions according to the address of service.To pass through registration Center realizes ordinary user and tests the gray scale publication of user's dimension, independent of traditional access layer, simplifies micro services Framework reduces the input of deployment and O&M.The gray scale publication of single micro services and the combination of multiple micro services is realized simultaneously, and Effectively prevent maloperation, so realize reduce deployment, O&M, monitoring difficulty and reduction error rate technique effect.
Referring to Fig. 4, being the flow chart for the gray scale dissemination method that second embodiment of the invention provides.It below will be to Fig. 4 institutes The detailed process shown is described in detail.
Step S201, registration center receive the service request that user console is sent.
Whether step S202, the registration center judge the micro services with gray scale mode according to the mark of the micro services Publication.
Step S203, if so, the registration center judges whether the user is that test is used according to the user identifier Family.
The specific implementation mode of step S201 to step S203 please refer to step corresponding in first embodiment, here, It repeats no more.
As an implementation, after step S203, and, further include step S203a before step S204, specifically It is as follows:
Step S203a, the registration center determine the version number of the Beta versions higher than the formal online version Version number.
In the present embodiment, whether the registration center is formal higher than described by judging the version number of the Beta versions The version number of online version leads to so that when the version number of Beta versions is higher than the version number of the formal online version The Beta versions are crossed to replace the formal online version.
Wherein, in the present embodiment, the registration center is used to determine whether the version number of the Beta versions to be higher than institute State the version number of formal online version.
Step S204, if so, the address of service of the Beta versions of the micro services is returned to institute by the registration center User console is stated, so that the user console calls the Beta versions according to the address of service.
The specific implementation mode of step S204 please refers to step corresponding in first embodiment, here, repeating no more.
Step S205, if the Beta versions pass through test, the offline formal online version of original of registration center, and general The Beta edition upgradings are formal online version newly.
As an implementation, it can judge the Beta versions by test information that user console is returned Whether by test, such as when test presentation of information for by when, judge that the Beta versions pass through test.Wherein, the test Information can test the information or instruction that user is inputted based on user console.Here, being not especially limited.
Step S206, if the Beta versions are not over test, the offline Beta versions of registration center.
In the present embodiment, when the Beta versions are not over test, the registration center is offline Beta editions described This, i.e., the gray scale service corresponding to the described offline Beta versions of registration center, to be redeployed.
Gray scale dissemination method provided in an embodiment of the present invention, registration center are asked by receiving the service that user console is sent Ask, and the mark based on the micro services in service request judges whether the micro services are issued with gray scale mode, it is described in incognito When business is issued with gray scale mode, then the registration center judges whether the user is test user according to the user identifier. And the registration center determines that the version number of the Beta versions is higher than the version number of the formal online version.So that When the user is test user, then the registration center returns to the address of service of the Beta versions of the micro services described User console, so that the user console calls the Beta versions according to the address of service.To by registration The heart realizes ordinary user and tests the gray scale publication of user's dimension, independent of traditional access layer, simplifies the frame of micro services Structure reduces the input of deployment and O&M.The gray scale publication of single micro services and the combination of multiple micro services is realized simultaneously, and is had Effect prevents maloperation, and ensures that the version number of issued Beta versions is above the version number of formal online version , be furthermore achieved reduce deployment, O&M, monitoring difficulty and reduction error rate technique effect.
Referring to Fig. 5, being the high-level schematic functional block diagram for the gray scale delivery system that third embodiment of the invention provides.The ash It includes registration center 410 and user console 420 to spend delivery system 400.
The user console 420 is used for:Service request is sent to the registration center 410, the service request includes The mark of the user identifier of user and the requested micro services of the user;
The registration center 410, for receiving the service request;
Judge whether the micro services are issued with gray scale mode according to the mark of the micro services;
When the micro services are issued with gray scale mode, then judge whether the user is test according to the user identifier User;And when the user is test user, the address of service of the Beta versions of the micro services is returned into the use Family console 420.
The user console 420 is additionally operable to:The Beta versions are called according to the address of service.
As an implementation, the user console 420 is additionally operable to add expression to test the user identifier of user The user is the label for testing user;The registration center 410 is used for:Whether judge the user according to the user identifier For test user, including:Judge whether the user identifier adds and indicates the user to test the label of user, the label It is added after determining that the user is test user by the user console 420;If the user identifier is added with the mark It signs, then the registration center 410 determines that the user is test user.As shown in fig. 6, the user console 420 is test The user identifier addition of user indicates that the user is after testing the label of user, and the registration center 410 judges the user Identify whether that addition indicates that the user is the label for testing user, it is described if the user identifier is added with the label Registration center 410 determines that the user is test user, and return the micro services Beta versions address of service to described User console 420, so that the user console 420 calls gray scale according to the address of service of the Beta versions of the micro services Micro services call the micro services corresponding to the Beta versions.
As an implementation, the registration center 410 is additionally operable to:Judging the user according to the user identifier Whether it is to test after user, if it is test user to judge the user not, is returned to the user console 420 described The address of service of the formal online version of micro services.
As an implementation, the registration center 410 is additionally operable to:By the service of the Beta versions of the micro services After address returns to the user console 420, if the Beta versions by test, the offline formal online version of original, And by the Beta edition upgradings it is new formal online version;If the Beta versions are not over test, offline described Beta versions, i.e., the gray scale service corresponding to the described offline Beta versions of registration center 410.
As an implementation, it is used to judge that the user is according to the user identifier in the registration center 410 It is no for test user and;The registration center 410 is used to the address of service of the Beta versions returning to the user and control Before platform 420 processed, further include:The registration center 410 determines the version number of the Beta versions higher than the formal online version This version number.
Gray scale delivery system provided in an embodiment of the present invention, registration center are asked by receiving the service that user console is sent Ask, and the mark based on the micro services in service request judges whether the micro services are issued with gray scale mode, it is described in incognito When business is issued with gray scale mode, then the registration center judges whether the user is test user according to the user identifier. And the registration center determines that the version number of the Beta versions is higher than the version number of the formal online version.So that When the user is test user, then the registration center returns to the address of service of the Beta versions of the micro services described User console, so that the user console calls the Beta versions according to the address of service.To by registration The heart realizes ordinary user and tests the gray scale publication of user's dimension, independent of traditional access layer, simplifies the frame of micro services Structure reduces the input of deployment and O&M.The gray scale publication of single micro services and the combination of multiple micro services is realized simultaneously, and is had Effect prevents maloperation, and ensures that the version number of issued Beta versions is above the version number of formal online version , be furthermore achieved reduce deployment, O&M, monitoring difficulty and reduction error rate technique effect.
In conclusion a kind of gray scale dissemination method provided by the invention and system, user's control is received by registration center Platform send service request, wherein the service request include user user identifier and the user it is requested in incognito The mark of business.To which the registration center judges whether the micro services are sent out with gray scale mode further according to the mark of the micro services Cloth, when the micro services are issued with gray scale mode, then the registration center judges that the user is according to the user identifier No is test user.When the user is test user, then the registration center is by the clothes of the Beta versions of the micro services Business address returns to the user console, so that the user console calls described Beta editions according to the address of service This.To which the gray scale realized ordinary user by registration center and test user's dimension is issued, independent of traditional access layer, The framework for simplifying micro services reduces the input of deployment and O&M.Realize single micro services and multiple micro services groups simultaneously The gray scale of conjunction is issued, and effectively prevents maloperation, and then overcomes above-mentioned technical problem.Be furthermore achieved reduction deployment, O&M, the difficulty of monitoring and error rate and need not rely on access system technique effect.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and block diagram Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part for the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially be basically executed in parallel, they are sometimes It can execute in the opposite order, this is depended on the functions involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use function or the dedicated base of action as defined in executing It realizes, or can be realized using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access The various media that can store program code such as memory (RAM, Random Access Memory), magnetic disc or CD.It needs It is noted that herein, relational terms such as first and second and the like are used merely to an entity or operation It is distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation, there are any this Actual relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to nonexcludability Including so that the process, method, article or equipment including a series of elements includes not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, article or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described There is also other identical elements in the process, method, article or equipment of element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and is explained.

Claims (10)

1. a kind of gray scale dissemination method, which is characterized in that the method includes:
Registration center receives the service request that user console is sent, and the service request includes user identifier and the institute of user State the mark of the requested micro services of user;
The registration center judges whether the micro services are issued with gray scale mode according to the mark of the micro services;
If so, the registration center judges whether the user is test user according to the user identifier;
If so, the address of service of the Beta versions of the micro services is returned to the user console by the registration center, So that the user console calls the Beta versions according to the address of service.
2. according to the method described in claim 1, it is characterized in that, judging institute according to the user identifier in the registration center State whether user is to test after user, further includes:
If the user is not test user, the registration center returns to the formal of the micro services to the user console The address of service of online version.
3. according to the method described in claim 1, it is characterized in that, in the registration center by the Beta versions of the micro services Address of service return to the user console after, further include:
If the Beta versions are by test, the offline formal online version of original of registration center, and by the Beta versions Upgrade to new formal online version.
4. according to the method described in claim 1, it is characterized in that, in the registration center by the Beta versions of the micro services Address of service return to the user console after, further include:
If the Beta versions are not over test, the offline Beta versions of registration center.
5. according to claim 2 to 3 any one of them method, which is characterized in that determine the user in the registration center After test user, and, the address of service of the Beta versions is returned into the user's control in the registration center Before platform, further include:
The registration center determines that the version number of the Beta versions is higher than the version number of the formal online version.
6. method according to any one of claims 1 to 4, which is characterized in that the registration center marks according to the user Knowledge judges whether the user is test user, including:
The registration center judges whether the user identifier adds and indicates the user to test the label of user, the label It is added after determining that the user is test user by the user console;
If the user identifier is added with the label, the registration center determines that the user is test user.
7. a kind of gray scale delivery system, which is characterized in that including:Registration center and user console, wherein
The user console is used for:Service request is sent to the registration center, the service request includes the user of user The mark of mark and the requested micro services of the user;
The registration center, is used for:Receive the service request;Whether judge the micro services according to the mark of the micro services It is issued with gray scale mode;When the micro services are issued with gray scale mode, then judge that the user is according to the user identifier No is test user;And when the user is test user, the address of service of the Beta versions of the micro services is returned To the user console;
The user console is additionally operable to:The Beta versions are called according to the address of service.
8. system according to claim 7, which is characterized in that the registration center is additionally operable to:It is marked according to the user Knowledge judges whether the user is to test after user, if it is test user to judge the user not, is controlled to the user Platform processed returns to the address of service of the formal online version of the micro services.
9. system according to claim 7, which is characterized in that be additionally operable in the registration center:By the micro services After the address of service of Beta versions returns to the user console, if the Beta versions are by test, offline original is just Formula online version, and be new formal online version by the Beta edition upgradings;And if the Beta versions not over It tests, then the offline Beta versions.
10. system according to any one of claims 7 to 9, which is characterized in that the user console is additionally operable to as test The user identifier addition of user indicates that the user is the label for testing user;
The registration center is used for:Judge whether the user is test user according to the user identifier, including:
Judge whether the user identifier adds the label;If the user identifier is added with the label, the registration Center determines that the user is test user.
CN201810263812.3A 2018-03-27 2018-03-27 A kind of gray scale dissemination method and system Pending CN108574601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810263812.3A CN108574601A (en) 2018-03-27 2018-03-27 A kind of gray scale dissemination method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810263812.3A CN108574601A (en) 2018-03-27 2018-03-27 A kind of gray scale dissemination method and system

Publications (1)

Publication Number Publication Date
CN108574601A true CN108574601A (en) 2018-09-25

Family

ID=63574110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810263812.3A Pending CN108574601A (en) 2018-03-27 2018-03-27 A kind of gray scale dissemination method and system

Country Status (1)

Country Link
CN (1) CN108574601A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739552A (en) * 2019-01-04 2019-05-10 深圳壹账通智能科技有限公司 Micro services gray scale dissemination method, device, computer equipment and storage medium
CN109788029A (en) * 2018-12-14 2019-05-21 平安信托有限责任公司 Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services
CN109814910A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Automate gray scale dissemination method, device, computer system and storage medium
CN110032393A (en) * 2019-04-18 2019-07-19 恒生电子股份有限公司 A kind of micro services dissemination method, device, equipment and medium
CN110120971A (en) * 2019-04-17 2019-08-13 北京奇艺世纪科技有限公司 A kind of gray scale dissemination method, device and electronic equipment
CN110245070A (en) * 2019-05-07 2019-09-17 平安科技(深圳)有限公司 Test user's screening technique, device, computer equipment and storage medium
CN110266610A (en) * 2019-05-30 2019-09-20 阿里巴巴集团控股有限公司 Method for recognizing flux, device, electronic equipment
CN110347475A (en) * 2019-06-19 2019-10-18 东软集团股份有限公司 Service calling method, service call device and service calling system
CN110618820A (en) * 2019-09-20 2019-12-27 国网浙江省电力有限公司 Power dispatching system
CN111857795A (en) * 2020-06-15 2020-10-30 厦门亿联网络技术股份有限公司 Fixed-point pushing method and device for software test version and storage medium
CN112087325A (en) * 2020-08-21 2020-12-15 烽火通信科技股份有限公司 Gray scale publishing method, device, equipment and readable storage medium
CN113535595A (en) * 2021-09-17 2021-10-22 国网江苏省电力有限公司营销服务中心 Information system gray level release user selection method and system based on micro-service architecture
CN114285893A (en) * 2021-12-22 2022-04-05 中国工商银行股份有限公司 Access request processing method, system, device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150281379A1 (en) * 2013-01-09 2015-10-01 Tencent Technology (Shenzhen) Company Limited Method and apparatus for releasing services in stages
CN107248986A (en) * 2017-06-08 2017-10-13 医惠科技有限公司 A kind of service tray method
CN107341008A (en) * 2017-06-22 2017-11-10 上海艾融软件股份有限公司 Micro services gray scale dissemination method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150281379A1 (en) * 2013-01-09 2015-10-01 Tencent Technology (Shenzhen) Company Limited Method and apparatus for releasing services in stages
CN107248986A (en) * 2017-06-08 2017-10-13 医惠科技有限公司 A kind of service tray method
CN107341008A (en) * 2017-06-22 2017-11-10 上海艾融软件股份有限公司 Micro services gray scale dissemination method

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788029A (en) * 2018-12-14 2019-05-21 平安信托有限责任公司 Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services
CN109814910A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Automate gray scale dissemination method, device, computer system and storage medium
CN109739552A (en) * 2019-01-04 2019-05-10 深圳壹账通智能科技有限公司 Micro services gray scale dissemination method, device, computer equipment and storage medium
WO2020140663A1 (en) * 2019-01-04 2020-07-09 深圳壹账通智能科技有限公司 Microservice grayscale publishing method, device, computer device and storage medium
CN110120971A (en) * 2019-04-17 2019-08-13 北京奇艺世纪科技有限公司 A kind of gray scale dissemination method, device and electronic equipment
CN110032393A (en) * 2019-04-18 2019-07-19 恒生电子股份有限公司 A kind of micro services dissemination method, device, equipment and medium
CN110245070A (en) * 2019-05-07 2019-09-17 平安科技(深圳)有限公司 Test user's screening technique, device, computer equipment and storage medium
CN110266610A (en) * 2019-05-30 2019-09-20 阿里巴巴集团控股有限公司 Method for recognizing flux, device, electronic equipment
CN110266610B (en) * 2019-05-30 2023-02-28 创新先进技术有限公司 Traffic identification method and device and electronic equipment
CN110347475B (en) * 2019-06-19 2022-03-04 东软集团股份有限公司 Service calling method, service calling device and service calling system
CN110347475A (en) * 2019-06-19 2019-10-18 东软集团股份有限公司 Service calling method, service call device and service calling system
CN110618820A (en) * 2019-09-20 2019-12-27 国网浙江省电力有限公司 Power dispatching system
CN111857795A (en) * 2020-06-15 2020-10-30 厦门亿联网络技术股份有限公司 Fixed-point pushing method and device for software test version and storage medium
CN112087325B (en) * 2020-08-21 2021-07-20 烽火通信科技股份有限公司 Gray scale publishing method, device, equipment and readable storage medium
WO2022037272A1 (en) * 2020-08-21 2022-02-24 烽火通信科技股份有限公司 Gray release method, apparatus and device, and readable storage medium
CN112087325A (en) * 2020-08-21 2020-12-15 烽火通信科技股份有限公司 Gray scale publishing method, device, equipment and readable storage medium
CN113535595A (en) * 2021-09-17 2021-10-22 国网江苏省电力有限公司营销服务中心 Information system gray level release user selection method and system based on micro-service architecture
CN114285893A (en) * 2021-12-22 2022-04-05 中国工商银行股份有限公司 Access request processing method, system, device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN108574601A (en) A kind of gray scale dissemination method and system
US11016836B2 (en) Graphical user interface for visualizing a plurality of issues with an infrastructure
CN108153670B (en) Interface testing method and device and electronic equipment
US8661412B2 (en) Managing automated and manual application testing
US11138645B2 (en) Virtualized services discovery and recommendation engine
WO2019148721A1 (en) Electronic device, risk early warning method for internet service system, and storage medium
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
US20220171608A1 (en) Intelligent provisioning management
CN110941547B (en) Automatic test case library management method, device, medium and electronic equipment
CN108280024B (en) Flow distribution strategy testing method and device and electronic equipment
CN106933560A (en) A kind of automatic coding and device
CN108228611B (en) Document information copying method and device
CN113051183A (en) Test data recommendation method and system, electronic device and storage medium
CN111046393B (en) Vulnerability information uploading method and device, terminal equipment and storage medium
CN112527678A (en) Method, apparatus, device and storage medium for testing protocol
CN109542743B (en) Log checking method and device, electronic equipment and computer readable storage medium
CN112416700A (en) Analyzing initiated predictive failures and SMART logs
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN110070383B (en) Abnormal user identification method and device based on big data analysis
CN116185799A (en) Interrupt time acquisition method, device, system, communication equipment and storage medium
US20230409468A1 (en) Providing application error data for use by third-party library development systems
CN110769064B (en) System, method and equipment for offline message pushing
CN112114931B (en) Deep learning program configuration method and device, electronic equipment and storage medium
CN112527276A (en) Data updating method and device in visual programming tool and terminal 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180925

RJ01 Rejection of invention patent application after publication