Unlock instant, AI-driven research and patent intelligence for your innovation.

Gray release method and gray release system based on Spring Cloud

A gray-scale release and gray-scale technology, applied in the computer field, can solve the problems of reducing the degree of code intrusion, short release time, difficulty in version promotion and control, etc., to reduce the degree of intrusion, short release time, and easy versioning The effect of promotion and control

Inactive Publication Date: 2020-11-06
SHANGHAI FEIMA NETWORK SCI & TECH CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to overcome the defects of the prior art, to provide a method and system based on Spring Cloud gray release, which solves the problem of difficult version promotion and control using the SDK method, reduces the degree of intrusion to the code, and makes the release The time is shorter, which is convenient for version promotion and control

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Gray release method and gray release system based on Spring Cloud

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0041] As a preferred embodiment of the present invention, it also includes:

[0042] Mount the agent module to the client through the server;

[0043] Use the agent module to obtain the call request sent by the client, and compare and judge whether the key-value of the call request is consistent with the request key-value of the grayscale rule. If they are consistent, find the corresponding one according to the target service name and target version number of the grayscale rule information of the service instance, and then connect to the interface of the corresponding target client according to the IP port number of the service instance information.

[0044] Preferably, the agent module uses bytecode modification technology to enhance the bytecode of the load balancing component of the client, so as to be able to obtain request parameters of the calling request.

[0045] Further, when the client establishes a TCP connection with the server, it also includes:

[0046] Detect...

specific Embodiment approach

[0052] Mount the agent program on several clients, and use the agent program to modify the bytecode technology to enhance the bytecode of the load balancing component of the client, so that the client can obtain the request parameters of the call request;

[0053] Establish connections between several clients and the server through TCP, and each client transmits its own service instance information to the server and saves it in the server;

[0054] The server sends all the saved service instance information with grayscale rules to each client, and each client saves all the service instance information with grayscale rules locally;

[0055] The client and the server maintain heartbeat detection. If the server detects that the client’s heartbeat does not exist, the server will delete the saved service instance information of the client and notify all other online clients. If the client detects the server’s heartbeat If it does not exist, the client will lock the service instance...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a gray release method based on Spring Cloud. The method comprises the following steps: establishing communication connection with a server, and sending a gray release instruction to the server to enable the server to send a gray rule to a plurality of clients according to the gray release instruction; and enabling the clients to obtain return results from a corresponding target client according to the gray rule. According to the method, the problem that version promotion and control are difficult in an SDK mode is effectively solved, the invasion degree of codes is reduced, the release time is shorter, and version promotion and control are facilitated.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a Spring Cloud-based gray scale release method and system thereof. Background technique [0002] Grayscale release refers to a release method that can smoothly transition between black and white, on which A / B testing can be performed, that is, let some users continue to use product feature A, and some users start to use product feature B. If users If there is no objection to B, then gradually expand the scope and migrate all users to B. Grayscale publishing can ensure the stability of the overall system, and problems can be found and adjusted at the initial grayscale to ensure their impact. [0003] At present, gray release is usually based on the traditional SDK method, but this method has a large degree of code intrusion, which is not conducive to the promotion and control of the version. Contents of the invention [0004] The purpose of the present invention is to overco...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/71H04L29/08
CPCG06F8/71H04L67/34H04L67/60
Inventor 谢捷峰
Owner SHANGHAI FEIMA NETWORK SCI & TECH CO LTD