CN111782260A - Gray scale distribution method and gray scale distribution device - Google Patents

Gray scale distribution method and gray scale distribution device Download PDF

Info

Publication number
CN111782260A
CN111782260A CN202010605116.3A CN202010605116A CN111782260A CN 111782260 A CN111782260 A CN 111782260A CN 202010605116 A CN202010605116 A CN 202010605116A CN 111782260 A CN111782260 A CN 111782260A
Authority
CN
China
Prior art keywords
gray
strategy
request data
determining
gray scale
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010605116.3A
Other languages
Chinese (zh)
Other versions
CN111782260B (en
Inventor
付鹏
张帅
倪宏梁
金亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010605116.3A priority Critical patent/CN111782260B/en
Publication of CN111782260A publication Critical patent/CN111782260A/en
Application granted granted Critical
Publication of CN111782260B publication Critical patent/CN111782260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a gray level issuing method and a gray level issuing device, wherein the method comprises the following steps: receiving request data sent by a request terminal, and analyzing the request data to obtain key element parameters carried by the request data; determining a strategy matching result according to the key element parameters and a preset gray strategy library; determining a gray scale version corresponding to the request data based on the strategy matching result; and sending the request data to a target terminal in a routing mode. The invention can improve the adaptability and flexibility of gray release and further reduce the research and development cost.

Description

Gray scale distribution method and gray scale distribution device
Technical Field
The invention relates to the technical field of computers, in particular to a gray scale publishing method and a gray scale publishing device.
Background
With the rapid development of the internet and mobile communication, the financial technology system of commercial banks has been integrated into each field of people production and life, the market has made higher requirements on the stability of the bank technology system, and the gray scale release technology has become an important guarantee for the stability of the application system. With the transformation of the distributed architecture, the service call interaction between applications gradually becomes a mainstream mode, and the gray level control of the service call becomes the key point of the maturity construction of each application.
At present, due to the fact that system positioning and business type differences among application systems are large, requirements for gray strategies are different, and therefore all application gray release schemes cannot be multiplexed and need to be repeatedly developed, and unnecessary research and development cost is increased. Meanwhile, due to the particularity of the gray release, the requirement on emergency capacity is high, quick switching needs to be achieved in emergency, and business influence is reduced.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a gray scale publishing method and a gray scale publishing device, which can improve the adaptability and flexibility of gray scale publishing and further reduce the research and development cost.
In order to solve the technical problems, the invention provides the following technical scheme:
in a first aspect, the present invention provides a gray scale publishing method, including:
receiving request data sent by a request terminal, and analyzing the request data to obtain key element parameters carried by the request data;
determining a strategy matching result according to the key element parameters and a preset gray strategy library;
determining a gray scale version corresponding to the request data based on the strategy matching result;
sending the request data to a target terminal in a routing mode; the target terminal refers to one or more terminal devices which adopt the gray-scale version and are used for processing the request data.
Further, the method also comprises the following steps:
receiving strategy data sent by an operation and maintenance terminal;
and generating a gray strategy according to the strategy data and storing the gray strategy into the gray strategy library.
Further, the method also comprises the following steps:
receiving isolation data sent by an operation and maintenance terminal;
determining a gray strategy corresponding to the isolation data in the gray strategy library;
and marking the state of the gray strategy corresponding to the isolation data as invalid.
Wherein, the determining the strategy matching result according to the key element parameter and a preset gray strategy library comprises:
determining key values corresponding to the key element parameters, and performing logic operation based on the key values to determine characteristic values;
searching a gray strategy corresponding to the characteristic value in the preset gray strategy library;
and the strategy matching result is the gray strategy corresponding to the characteristic value.
In a second aspect, the present invention provides a gradation issuance apparatus comprising:
the first receiving unit is used for receiving request data sent by a request terminal and analyzing the request data to obtain key element parameters carried by the request data;
the matching unit is used for determining a strategy matching result according to the key element parameters and a preset gray strategy library;
the version unit is used for determining the gray level version corresponding to the request data based on the strategy matching result;
the forwarding unit is used for sending the request data to a target terminal in a routing mode; the target terminal refers to one or more terminal devices which adopt the gray-scale version and are used for processing the request data.
Further, the method also comprises the following steps:
the second receiving unit is used for receiving the strategy data sent by the operation and maintenance terminal;
and the storage unit is used for generating a gray strategy according to the strategy data and storing the gray strategy into the gray strategy library.
Further, the method also comprises the following steps:
the third receiving unit is used for receiving the isolation data sent by the operation and maintenance terminal;
the marking unit is used for determining a gray strategy corresponding to the isolation data in the gray strategy library;
and the isolation unit is used for marking the state of the gray strategy corresponding to the isolation data as invalid.
Wherein the matching unit includes:
the characteristic calculation subunit is used for determining key values corresponding to the key element parameters and performing logical operation based on the key values to determine characteristic values;
the searching subunit is used for searching the gray strategy corresponding to the characteristic value in the preset gray strategy library;
and the strategy matching result is the gray strategy corresponding to the characteristic value.
In a third aspect, the present invention provides an electronic device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the gray scale publishing method when executing the program.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the gray scale publishing method described.
According to the technical scheme, the invention provides the gray scale release method and the gray scale release device, and the request data sent by the request terminal is received and analyzed to obtain the key element parameters carried by the request data; determining a strategy matching result according to the key element parameters and a preset gray strategy library; determining a gray scale version corresponding to the request data based on the strategy matching result; the request data are sent to the target terminal in a routing mode, so that the adaptability and flexibility of gray scale release can be improved, and the research and development cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a first process of a gray scale publishing method in an embodiment of the invention.
Fig. 2 is a schematic diagram of a second process of the gray scale publishing method in the embodiment of the present invention.
Fig. 3 is a schematic third flow chart of the gray scale issuing method in the embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a system applying the gray scale publishing method in the embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a gray scale issuing device in an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides an embodiment of a gray scale publishing method, which specifically comprises the following contents in reference to fig. 1:
s101: receiving request data sent by a request terminal, and analyzing the request data to obtain key element parameters carried by the request data;
in this step, the requesting terminal is the party that initiates the service consumption. The service consumer sends out request data and sends the request data to the service provider in a gray scale release mode.
It can be understood that the request data carries key element parameters corresponding to the initiated service, and the key element parameters carried by the request data can be obtained by performing data analysis on the request data, wherein the key element parameters are various service elements such as a region number, a client number, a service type and the like.
In this embodiment, a grayscale policy library for storing grayscale policies needs to be set in advance. And maintaining the gray strategy library by operation and maintenance personnel through an operation and maintenance platform according to the service requirements.
S102: determining a strategy matching result according to the key element parameters and a preset gray strategy library;
in this step, a predefined key element parameter rule determines an element result corresponding to each key element parameter, where the element result is a key value.
Analyzing the request data to obtain a plurality of key element parameters, determining key values corresponding to the key element parameters, and performing logical operation (and/or not) on the key values corresponding to the key element parameters to determine a logical operation result, wherein the logical operation result is a characteristic value corresponding to the request data.
It will be appreciated that the result of the logical operation corresponds to the requested data.
Searching a gray strategy corresponding to the characteristic value in the preset gray strategy library; and the strategy matching result is the gray strategy corresponding to the characteristic value.
In this embodiment, the obtained policy matching result indicates that the request data sent by the request terminal is processed in a gray-scale distribution manner by using the node of the gray-scale distribution. Further, if the policy matching result is not obtained, it indicates that the request data sent by the request terminal is processed by a conventionally issued node in a conventionally issued manner.
S103: determining a gray scale version corresponding to the request data based on the strategy matching result;
in the step, the strategy matching result is read, the requested gray versions are judged one by one according to the priority from high to low, and if the high-priority matching is successful, the matching is not continued, so that only one gray version is ensured to process.
S104: sending the request data to a target terminal in a routing mode; the target terminal refers to one or more terminal devices which adopt the gray-scale version and are used for processing the request data.
The service provider deploys the gray version and the conventional version to different service nodes respectively, the gray version attribute is added when the service nodes register to the registration center to identify the gray version of the current service, and the gray version needs to correspond to the gray version of the service consumer. The service consumer introduces a route through which the request data of the service consumer is processed.
In this step, a plurality of terminals that use the grayscale version and process the request data are determined according to the grayscale version corresponding to the request data, at least one terminal is determined from the plurality of terminals as a target terminal, the request data is transmitted to the target terminal by a route, and the target terminal processes the request data.
The target terminal may be determined in a random manner or a load balancing manner.
As can be seen from the above description, in the gray scale publishing method provided in the embodiment of the present invention, the request data sent by the request terminal is received, and the request data is analyzed to obtain the key element parameters carried by the request data; determining a strategy matching result according to the key element parameters and a preset gray strategy library; determining a gray scale version corresponding to the request data based on the strategy matching result; the request data are sent to the target terminal in a routing mode, so that the adaptability and flexibility of gray scale release can be improved, the research and development cost is reduced, the judgment of various operation relations of business elements is supported, more alternatives of gray scale rule combinations are provided, and diversified business requirements are met.
In an embodiment of the present invention, referring to fig. 2, the gray scale publishing method further includes the following steps:
s105: receiving strategy data sent by an operation and maintenance terminal;
s106: and generating a gray strategy according to the strategy data and storing the gray strategy into the gray strategy library.
In this embodiment, the grayscale strategy is adjusted according to the service requirement, the operation and maintenance personnel sends strategy data corresponding to the grayscale strategy adjustment through the operation and maintenance terminal, generates the grayscale strategy according to the strategy data and stores the grayscale strategy into the grayscale strategy library, and reads a new grayscale strategy library after the adjustment is effective when processing the next request data, so as to implement distribution according to the new grayscale strategy. The dynamic gray level adjusting strategy is realized, the real-time effect can be realized, and the timeliness is strong.
In an embodiment of the present invention, referring to fig. 3, the gray scale publishing method further includes the following steps:
s107: receiving isolation data sent by an operation and maintenance terminal;
in this step, when the gray scale policy needs to be adjusted in an emergency, such as modifying the gray scale rule and offline the gray scale version, for example, the problem version policy is set to be invalid to achieve the purpose of isolating the problem version. And the operation and maintenance personnel send the isolation data corresponding to the gray level adjustment strategy through the operation and maintenance terminal.
S108: determining a gray strategy corresponding to the isolation data in the gray strategy library;
s109: and marking the state of the gray strategy corresponding to the isolation data as invalid.
And synchronizing to the policy cache server in real time after the policy adjustment takes effect. And the operation and maintenance personnel sends the isolation data corresponding to the gray strategy adjustment through the operation and maintenance terminal, determines the gray strategy corresponding to the isolation data in the gray strategy library, marks the state of the gray strategy as invalid, reads the new gray strategy library after the adjustment is effective when processing the next request data, and realizes distribution according to the new gray strategy. The problem version emergency isolation can be realized by disabling the problem version gray level strategy, and the service influence is reduced.
To further explain the scheme, the present invention provides a system applying a gray scale publishing method, which is combined with the system to explain the gray scale publishing method, and refer to fig. 4, which specifically includes the following contents:
maintenance of a gray level strategy:
defining a grayscale policy library comprising: key element data and corresponding key values, gray scale rules (logical operation relationship between key element data), gray scale service version numbers, starting states of all gray scale service versions and the like. And maintaining the strategy library by the operation and maintenance personnel through the operation and maintenance platform according to the service requirements. And pushing the changed gray strategy to a strategy cache server in real time.
Deployment of gray versions:
the service provider deploys the gray version and the conventional version to different nodes respectively, and adds a gray version attribute to identify the gray version of the current service when the service registers in the registry, wherein the gray version needs to correspond to the gray version number configured in the gray policy library.
Request forwarding control:
the gray level routing reads policy content in the policy cache server when processing a consumer request. And judging the gray versions of the requests one by one according to the priority from high to low, and ensuring that each request is processed by only one version if the high-priority matching is successful and the matching is not continued.
And analyzing the key elements in the request, judging element results corresponding to the key elements, and substituting each element result into the gray rule to obtain a final current strategy matching result.
And if the strategies are matched, forwarding the strategy to the radian version node.
And if all the strategies are not matched, forwarding to the node of the conventional version.
Strategy emergency adjustment:
when the gray scale regulation strategy such as gray scale rule modification, gray scale version offline and the like is required to be modified in emergency, operation and maintenance personnel maintain the gray scale strategy library according to the regulation requirement, for example, the problem version strategy is set to be invalid so as to achieve the purpose of isolating the problem version. And synchronizing to the policy cache server in real time after the policy adjustment takes effect.
And the gray level router reads the new strategy after adjustment in the strategy cache is effective when processing the next request, and distributes the request according to the new strategy.
From the above description, the invention can solve the problems of large complexity and difference of the gray level calling request control service rule, low rule adjustment timeliness and non-universal implementation scheme. The scheme supports a user-defined gray scale strategy, the request is distributed to the corresponding gray scale node by analyzing the gray scale strategy, and an application system does not need to develop a gray scale control module, so that the configuration and the generalization of the application gray scale control are realized. Meanwhile, real-time dynamic adjustment of a gray scale strategy is supported, and the effect of quickly adjusting the gray scale is achieved.
An embodiment of the present invention provides a specific implementation manner of a gray scale publishing device capable of implementing all contents in the gray scale publishing method, and referring to fig. 5, the gray scale publishing device specifically includes the following contents:
a first receiving unit 10, configured to receive request data sent by a request terminal, and analyze the request data to obtain a key element parameter carried by the request data;
the matching unit 20 is used for determining a strategy matching result according to the key element parameters and a preset gray strategy library;
a version unit 30, configured to determine a grayscale version corresponding to the request data based on the policy matching result;
a forwarding unit 40, configured to send the request data to a target terminal in a routing manner; the target terminal refers to one or more terminal devices which adopt the gray-scale version and are used for processing the request data.
Further, the method also comprises the following steps:
the second receiving unit is used for receiving the strategy data sent by the operation and maintenance terminal;
and the storage unit is used for generating a gray strategy according to the strategy data and storing the gray strategy into the gray strategy library.
Further, the method also comprises the following steps:
the third receiving unit is used for receiving the isolation data sent by the operation and maintenance terminal;
the marking unit is used for determining a gray strategy corresponding to the isolation data in the gray strategy library;
and the isolation unit is used for marking the state of the gray strategy corresponding to the isolation data as invalid.
Wherein the matching unit 20 comprises:
the characteristic calculation subunit is used for determining key values corresponding to the key element parameters and performing logical operation based on the key values to determine characteristic values;
the searching subunit is used for searching the gray strategy corresponding to the characteristic value in the preset gray strategy library;
and the strategy matching result is the gray strategy corresponding to the characteristic value.
The embodiment of the gray scale publishing device provided by the present invention may be specifically used for executing the processing flow of the embodiment of the gray scale publishing method in the foregoing embodiment, and the function of the embodiment is not described herein again, and reference may be made to the detailed description of the embodiment of the method.
As can be seen from the above description, the gray scale publishing device provided in the embodiment of the present invention receives the request data sent by the request terminal, and analyzes the request data to obtain the key element parameters carried by the request data; determining a strategy matching result according to the key element parameters and a preset gray strategy library; determining a gray scale version corresponding to the request data based on the strategy matching result; the request data are sent to the target terminal in a routing mode, so that the adaptability and flexibility of gray scale release can be improved, the research and development cost is reduced, the judgment of various operation relations of business elements is supported, more alternatives of gray scale rule combinations are provided, and diversified business requirements are met.
The application provides an embodiment of an electronic device for implementing all or part of contents in the gray scale publishing method, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between related devices; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the embodiment for implementing the gray scale issuing method and the embodiment for implementing the gray scale issuing device in the embodiments, and the contents thereof are incorporated herein, and repeated details are not repeated.
Fig. 6 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 6, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this FIG. 6 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the gray release functionality may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
receiving request data sent by a request terminal, and analyzing the request data to obtain key element parameters carried by the request data; determining a strategy matching result according to the key element parameters and a preset gray strategy library; determining a gray scale version corresponding to the request data based on the strategy matching result; and sending the request data to a target terminal in a routing mode.
As can be seen from the above description, in the electronic device provided in the embodiment of the present application, by receiving request data sent by a request terminal, the request data is analyzed to obtain key element parameters carried by the request data; determining a strategy matching result according to the key element parameters and a preset gray strategy library; determining a gray scale version corresponding to the request data based on the strategy matching result; the request data are sent to the target terminal in a routing mode, so that the adaptability and flexibility of gray scale release can be improved, the research and development cost is reduced, the judgment of various operation relations of business elements is supported, more alternatives of gray scale rule combinations are provided, and diversified business requirements are met.
In another embodiment, the gray releasing device may be configured separately from the central processor 9100, for example, the gray releasing device may be configured as a chip connected to the central processor 9100, and the gray releasing function is realized by the control of the central processor.
As shown in fig. 6, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 6; further, the electronic device 9600 may further include components not shown in fig. 6, which may be referred to in the art.
As shown in fig. 6, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present invention further provides a computer-readable storage medium capable of implementing all the steps in the gray scale distribution method in the above embodiments, where the computer-readable storage medium stores thereon a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the gray scale distribution method in the above embodiments, for example, when the processor executes the computer program, the processor implements the following steps:
receiving request data sent by a request terminal, and analyzing the request data to obtain key element parameters carried by the request data; determining a strategy matching result according to the key element parameters and a preset gray strategy library; determining a gray scale version corresponding to the request data based on the strategy matching result; and sending the request data to a target terminal in a routing mode.
As can be seen from the above description, in the computer-readable storage medium provided in the embodiment of the present invention, request data sent by a request terminal is received, and the request data is analyzed to obtain key element parameters carried by the request data; determining a strategy matching result according to the key element parameters and a preset gray strategy library; determining a gray scale version corresponding to the request data based on the strategy matching result; the request data are sent to the target terminal in a routing mode, so that the adaptability and flexibility of gray scale release can be improved, the research and development cost is reduced, the judgment of various operation relations of business elements is supported, more alternatives of gray scale rule combinations are provided, and diversified business requirements are met.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, apparatus (system) or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. A gray scale issuing method characterized by comprising:
receiving request data sent by a request terminal, and analyzing the request data to obtain key element parameters carried by the request data;
determining a strategy matching result according to the key element parameters and a preset gray strategy library;
determining a gray scale version corresponding to the request data based on the strategy matching result;
sending the request data to a target terminal in a routing mode; the target terminal refers to one or more terminal devices which adopt the gray-scale version and are used for processing the request data.
2. The gray scale issuing method according to claim 1, further comprising:
receiving strategy data sent by an operation and maintenance terminal;
and generating a gray strategy according to the strategy data and storing the gray strategy into the gray strategy library.
3. The gray scale issuing method according to claim 1, further comprising:
receiving isolation data sent by an operation and maintenance terminal;
determining a gray strategy corresponding to the isolation data in the gray strategy library;
and marking the state of the gray strategy corresponding to the isolation data as invalid.
4. The gray release method of claim 1, wherein the determining a policy matching result according to the key element parameter and a preset gray policy library comprises:
determining key values corresponding to the key element parameters, and performing logic operation based on the key values to determine characteristic values;
searching a gray strategy corresponding to the characteristic value in the preset gray strategy library;
and the strategy matching result is the gray strategy corresponding to the characteristic value.
5. A gradation issuance apparatus comprising:
the first receiving unit is used for receiving request data sent by a request terminal and analyzing the request data to obtain key element parameters carried by the request data;
the matching unit is used for determining a strategy matching result according to the key element parameters and a preset gray strategy library;
the version unit is used for determining the gray level version corresponding to the request data based on the strategy matching result;
the forwarding unit is used for sending the request data to a target terminal in a routing mode; the target terminal refers to one or more terminal devices which adopt the gray-scale version and are used for processing the request data.
6. A gradation issuance apparatus according to claim 5, further comprising:
the second receiving unit is used for receiving the strategy data sent by the operation and maintenance terminal;
and the storage unit is used for generating a gray strategy according to the strategy data and storing the gray strategy into the gray strategy library.
7. A gradation issuance apparatus according to claim 5, further comprising:
the third receiving unit is used for receiving the isolation data sent by the operation and maintenance terminal;
the marking unit is used for determining a gray strategy corresponding to the isolation data in the gray strategy library;
and the isolation unit is used for marking the state of the gray strategy corresponding to the isolation data as invalid.
8. A gradation issuance apparatus according to claim 5, wherein the matching unit includes:
the characteristic calculation subunit is used for determining key values corresponding to the key element parameters and performing logical operation based on the key values to determine characteristic values;
the searching subunit is used for searching the gray strategy corresponding to the characteristic value in the preset gray strategy library;
and the strategy matching result is the gray strategy corresponding to the characteristic value.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the gray scale publishing method of any one of claims 1 to 4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the gray scale distribution method of any one of claims 1 to 4.
CN202010605116.3A 2020-06-29 2020-06-29 Gray level distribution method and gray level distribution device Active CN111782260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010605116.3A CN111782260B (en) 2020-06-29 2020-06-29 Gray level distribution method and gray level distribution device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010605116.3A CN111782260B (en) 2020-06-29 2020-06-29 Gray level distribution method and gray level distribution device

Publications (2)

Publication Number Publication Date
CN111782260A true CN111782260A (en) 2020-10-16
CN111782260B CN111782260B (en) 2024-01-26

Family

ID=72760238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010605116.3A Active CN111782260B (en) 2020-06-29 2020-06-29 Gray level distribution method and gray level distribution device

Country Status (1)

Country Link
CN (1) CN111782260B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073320A (en) * 2020-11-12 2020-12-11 深圳壹账通智能科技有限公司 API (application program interface) gray level release method and device based on cloud gateway and computer equipment
CN113014651A (en) * 2021-03-03 2021-06-22 中国工商银行股份有限公司 Gray scale publishing method, application server and gray scale publishing system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
CN108632374A (en) * 2018-05-09 2018-10-09 星络科技有限公司 Software gray scale dissemination method and device
CN109871224A (en) * 2019-02-13 2019-06-11 北京炎黄新星网络科技有限公司 A kind of gray scale dissemination method, system, medium and equipment based on user identifier
CN109992273A (en) * 2019-01-03 2019-07-09 蔚来汽车有限公司 A kind of gray scale dissemination method and gray scale delivery system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
CN108632374A (en) * 2018-05-09 2018-10-09 星络科技有限公司 Software gray scale dissemination method and device
CN109992273A (en) * 2019-01-03 2019-07-09 蔚来汽车有限公司 A kind of gray scale dissemination method and gray scale delivery system
CN109871224A (en) * 2019-02-13 2019-06-11 北京炎黄新星网络科技有限公司 A kind of gray scale dissemination method, system, medium and equipment based on user identifier

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073320A (en) * 2020-11-12 2020-12-11 深圳壹账通智能科技有限公司 API (application program interface) gray level release method and device based on cloud gateway and computer equipment
CN112073320B (en) * 2020-11-12 2021-02-09 深圳壹账通智能科技有限公司 API (application program interface) gray level release method and device based on cloud gateway and computer equipment
CN113014651A (en) * 2021-03-03 2021-06-22 中国工商银行股份有限公司 Gray scale publishing method, application server and gray scale publishing system
CN113014651B (en) * 2021-03-03 2022-09-27 中国工商银行股份有限公司 Gray scale release method, application server and gray scale release system

Also Published As

Publication number Publication date
CN111782260B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN113014651B (en) Gray scale release method, application server and gray scale release system
CN110958218B (en) Data transmission method based on multi-network communication and related equipment
CN111031058A (en) Websocket-based distributed server cluster interaction method and device
CN110764881A (en) Distributed system background retry method and device
CN111782260B (en) Gray level distribution method and gray level distribution device
CN111510493B (en) Distributed data transmission method and device
CN112689012A (en) Cross-network proxy communication method and device
CN114257532A (en) Server side state detection method and device
CN112396511B (en) Distributed wind control variable data processing method, device and system
CN112905338B (en) Automatic computing resource allocation method and device
CN112468574B (en) Processing method, device and system for application service publishing and subscribing mechanism
CN113438251A (en) Protocol conversion method, device and system
CN111352719A (en) Transaction book-keeping service data processing method, device and system
CN114979280B (en) Registration center access method and device
CN111338905A (en) Application node data processing method and device
CN113452776B (en) PaaS platform service scheduling method and device and PaaS platform
CN115378809A (en) Software version upgrading method and device
CN111262794B (en) Gateway flow control method and device
CN113645151A (en) DUP equipment message management method and device
CN111930626A (en) Automatic testing method and device based on PaaS cloud service
CN111343172A (en) Network access authority dynamic processing method and device
CN112968954B (en) Flow control method, server and system for service migration
CN113342501B (en) System fault processing method and device
CN113434423B (en) Interface testing method and device
CN114567599A (en) Load control method and device

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