CN110311989A - A kind of gray scale dissemination method, device, storage medium, equipment and system - Google Patents
A kind of gray scale dissemination method, device, storage medium, equipment and system Download PDFInfo
- Publication number
- CN110311989A CN110311989A CN201910710790.5A CN201910710790A CN110311989A CN 110311989 A CN110311989 A CN 110311989A CN 201910710790 A CN201910710790 A CN 201910710790A CN 110311989 A CN110311989 A CN 110311989A
- Authority
- CN
- China
- Prior art keywords
- server cluster
- resource request
- application server
- gray scale
- client
- 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
Links
- 238000000034 method Methods 0.000 claims description 54
- 235000014510 cooky Nutrition 0.000 claims description 53
- 230000004044 response Effects 0.000 claims description 50
- 230000000977 initiatory effect Effects 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 6
- 238000012384 transportation and delivery Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 description 10
- 230000003068 static effect Effects 0.000 description 9
- 230000006872 improvement Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 2
- 238000000151 deposition Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000013468 resource allocation Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of gray scale dissemination method, device, storage medium, equipment and systems.The described method includes: receiving the first resource request that client is initiated;The client includes web client;When the first resource requests in corresponding first cookie information not including gray scale mark, first resource request is supplied to first kind application server cluster;So that the first kind application server cluster, when first resource request meets preset draining conditions, Xiang Suoshu client, which returns, redirects response, the second cookie information comprising the gray scale mark is carried in the redirection response.The application can be suitable for APP client and web client (browser).
Description
Technical field
This application involves network technique field, in particular to a kind of gray scale dissemination method, device, storage medium, equipment and
System.
Background technique
Gray scale, which is issued, to be referred in software issuing process, a kind of published method that can be seamlessly transitted.For example, Current software
Version there are two, one is official release, and one is beta version, when a client sends a request to a server, a part
Client continues to use official release, and another part client uses beta version.If during using beta version
There is not any exception, then the scope of release of beta version is gradually expanded, all clients are finally all moved to test
Version, the final beta version become new official release.Internet product iteration updating decision, upgrades all each time along with wind
Danger.The stabilization that can guarantee system entirety using gray scale publication, can adjust problem, in time to reduce risk.
But in the prior art, gray scale publication has the following problems: the prior art is normally based on the clients such as cell phone application
End carries out gray scale publication, can not support the scenes such as desktop browsers.Therefore, it needs a kind of suitable for APP client and B/S frame
The gray scale dissemination method of web client (browser) under structure (Browser/Server, browser/server framework).
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of gray scale dissemination method, device, storage medium, equipment and system, with
The web client being suitable under APP client and B/S framework (Browser/Server, browser/server framework) simultaneously
(browser).
In order to achieve the above objectives, the embodiment of the present application provides a kind of gray scale dissemination method, comprising:
Receive the first resource request that client is initiated;The client includes web client;
When the first resource requests in corresponding first cookie information not including gray scale mark, described first is provided
Source request is supplied to first kind application server cluster;So that the first kind application server cluster is asked in the first resource
Ask when meeting preset draining conditions, Xiang Suoshu client, which returns, redirects response, redirections respond in carry and include
Second cookie information of the gray scale mark.
Preferably, when the first resource requests in corresponding first cookie information not including gray scale mark, by institute
It states first resource request and is supplied to first kind application server cluster, comprising:
When the first resource requests in corresponding first cookie information not including gray scale mark, described first is provided
Source requests assignment to first kind web server cluster, so that the first kind web server cluster is requested in the first resource
The first mark of host field write-in after, forward it to the soft load balancing component of application server cluster, and make described answer
With the soft load balancing component of server cluster according to first mark, the first resource is requested assignment to described first
Class application server cluster.
Preferably, the user information and user's generation that the first kind application server cluster is requested by the first resource
Information is managed, judges whether the first resource request meets preset draining conditions.
Preferably, the gray scale dissemination method further include:
The client is received to be requested according to the Secondary resource for redirecting response return, the Secondary resource request
It include the gray scale mark in specific field;
Secondary resource request is supplied to the second class application server cluster;So that the second class application server
The cluster processing Secondary resource request.
Preferably, Secondary resource request is supplied to the second class application server cluster;So that second class is answered
The Secondary resource request is handled with server cluster, further includes:
By Secondary resource request distribution to the second class web server cluster;So that the second class web server collection
Group forwards it to the soft of application server cluster after the host field of Secondary resource request re-writes the second mark
Load balancing component;So that the soft load balancing component of the application server cluster is according to second mark, by described the
Two resource requests distribute to the second class application server cluster.
The application also provides a kind of gray scale distributing device, comprising:
First resource request receiving module, for receiving the first resource request of client initiation;The client includes
Web client;
First resource requests forwarding module, for requesting not wrap in corresponding first cookie information in the first resource
When mark containing gray scale, first resource request is supplied to first kind application server cluster;So that the first kind application
For server cluster when first resource request meets preset draining conditions, Xiang Suoshu client, which returns, redirects response,
The second cookie information comprising the gray scale mark is carried in the redirection response.
The application also provides another gray scale dissemination method, comprising:
Initiate first resource request;Wherein, do not include in corresponding first cookie information of first resource request
When gray scale mark, the first resource request is sent to first kind application server cluster;So that the first kind application clothes
Business device cluster returns when first resource request meets preset draining conditions and redirects response;
It receives and redirects response, it is described to redirect the 2nd cookie letter carried in response comprising the gray scale mark
Breath.
Preferably, described when the first resource requests in corresponding first cookie information not including gray scale mark
First resource request is sent to first kind application server cluster, comprising:
When the first resource requests in corresponding first cookie information not including gray scale mark, the first resource
Request is assigned to first kind web server cluster, so that the first kind web server cluster is requested in the first resource
The first mark of host field write-in after, forward it to the soft load balancing component of application server cluster, and make described answer
With the soft load balancing component of server cluster according to first mark, the first resource is requested assignment to described first
Class application server cluster.
Preferably, the user information and user's generation that the first kind application server cluster is requested by the first resource
Information is managed, judges whether the first resource request meets preset draining conditions.
Preferably, the gray scale dissemination method further include:
It is responded according to redirecting, initiates Secondary resource and request, comprising described in the specific field of the Secondary resource request
Gray scale mark;The Secondary resource request is provided to the second class application server cluster;So that the second class application service
The device cluster processing Secondary resource request;
Receive the response that the second class application server returns.
Preferably, the Secondary resource request is provided to the second class application server cluster;So that second class is answered
The Secondary resource request is handled with server cluster, comprising:
The Secondary resource request is assigned to the second class web server cluster;So that the second class web server collection
Group forwards it to the soft of application server cluster after the host field of Secondary resource request re-writes the second mark
Load balancing component;And make the soft load balancing component of the application server cluster according to second mark, by described the
Two resource requests distribute to the second class application server cluster.
The application also provides another gray scale distributing device, comprising:
First resource requests initiation module, for initiating first resource request;Wherein, it requests to correspond in the first resource
The first cookie information in when not including gray scale mark, first resource request is sent to first kind application server collection
Group;So that the first kind application server cluster returns to weight when first resource request meets preset draining conditions
Orientation response;
Response receiving module is redirected, redirects response for receiving, is carried in the redirection response comprising described
Second cookie information of gray scale mark.
The application also provides a kind of gray scale delivery system, comprising: client, the soft load balancing of web server cluster dress
It sets, first kind application server cluster;Wherein;
The client is requested for sending first resource to the soft load balancing apparatus of the web server cluster;
The soft load balancing apparatus of the web server cluster is used for the first cookie letter requested in the first resource
When in breath not including gray scale mark, first resource request is sent to the first kind application server cluster;So that institute
First kind application server cluster is stated when first resource request meets preset draining conditions, returns and redirects response.
The application also provides a kind of computer equipment, including processor and depositing for storage processor executable instruction
The step of reservoir, the processor realizes any of the above the method when executing described instruction.
The application also provides a kind of computer readable storage medium, is stored thereon with computer instruction, and described instruction is held
The step of any of the above the method is realized when row.
As can be seen from the technical scheme provided by the above embodiments of the present application, it in the embodiment of the present application, is asked in the first resource
When asking in corresponding first cookie information not comprising gray scale mark, first resource request is supplied to first kind application server
Cluster;So that the first kind application server cluster first resource request meet preset draining conditions when, to the visitor
Family end, which returns, redirects response, redirects in response and carries the second cookie information comprising gray scale mark, to utilize
Cookie realizes gray scale shunting.The application be can be seen that independent of APP client, to B/S framework (Browser/
Server, browser/server framework) under web client (browser) it is equally applicable, solve in the prior art gray scale hair
The defect of cloth dependence APP client.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property
Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the system architecture diagram of gray scale delivery system provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of gray scale dissemination method provided by the embodiments of the present application;
Fig. 3 is a kind of function structure chart of gray scale distributing device provided by the embodiments of the present application;
Fig. 4 is the flow chart of another gray scale dissemination method provided by the embodiments of the present application;
Fig. 5 is the function structure chart of another gray scale distributing device provided by the embodiments of the present application;
Fig. 6 is the schematic diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
The application embodiment provides a kind of gray scale dissemination method, device, storage medium, equipment and system.
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in mode is applied, the technical solution in the application embodiment is clearly and completely described, it is clear that described
Embodiment is only a part of embodiment of the application, rather than whole embodiments.Based on the embodiment party in the application
Formula, every other embodiment obtained by those of ordinary skill in the art without making creative efforts, is all answered
When the range for belonging to the application protection.
Refering to what is shown in Fig. 1, being the system architecture diagram of gray scale delivery system provided by the embodiments of the present application.Include: client,
Soft load balancing apparatus, the first kind application server cluster of web server cluster;Wherein;
The client, which can be used for sending first resource, requests the soft load balancing to the web server cluster to fill
It sets.
The soft load balancing apparatus of the web server cluster can be used for the first of first resource request
When in cookie information not including gray scale mark, first resource request is sent to the first kind application server collection
Group;So that the first kind application server cluster returns to weight when first resource request meets preset draining conditions
Orientation response.
In addition, the gray scale delivery system can also include: first kind web server cluster, the second class web server collection
Group, the soft load balancing component of application server cluster, the second class application server cluster.
The first kind web server cluster can be used for that the first mark is written in host field, and resource request is sent out
It send to the soft load balancing component of application server cluster;And provide static resource;
The second class web server cluster can be used for that the second mark is written in host field, and resource request is sent out
It send to the soft load balancing component of application server cluster;And provide static resource;
The soft load balancing component of the application server cluster can be used for being asked resource according to the mark of host field
Ask distribution to the first kind application server cluster or the second class application server cluster;
The second class application server cluster may be used to provide dynamic resource.
Wherein, first kind web server cluster and first kind application server cluster may be used to provide the formal version of product
This service;Second class web server cluster and the second class application server cluster may be used to provide product test version
Service.In addition, the server in the application can be specific server, the virtual cloud service being also possible in cloud computing
Device, in this regard, the application is without limitation.
Web server can be used for parsing HTTP request, and return to http response, specially respond a static page or
The resources such as static resource, such as picture, CSS (Cascading Style Sheets, cascading style sheets), control.Application program
Server refers to the application programming interfaces (API) by component, and business logic is exposed to the program of client, can be used for ringing
Answer dynamic requests, such as processing JSP request.
When client (browser) browses some website using specified data, server can generate one for client
Unique identification code, and a project is generated in the back-end data base of server in this, as index, then returning to visitor
The stem row that a Set- specifies data is added in the http response message at family end.When client (browser) receives this response
When, this identification code just is taken out in the cookie file of its management, and be put into the specified data header row of HTTP request message
In, it can be seen that server, which is based on cookie, can identify client, and therefore, the application passes through in HTTP request
Gray scale mark is set in cookie, server can be made to identify the client that can be used for gray scale publication, the specific method is as follows.
Refering to what is shown in Fig. 2, being a kind of flow chart of gray scale dissemination method provided by the embodiments of the present application, comprising:
S101: the first resource request that client is initiated is received;The client includes web client.
In some embodiments, first resource request can be HTTP request, and due to preparatory in the client
It is stored with cookie, which can be sent to server end when sending request;Specifically, can be by the value of cookie
It is stored in the HTTP message head of entitled Cookie.
In some embodiments, the client can be the electronic equipment with logical operation function, the electronics
Equipment can be desktop computer, tablet computer, laptop, cell phone, work station etc..Certainly, client is not limited to
The above-mentioned electronic equipment with certain entity, can also be the software run in above-mentioned electronic equipment.It can also be a kind of
The program software formed by program development, which can run in above-mentioned electronic equipment, for example, it is also possible to be B/
Web client (browser) in S framework (Browser/Server, browser/server framework).
S102:, will be described when the first resource requests in corresponding first cookie information not including gray scale mark
First resource request is supplied to first kind application server cluster;So that the first kind application server cluster is described first
When resource request meets preset draining conditions, Xiang Suoshu client, which returns, redirects response, carries in the redirection response
There is the second cookie information comprising the gray scale mark.
In some embodiments, first resource is requested in corresponding first cookie information comprising the original of gray scale mark
Cause can be the client and access the server for the first time, or accesses server for the first time after issuing beta version, it is also possible to
The gray scale mark for being the first cookie information has been more than the validity period being arranged.
In some embodiments, it requests not include gray scale mark in corresponding first cookie information in first resource
When, first resource request is supplied to first kind application server cluster, can be realized by following steps:
When the first resource requests in corresponding first cookie information not including gray scale mark, described first is provided
Source requests assignment to first kind web server cluster, so that the first kind web server cluster is requested in the first resource
The first mark of host field write-in after, forward it to the soft load balancing component of application server cluster, and make described answer
With the soft load balancing component of server cluster according to first mark, the first resource is requested assignment to described first
Class application server cluster.
Wherein, in the request header of HTTP request, host field can be used for domain name/IP address of specified request server
And therefore port numbers pass through the information that first kind application server cluster is written in host field, so that it may allow application service
First resource is requested assignment to first kind application server collection by identification host field by the soft load balancing component of device cluster
Group.
In some embodiments, first kind application server cluster is requested by the first resource user information and
User agent's information, judges whether the first resource request meets preset draining conditions.Specifically, user information can wrap
Cell-phone number, the registered place of user are included, user agent's information may include the type of operating system used in client.For example,
Judge that the client for ios device or Android device, if ios device, then meets preset draining conditions.
In some embodiments, when first kind application server cluster judges that first resource request meets preset shunting
After condition, be written gray scale mark, and the validity period of the gray scale mark is set in the first cookie information, returns again to redirection
Response, redirection response carries the second cookie information comprising the gray scale mark, and the value of statistical indicant of gray scale mark is
Gray scale, for example, setting 1 for the value of gray scale mark.Client is after receiving the response, by second comprising the gray scale mark
Cookie information is stored in local, and the second cookie information comprising the gray scale mark is stored in HTTP message head
On, and initiate Secondary resource request.
In a specific embodiment, gray scale mark can be set to feeversion=1, and showing can be to the client
End carries out gray scale publication.
In some embodiments, it receives client and is requested according to response, transmitted Secondary resource is redirected, wherein
It include gray scale mark in second cookie information of Secondary resource request;Secondary resource request is supplied to the second class application
Server cluster;So that the second class application server cluster responds the Secondary resource request.
Specifically, Secondary resource request is supplied to the second class application server cluster;So that second class is answered
The Secondary resource request is responded with server cluster, may include steps of:
By Secondary resource request distribution to the second class web server cluster;So that the second class web server cluster exists
After the host field of Secondary resource request re-writes the second mark, the soft load balancing of application server cluster is forwarded it to
Component;So that the soft load balancing component of application server cluster requests assignment to Secondary resource according to second mark
The second class application server cluster.
In a specific embodiment, the first mark that host field is written before redirection is
The second mark that fee.icbc.com.cn, host field re-write after redirection is ebank-app-fee.icbc.Its
In, the first mark and the second mark are respectively directed to first kind application server cluster and the second class application server cluster.
In some embodiments, after by above-mentioned steps, client has contained corresponding ash in cookie
Scale will, host field are also rewritten according to the gray scale mark after setting.The resource of initiation subsequent for the client is asked
Ask, can by judging the URL in HTTP request (uniform resource locator), judge client request be static resource also
It is dynamic resource, for example, the URL comprising .jpg is static resource, the URL comprising .jsp or .servlet is dynamic resource,
It therefore, can be according to URL by static resource allocation to web server cluster, so that web server cluster provides static resource;
By dynamic resource allocation to apps server cluster, so that apps server cluster provides dynamic resource.
Refering to what is shown in Fig. 3, the application also provides a kind of gray scale distributing device, comprising:
Resource request receiving module 10 can be used for receiving the first resource request of client initiation;The client packet
Include web client.
Resource request forwarding module 20 can be used for requesting in corresponding first cookie information not in the first resource
When comprising gray scale mark, first resource request is supplied to first kind application server cluster;So that the first kind is answered
With server cluster when first resource request meets preset draining conditions, Xiang Suoshu client, which returns to redirect, rings
It answers, carries the second cookie information comprising the gray scale mark in the redirection response.
Refering to what is shown in Fig. 4, for the method for another gray scale publication provided by the present application, this method should can be used for client
Side may include steps of:
S201: first resource request is initiated;Wherein, it is requested in corresponding first cookie information not in the first resource
When comprising gray scale mark, the first resource request is sent to first kind application server cluster;So that the first kind is answered
With server cluster when first resource request meets preset draining conditions, returns and redirect response.
In some embodiments, it requests not include gray scale mark in corresponding first cookie information in first resource
When, first resource request is sent to first kind application server cluster, it can be realized by following steps:
When first resource requests in corresponding first cookie information not including gray scale mark, first resource request is divided
Dispensing first kind web server cluster, so that the host field write-in that first kind web server cluster is requested in first resource
After one mark, the soft load balancing component of application server cluster is forwarded it to, and make the soft load of application server cluster
First resource is requested assignment to first kind application server cluster according to the first mark by balanced component.
In some embodiments, the user information and user that first kind application server cluster is requested by first resource
Proxy information, judges whether the first resource request meets preset draining conditions.
S202: receiving and redirect response, described to redirect second carried in response comprising the gray scale mark
Cookie information.
In some embodiments, after receiving redirection response, client initiates Secondary resource request, Secondary resource
It include gray scale mark in second cookie information of request;Secondary resource request is provided to the second class application server cluster;
So that the response Secondary resource request of the second class application server cluster;The final response for receiving the second class application server and returning.
In some embodiments, Secondary resource request is provided to the second class application server cluster;So that the second class
Application server cluster responds Secondary resource request, can be accomplished by the following way:
Secondary resource request is assigned to the second class web server cluster;So that the second class web server cluster is described
After the host field of Secondary resource request re-writes the second mark, the soft load balancing of application server cluster is forwarded it to
Component;And make the soft load balancing component of application server cluster according to the second mark, Secondary resource is requested assignment to second
Class application server cluster.
Refering to what is shown in Fig. 5, for the device of another gray scale publication provided by the present application, comprising:
Resource request initiation module 11 can be used for initiating first resource request;Wherein, in first resource request pair
When in the first cookie information answered not including gray scale mark, the first resource request is sent to first kind application server
Cluster;So that the first kind application server cluster is returned when first resource request meets preset draining conditions
Redirect response.
Response receiving module 21 is redirected, can be used for receiving redirection response, carry packet in the redirection response
The second cookie information containing the gray scale mark.
As shown in fig. 6, the application embodiment also provides a kind of computer equipment, including processor and can be used for depositing
The memory of processor-executable instruction is stored up, the processor realizes the step of above-mentioned any one method when executing described instruction
Suddenly.
The application also provides a kind of computer readable storage medium, is stored thereon with computer instruction, and described instruction is held
The step of above-mentioned any one method is realized when row.
It can be seen from the above description that the embodiment of the present application realizes following technical effect:
With in the prior art, the gray scale dissemination method by cell phone application client, or based on program branch is compared, and is solved
To the Dependence Problem of APP client, can be adapted for APP client and B/S framework (Browser/Server, browser/
Server architecture) under web client (browser).
In addition, the method that gray scale publication is realized by distinguishing the difference of network operator is compared in the prior art, this
It is not necessary to modify the bottom architectures of grid for application, and the cost of implementation is smaller, reduces complexity, can neatly customize suitable
The gray scale distributing strategy of own service situation.At the same time, gray scale strategy is safeguarded by application system itself, is reduced externally
Dependence.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete
Entirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, specific integrated circuit, programmable
Logic controller realizes identical function with the form for being embedded in microcontroller etc..Therefore this controller is considered one kind
Hardware component, and the structure that the device for realizing various functions for including in it can also be considered as in hardware component.Or
Even, can will be considered as realizing the device of various functions either the software module of implementation method can be Hardware Subdivision again
Structure in part.
Device that above-described embodiment illustrates, module can specifically realize by computer chip or entity, or by having certain
The product of function is planted to realize.
For convenience of description, it is divided into various modules when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each module can be realized in the same or multiple software and or hardware when application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
It realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution essence of the application
On in other words the part that contributes to existing technology can be embodied in the form of software products, in a typical configuration
In, calculating equipment includes one or more processors (CPU), input/output interface, network interface and memory.The computer is soft
Part product may include that some instructions are used so that a computer equipment (can be personal computer, server or network
Equipment etc.) execute method described in certain parts of each embodiment of the application or embodiment.The computer software product can
To be stored in memory, memory may include the non-volatile memory in computer-readable medium, random access memory
(RAM) and/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer
The example of readable medium.Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by
Any method or technique come realize information store.Information can be computer readable instructions, data structure, the module of program or its
His data.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory
(ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or
Other magnetic storage devices or any other non-transmission medium, can be used for storage can be accessed by a computing device information.According to
Herein defines, and computer-readable medium does not include of short duration computer readable media (transitory media), such as modulation
Data-signal and carrier wave.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The application can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, clothes
Business device computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, set
Top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer including any of the above system or equipment
Distributed computing environment etc..
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application there are many deformation and
Variation is without departing from spirit herein, it is desirable to which the attached claims include these deformations and change without departing from the application's
Spirit.
Claims (17)
1. a kind of gray scale dissemination method characterized by comprising
Receive the first resource request that client is initiated;The client includes web client;
When the first resource requests in corresponding first cookie information not including gray scale mark, the first resource is asked
It asks and is supplied to first kind application server cluster;So that the first kind application server cluster is full in first resource request
When the preset draining conditions of foot, Xiang Suoshu client, which returns, redirects response, carries in the redirection response comprising described
Second cookie information of gray scale mark.
2. the method according to claim 1, wherein described be supplied to the first resource request first kind and answer
With server cluster, comprising:
The first resource is requested assignment into first kind web server cluster, so that the first kind web server cluster exists
After the first mark of host field write-in of the first resource request, the soft load balancing of application server cluster is forwarded it to
Component, and make the soft load balancing component of the application server cluster according to first mark, the first resource is asked
It asks and distributes to the first kind application server cluster.
3. the method according to claim 1, wherein the first kind application server cluster passes through described first
The user information and user agent's information of resource request, judge whether the first resource request meets preset draining conditions.
4. the method according to claim 1, wherein further include:
The client is received according to the Secondary resource request for redirecting response and returning, the Secondary resource is requested specified
It include the gray scale mark in field;
Secondary resource request is supplied to the second class application server cluster;So that the second class application server cluster
Handle the Secondary resource request.
5. according to the method described in claim 4, it is characterized in that, Secondary resource request is supplied to the second class application clothes
Business device cluster, comprising:
By Secondary resource request distribution to the second class web server cluster;So that the second class web server cluster exists
The host field of the Secondary resource request includes the second mark, forwards it to the soft load balancing group of application server cluster
Part;So that the soft load balancing component of the application server cluster requests the Secondary resource according to second mark
Distribute to the second class application server cluster.
6. a kind of soft load balancing apparatus of Web server cluster characterized by comprising
First resource request receiving module, for receiving the first resource request of client initiation;The client includes web visitor
Family end;
First resource requests forwarding module, for requesting in corresponding first cookie information in the first resource not comprising ash
When scale will, first resource request is supplied to first kind application server cluster;So that the first kind application service
For device cluster when first resource request meets preset draining conditions, Xiang Suoshu client, which returns, redirects response, described
It redirects in response and carries the second cookie information comprising the gray scale mark.
7. a kind of computer equipment, including processor and for the memory of storage processor executable instruction, the processing
Device realizes the step of any one of claim 1-5 the method when executing described instruction.
8. a kind of computer readable storage medium is stored thereon with computer instruction, described instruction, which is performed, realizes that right is wanted
The step of seeking any one of 1-5 the method.
9. a kind of gray scale dissemination method characterized by comprising
Initiate first resource request;It wherein, does not include gray scale mark in the first cookie information of first resource request
When, the first resource request is sent to first kind application server cluster;So that the first kind application server cluster
When first resource request meets preset draining conditions, returns and redirect response;
It receives and redirects response, carry the second cookie information comprising the gray scale mark in the redirection response.
10. according to the method described in claim 9, it is characterized in that, first resource request is sent to first kind application
Server cluster, comprising:
The first resource request is assigned to first kind web server cluster, so that the first kind web server cluster exists
After the first mark of host field write-in of the first resource request, the soft load balancing of application server cluster is forwarded it to
Component, and make the soft load balancing component of the application server cluster according to first mark, the first resource is asked
It asks and distributes to the first kind application server cluster.
11. according to the method described in claim 9, it is characterized in that, the first kind application server cluster passes through described the
The user information and user agent's information of one resource request, judge whether the first resource request meets preset shunt bar
Part.
12. according to the method described in claim 9, it is characterized by further comprising:
It is responded according to redirecting, initiates Secondary resource request, include the gray scale in the specific field of the Secondary resource request
Mark;The Secondary resource request is provided to the second class application server cluster;So that the second class application server collection
Group handles the Secondary resource request;
Receive the response that the second class application server returns.
13. according to the method for claim 12, which is characterized in that the Secondary resource request is provided to the second class application
Server cluster;So that the second class application server cluster handles the Secondary resource request, comprising:
The Secondary resource request is assigned to the second class web server cluster;So that the second class web server cluster exists
The host field of the Secondary resource request includes the second mark, forwards it to the soft load balancing group of application server cluster
Part;And make the soft load balancing component of the application server cluster according to second mark, the Secondary resource is requested
Distribute to the second class application server cluster.
14. a kind of client characterized by comprising
First resource requests initiation module, for initiating first resource request;Wherein, in first resource request corresponding the
When in one cookie information not including gray scale mark, the first resource request is sent to first kind application server cluster;
So that the first kind application server cluster is returned and is redirected when first resource request meets preset draining conditions
Response;
Response receiving module is redirected, redirects response for receiving, is carried in the redirection response comprising the gray scale
Second cookie information of mark.
15. a kind of computer equipment, including processor and for the memory of storage processor executable instruction, the processing
Device realizes the step of any one of claim 9-13 the method when executing described instruction.
16. a kind of computer readable storage medium is stored thereon with computer instruction, described instruction, which is performed, realizes that right is wanted
The step of seeking any one of 9-13 the method.
17. a kind of gray scale delivery system characterized by comprising client, web server cluster soft load balancing apparatus,
First kind application server cluster;Wherein;
The client is requested for sending first resource to the soft load balancing apparatus of the web server cluster;
The soft load balancing apparatus of the web server cluster is used in the first cookie information that the first resource is requested
When not including gray scale mark, first resource request is sent to the first kind application server cluster;So that described
A kind of application server cluster returns when first resource request meets preset draining conditions and redirects response.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910710790.5A CN110311989B (en) | 2019-08-02 | 2019-08-02 | Gray scale publishing method, device, storage medium, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910710790.5A CN110311989B (en) | 2019-08-02 | 2019-08-02 | Gray scale publishing method, device, storage medium, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110311989A true CN110311989A (en) | 2019-10-08 |
CN110311989B CN110311989B (en) | 2022-01-28 |
Family
ID=68082916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910710790.5A Active CN110311989B (en) | 2019-08-02 | 2019-08-02 | Gray scale publishing method, device, storage medium, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110311989B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750289A (en) * | 2019-10-25 | 2020-02-04 | 中电福富信息科技有限公司 | A method for maintaining grayscale switching state of distributed systems |
CN110798524A (en) * | 2019-10-31 | 2020-02-14 | 成都知道创宇信息技术有限公司 | Page access method and device, electronic equipment and storage medium |
CN111538527A (en) * | 2020-03-30 | 2020-08-14 | 中国平安人寿保险股份有限公司 | A verification method, device, electronic device and storage medium for grayscale release |
CN111949313A (en) * | 2020-08-14 | 2020-11-17 | 中国工商银行股份有限公司 | A method and device for grayscale release of software products |
CN113055492A (en) * | 2021-03-25 | 2021-06-29 | 深圳云之家网络有限公司 | Control method and device for service gray scale link, computer equipment and storage medium |
CN113411219A (en) * | 2021-06-29 | 2021-09-17 | 山东派盟网络科技有限公司 | Method, device and equipment for publishing front-end service |
CN114598553A (en) * | 2022-03-29 | 2022-06-07 | 中国工商银行股份有限公司 | Grayscale publishing method and grayscale publishing device |
CN115314547A (en) * | 2022-09-20 | 2022-11-08 | 北京结慧科技有限公司 | Micro-service gray scale release method, device and system, storage medium and electronic equipment |
CN115334006A (en) * | 2022-10-14 | 2022-11-11 | 平安银行股份有限公司 | Gray level verification method and system based on client implementation |
CN117032991A (en) * | 2023-10-08 | 2023-11-10 | 宁波银行股份有限公司 | Gray scale publishing method, device and system |
CN117827308A (en) * | 2023-12-13 | 2024-04-05 | 天翼云科技有限公司 | A method, system and storage medium for redirecting pages to distribute grayscale resources |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103283209A (en) * | 2011-04-18 | 2013-09-04 | 北京新媒传信科技有限公司 | Application service platform system and implementation method thereof |
EP2710477A1 (en) * | 2011-05-18 | 2014-03-26 | Alibaba Group Holding Limited | Distributed caching and cache analysis |
US20140244387A1 (en) * | 2013-02-26 | 2014-08-28 | Aol Advertising Inc. | Systems and methods for accessing first party cookies |
CN105099988A (en) * | 2014-04-24 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Method used for supporting gray releasing, access method, devices and system |
CN106998369A (en) * | 2017-05-26 | 2017-08-01 | 努比亚技术有限公司 | Gray scale dissemination method, gateway blocker and computer-readable recording medium |
CN108319468A (en) * | 2017-01-16 | 2018-07-24 | 北京京东尚科信息技术有限公司 | Gray scale dissemination method, device, system and electronic equipment |
CN108470001A (en) * | 2018-03-16 | 2018-08-31 | 北京腾云天下科技有限公司 | A kind of web application gray scale dissemination method, server and system |
CN109787830A (en) * | 2019-01-21 | 2019-05-21 | 北京京东尚科信息技术有限公司 | Gray scale distribution control method, device, system, electronic equipment and storage medium |
-
2019
- 2019-08-02 CN CN201910710790.5A patent/CN110311989B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103283209A (en) * | 2011-04-18 | 2013-09-04 | 北京新媒传信科技有限公司 | Application service platform system and implementation method thereof |
EP2710477A1 (en) * | 2011-05-18 | 2014-03-26 | Alibaba Group Holding Limited | Distributed caching and cache analysis |
US20140244387A1 (en) * | 2013-02-26 | 2014-08-28 | Aol Advertising Inc. | Systems and methods for accessing first party cookies |
CN105099988A (en) * | 2014-04-24 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Method used for supporting gray releasing, access method, devices and system |
CN108319468A (en) * | 2017-01-16 | 2018-07-24 | 北京京东尚科信息技术有限公司 | Gray scale dissemination method, device, system and electronic equipment |
CN106998369A (en) * | 2017-05-26 | 2017-08-01 | 努比亚技术有限公司 | Gray scale dissemination method, gateway blocker and computer-readable recording medium |
CN108470001A (en) * | 2018-03-16 | 2018-08-31 | 北京腾云天下科技有限公司 | A kind of web application gray scale dissemination method, server and system |
CN109787830A (en) * | 2019-01-21 | 2019-05-21 | 北京京东尚科信息技术有限公司 | Gray scale distribution control method, device, system, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
姚严峰: "基于运营商容器云平台的研究", 《中国新通信》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750289A (en) * | 2019-10-25 | 2020-02-04 | 中电福富信息科技有限公司 | A method for maintaining grayscale switching state of distributed systems |
CN110798524A (en) * | 2019-10-31 | 2020-02-14 | 成都知道创宇信息技术有限公司 | Page access method and device, electronic equipment and storage medium |
CN111538527A (en) * | 2020-03-30 | 2020-08-14 | 中国平安人寿保险股份有限公司 | A verification method, device, electronic device and storage medium for grayscale release |
CN111949313B (en) * | 2020-08-14 | 2024-11-05 | 中国工商银行股份有限公司 | A method and device for grayscale release of software products |
CN111949313A (en) * | 2020-08-14 | 2020-11-17 | 中国工商银行股份有限公司 | A method and device for grayscale release of software products |
CN113055492A (en) * | 2021-03-25 | 2021-06-29 | 深圳云之家网络有限公司 | Control method and device for service gray scale link, computer equipment and storage medium |
CN113411219A (en) * | 2021-06-29 | 2021-09-17 | 山东派盟网络科技有限公司 | Method, device and equipment for publishing front-end service |
CN114598553A (en) * | 2022-03-29 | 2022-06-07 | 中国工商银行股份有限公司 | Grayscale publishing method and grayscale publishing device |
CN115314547A (en) * | 2022-09-20 | 2022-11-08 | 北京结慧科技有限公司 | Micro-service gray scale release method, device and system, storage medium and electronic equipment |
CN115334006A (en) * | 2022-10-14 | 2022-11-11 | 平安银行股份有限公司 | Gray level verification method and system based on client implementation |
CN117032991A (en) * | 2023-10-08 | 2023-11-10 | 宁波银行股份有限公司 | Gray scale publishing method, device and system |
CN117032991B (en) * | 2023-10-08 | 2024-01-26 | 宁波银行股份有限公司 | Gray scale publishing method, device and system |
CN117827308A (en) * | 2023-12-13 | 2024-04-05 | 天翼云科技有限公司 | A method, system and storage medium for redirecting pages to distribute grayscale resources |
Also Published As
Publication number | Publication date |
---|---|
CN110311989B (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110311989A (en) | A kind of gray scale dissemination method, device, storage medium, equipment and system | |
US11146502B2 (en) | Method and apparatus for allocating resource | |
US11132666B2 (en) | Service processing method and apparatus | |
CN105468362B (en) | Application deployment method and cloud computing system | |
CN112424746B (en) | In-situ triggered functions as a service within a service mesh | |
CN109857515B (en) | Bridge communication method, device, device and computer-readable storage medium | |
US9672140B1 (en) | Processing special requests at dedicated application containers | |
CN109542427B (en) | System customization method and device, electronic equipment and storage medium | |
CN109032797A (en) | For providing the method and apparatus of web page access | |
WO2019042240A1 (en) | Short-link parsing method, apparatus and device | |
CN109992406B (en) | Picture request method, picture request response method and client | |
CN108510389A (en) | Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain | |
US10417066B2 (en) | Adapting legacy endpoints to modern APIs | |
JP2015528606A (en) | Method and apparatus for responding to web page access request | |
CN104335524A (en) | Common web accessible data store for client side page processing | |
CN104572099B (en) | Lower coupling frame data processing method and system based on component and middleware | |
CN110213105A (en) | It is a kind of cross-platform micro- using creation method | |
CN112491943A (en) | Data request method, device, storage medium and electronic equipment | |
US10931791B2 (en) | Method and apparatus for processing request | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
CN105556918A (en) | Resource downloading method, electronic device, and apparatus | |
CN113055348B (en) | Cross-platform data request method and device and electronic equipment | |
CN106790501A (en) | A kind of method for processing business and device redirected based on interface | |
CN108462731A (en) | Agent data method, apparatus and electronic equipment | |
WO2023083071A1 (en) | View interaction method and apparatus, electronic device, and computer readable medium |
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 |