CN112910702A - Polymorphic gateway fusion method - Google Patents
Polymorphic gateway fusion method Download PDFInfo
- Publication number
- CN112910702A CN112910702A CN202110133858.5A CN202110133858A CN112910702A CN 112910702 A CN112910702 A CN 112910702A CN 202110133858 A CN202110133858 A CN 202110133858A CN 112910702 A CN112910702 A CN 112910702A
- Authority
- CN
- China
- Prior art keywords
- script
- gateway
- parameter
- management
- dynamic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000007500 overflow downdraw method Methods 0.000 title claims abstract description 19
- 238000013515 script Methods 0.000 claims abstract description 71
- 238000004364 calculation method Methods 0.000 claims description 16
- 238000004806 packaging method and process Methods 0.000 claims description 7
- 238000013475 authorization Methods 0.000 claims description 5
- 238000007499 fusion processing Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims description 3
- 238000005538 encapsulation Methods 0.000 claims 1
- 238000010200 validation analysis Methods 0.000 claims 1
- 238000012423 maintenance Methods 0.000 abstract description 4
- 230000003993 interaction Effects 0.000 abstract description 2
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- 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/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0643—Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the field of information technology service, and particularly provides a polymorphic gateway fusion method which is characterized by comprising dynamic script management, API (application program interface) configuration management, dynamic script updating, an engine pool and a gateway computing unit; the dynamic script management is connected with the API configuration management and the engine pool; the gateway computing unit is connected with an engine pool and API configuration management, and the script dynamic update is connected with the engine pool. Compared with the prior art, the invention realizes the interaction with operation and maintenance personnel through the script management interface, has programmability and is more flexible and efficient compared with a manual configuration mode.
Description
Technical Field
The invention relates to the field of information technology service, and particularly provides a polymorphic gateway fusion method.
Background
At present, the API gateway is mature in the aspects of authorization authentication, fusing and current limiting, routing distribution and the like, but is deficient in the aspect of interactive fusion of authorization authentication with a downstream gateway. Usually, the development is based on adapter development, personalized customization and other modes, and as the service becomes more and more complex, the development architecture becomes more and more bloated, and the universal maintenance is not convenient.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a polymorphic gateway fusion method with strong practicability.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a polymorphic gateway fusion method comprises dynamic script management, API configuration management, script dynamic update, an engine pool and a gateway computing unit;
the dynamic script management is connected with the API configuration management and the engine pool; the gateway computing unit is connected with an engine pool and API configuration management, and the script dynamic update is connected with the engine pool.
Further, the dynamic script management is used for unified management of Groovy script parameter rules and script contents.
Further, the dynamic script management comprises script parameter rules and script content management, and the script parameter rules are used for defining parameters necessary in the fusion process of the downstream service gateway.
Preferably, the parameter definition includes a parameter name, a parameter location, a parameter type, and a default value.
Further, the API configuration management is used for gateway API information management and script configuration, and the script dynamic update is used for immediate compiling and taking effect after the Groovy script is changed.
Further, the script dynamic update respectively carries out MD5 calculation according to the rule configuration data and the existing rules in the engine pool, compares the values, directly executes the calculation if the values are equal, dynamically compiles the script content again if the values are not equal, and simultaneously updates the script engine pool.
Furthermore, the engine pool is used for performing unified management of the script after compiling, and the gateway computing unit is used for acquiring script content from the script engine pool when a request is initiated, performing computing, further packaging dynamic parameter positions according to script parameter rules, and transmitting the dynamic parameter positions to a downstream service gateway to complete an authorization verification process.
Further, the gateway computing unit comprises rule computing and parameter packaging,
the rule calculation is used for loading scripts from the engine pool and finishing the calculation logic compiled by the script contents;
and the parameter package is used for acquiring values from the calculation result of the last step according to the script parameter rule and further packaging the parameters, and transmitting the values to a downstream service gateway to complete the whole service request link.
Compared with the prior art, the polymorphic gateway fusion method has the following outstanding beneficial effects:
the invention can realize the interaction with operation and maintenance personnel through the script management interface, has programmability and is more flexible and efficient compared with a manual configuration mode. By means of a pre-compiling mode and a dynamic script updating mode, performance loss and resource cost caused by repeated compiling calculation are reduced. In a Zuul multi-gateway fusion scene, the requirement for the dynamic signature authentication service of the upstream gateway and the downstream gateway is met.
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 flow diagram of a polymorphic gateway fusion method;
fig. 2 is a flow chart of rule engine computation in a polymorphic gateway fusion method.
Detailed Description
The present invention will be described in further detail with reference to specific embodiments in order to better understand the technical solutions of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.
A preferred embodiment is given below:
as shown in fig. 1 and 2, a multimodal gateway fusion method in this embodiment includes dynamic scenario management, API configuration management, scenario dynamic update, an engine pool, and a gateway computing unit;
the dynamic script management is connected with the API configuration management and the engine pool; the gateway computing unit is connected with the engine pool and the API configuration management, and the script dynamic update is connected with the engine pool.
The dynamic script management is used for unified management of Groovy script parameter rules and script contents. The dynamic script management comprises script parameter rules and script content management, wherein the script parameter rules are used for defining necessary parameters in the fusion process of the downstream service gateway.
The parameter definition comprises a parameter name, a parameter position, a parameter type and a default value.
The API configuration management is used for gateway API information management and script configuration, and the dynamic updating of the script is used for immediate compiling and taking effect after the change of the Groovy script.
And respectively performing MD5 calculation on the script dynamic update according to the rule configuration data and the existing rules in the engine pool, comparing the values, directly executing the calculation if the values are equal, dynamically compiling the script content if the values are not equal, and updating the script engine pool.
The gateway computing unit is used for acquiring script content from the script engine pool when a request is initiated, executing computation, further packaging dynamic parameter positions according to script parameter rules, and transmitting the dynamic parameter positions to a downstream service gateway to finish an authorization verification process.
The gateway computing unit comprises rule computing and parameter packaging;
the rule calculation is used for loading the script from the engine pool and finishing the calculation logic compiled by the script content;
and the parameter package is used for obtaining a value from the last calculation result according to the script parameter rule and further packaging the parameter, and transmitting the value to a downstream service gateway to complete the whole service request link.
The universal technical algorithm which is used for maintaining the dynamic scripts and needs to be quoted comprises a UUID generation algorithm, a timestamp generation algorithm, a SHA256 encryption algorithm, an MD5 encryption algorithm and the like, and the difficulty of compiling the Groovy script by operation and maintenance personnel is further reduced.
The above embodiments are only specific cases of the present invention, and the scope of the present invention includes but is not limited to the above embodiments, and any appropriate changes or substitutions according to the claims of a multimodal gateway fusion method of the present invention and those skilled in the art should fall within the scope of the present invention.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (8)
1. A polymorphic gateway fusion method is characterized by comprising dynamic script management, API configuration management, script dynamic update, an engine pool and a gateway computing unit;
the dynamic script management is connected with the API configuration management and the engine pool; the gateway computing unit is connected with an engine pool and API configuration management, and the script dynamic update is connected with the engine pool.
2. The multimodal gateway fusion method of claim 1, wherein the dynamic scenario management is used for unified management of Groovy scenario parameter rules and scenario content.
3. The multimodal gateway fusion method of claim 2, wherein the dynamic scenario management comprises scenario parameter rules and scenario content management, and the scenario parameter rules are used for defining parameters necessary for a downstream service gateway fusion process.
4. The multimodal gateway fusion method of claim 3 wherein the parameter definition includes parameter name, parameter location, parameter type and default values.
5. The multimodal gateway fusion method of claim 1, wherein the API configuration management is used for gateway API information management and script configuration, and the dynamic updating of the script is used for immediate compilation and validation after the Groovy script is changed.
6. The multimodal gateway fusion method of claim 5, wherein the script dynamic update respectively performs MD5 calculation according to rule configuration data and existing rules in the engine pool, compares values, directly performs calculation if equal, dynamically compiles script content again if unequal, and updates the script engine pool.
7. The multimodal gateway fusion method of claim 1, wherein the engine pool is used for unified management of compiled execution scripts, and the gateway computing unit is used for acquiring script contents from the script engine pool when a request is initiated, executing computation, further encapsulating dynamic parameter positions according to script parameter rules, and transmitting the dynamic parameter positions to a downstream service gateway to complete an authorization verification process.
8. The multimodal gateway fusion method of claim 7, wherein the gateway computing unit comprises rule computation and parameter encapsulation,
the rule calculation is used for loading scripts from the engine pool and finishing the calculation logic compiled by the script contents;
and the parameter package is used for acquiring values from the calculation result of the last step according to the script parameter rule and further packaging the parameters, and transmitting the values to a downstream service gateway to complete the whole service request link.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110133858.5A CN112910702A (en) | 2021-02-01 | 2021-02-01 | Polymorphic gateway fusion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110133858.5A CN112910702A (en) | 2021-02-01 | 2021-02-01 | Polymorphic gateway fusion method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112910702A true CN112910702A (en) | 2021-06-04 |
Family
ID=76122433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110133858.5A Pending CN112910702A (en) | 2021-02-01 | 2021-02-01 | Polymorphic gateway fusion method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112910702A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140208294A1 (en) * | 2013-01-18 | 2014-07-24 | Unisys Corporation | Domain scripting language framework for service and system integration |
CN106126215A (en) * | 2016-06-17 | 2016-11-16 | 深圳市麦斯杰网络有限公司 | Business rule scenario generation method and device |
CN106325854A (en) * | 2016-08-11 | 2017-01-11 | 上海浦东发展银行股份有限公司信用卡中心 | Groovy-based rule engine system |
CN110825488A (en) * | 2019-09-29 | 2020-02-21 | 山东中创软件工程股份有限公司 | Business processing method and device, electronic equipment and storage medium |
CN111813406A (en) * | 2020-07-14 | 2020-10-23 | 深圳前海移联科技有限公司 | Dynamic event-driven model |
-
2021
- 2021-02-01 CN CN202110133858.5A patent/CN112910702A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140208294A1 (en) * | 2013-01-18 | 2014-07-24 | Unisys Corporation | Domain scripting language framework for service and system integration |
CN106126215A (en) * | 2016-06-17 | 2016-11-16 | 深圳市麦斯杰网络有限公司 | Business rule scenario generation method and device |
CN106325854A (en) * | 2016-08-11 | 2017-01-11 | 上海浦东发展银行股份有限公司信用卡中心 | Groovy-based rule engine system |
CN110825488A (en) * | 2019-09-29 | 2020-02-21 | 山东中创软件工程股份有限公司 | Business processing method and device, electronic equipment and storage medium |
CN111813406A (en) * | 2020-07-14 | 2020-10-23 | 深圳前海移联科技有限公司 | Dynamic event-driven model |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11743367B2 (en) | Technologies for programming flexible accelerated network pipeline using eBPF | |
US20190278767A1 (en) | Smart contract upgrade method and system based on alliance chain | |
US9760365B2 (en) | Systems, methods, and computer program products for a software build and load process using a compilation and deployment service | |
US20130218299A1 (en) | MCP Scheduling For Parallelization Of LAD/FBD Control Program In Multi-Core PLC | |
CN111506366B (en) | Plug-in calling method, device, electronic equipment and storage medium | |
CN109165034A (en) | POS machine upgrade method, device, equipment and storage medium based on OTA | |
WO2021047240A1 (en) | Flink engine-based data parsing method and apparatus | |
US20190072946A1 (en) | Method for generating a technical system model, executable on a test unit, and the test unit | |
CN107508846B (en) | Updating method and system of application client and terminal equipment | |
US11106435B1 (en) | OPC UA server, system operating using OPC UA, and method of executing OPC UA system | |
CN111427547A (en) | C + + based micro-service development method and system | |
CN111144878A (en) | Instruction generation method and instruction generation device | |
CN112910702A (en) | Polymorphic gateway fusion method | |
CN112395339A (en) | Method and device for checking data access between systems, computer equipment and storage medium | |
CN111930359B (en) | System and method for developing algorithm on heterogeneous embedded system | |
CN109377348A (en) | Applied to the business interface call method for helping loan operation system and help loan operation system | |
WO2024011994A1 (en) | Methods and systems for updating an algorithm package | |
CN110826074A (en) | Application vulnerability detection method and device and computer readable storage medium | |
CN110807195A (en) | Intelligent contract issuing method, issuing platform device and issuing system | |
CN111538715B (en) | Method and device for migrating wind control scheme and electronic equipment | |
CN109933355A (en) | Application program updating method and device | |
WO2021035791A1 (en) | Method for controlling other systems on the basis of single-point execution contract | |
CN112100633A (en) | Android access control modeling and security analysis method based on B method | |
CN110413402A (en) | A kind of the partition data configuration method and device of embedded partitions operating system | |
TWI809874B (en) | Artificial intelligence model control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210604 |
|
RJ01 | Rejection of invention patent application after publication |