CN113595788B - API gateway management method and device based on plug-in - Google Patents
API gateway management method and device based on plug-in Download PDFInfo
- Publication number
- CN113595788B CN113595788B CN202110860832.0A CN202110860832A CN113595788B CN 113595788 B CN113595788 B CN 113595788B CN 202110860832 A CN202110860832 A CN 202110860832A CN 113595788 B CN113595788 B CN 113595788B
- Authority
- CN
- China
- Prior art keywords
- function
- plug
- api gateway
- package
- gateway
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 51
- 230000006870 function Effects 0.000 claims abstract description 236
- 238000000034 method Methods 0.000 claims abstract description 42
- 238000011161 development Methods 0.000 claims abstract description 9
- 230000015654 memory Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 18
- 238000012544 monitoring process Methods 0.000 claims description 15
- 238000012986 modification Methods 0.000 claims description 8
- 230000004048 modification Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 claims description 4
- 238000012216 screening Methods 0.000 claims description 4
- 230000003203 everyday effect Effects 0.000 claims 2
- 238000009434 installation Methods 0.000 abstract description 10
- 239000008186 active pharmaceutical agent Substances 0.000 description 104
- 238000010586 diagram Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
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
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides an API gateway management method and device based on a plug-in, wherein the method comprises the following steps: acquiring development function requirements of a target API gateway; importing a function plug-in package corresponding to the function requirement; generating a function plug-in list based on the function plug-in package and the corresponding function; constructing a target API gateway based on the function plug-in list and each function plug-in package; acquiring a service requirement corresponding to a current service; and performing function plug management on the target API gateway based on the service requirement. Therefore, functions of the API gateway are realized in the form of plug-in units, so that the functions are mutually independent and are not influenced, the API gateway is subjected to function plug-in management according to service requirements, recoding of an installation package is not needed, restarting of an application program is not needed, the influence range can be effectively controlled when the functions of the API gateway are upgraded, the flexibility of the API gateway is improved, and the API gateway can adapt to different application scenes.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an API gateway management method and device based on plug-ins.
Background
The API gateway is mainly used for realizing routing (i.e. receiving all external requests, forwarding to the micro-service of the back-end) and filtering (i.e. performing rights checking, current limiting, monitoring, etc.). The API gateway is used as the only external entry of the system, encapsulates the internal architecture of the system and reduces the difficulty of docking the client and a plurality of back-end services. Meanwhile, the API gateway can also provide functions of authentication, authentication and the like.
Because the functions of identity authentication, current limiting, cache and the like of the API gateway are all coupled together, when any one function is modified, the other functions are possibly influenced, when a certain function needs to be temporarily deleted, the code must be readjusted, a new API gateway installation package is provided, so that the flexibility of the API gateway is not high enough, and the API gateway is difficult to adapt to different scenes.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method and an apparatus for managing an API gateway based on a plug-in, so as to solve the problem in the prior art that the API gateway has low flexibility and is difficult to adapt to different scenarios.
The embodiment of the invention provides an API gateway management method based on a plug-in, which comprises the following steps:
acquiring development function requirements of a target API gateway;
importing a function plug-in package corresponding to the function requirement;
generating a function plug-in list based on the function plug-in package and the corresponding function;
constructing the target API gateway based on the function plug-in list and each function plug-in package;
Acquiring a service requirement corresponding to a current service;
And performing function plug management on the target API gateway based on the service requirement.
Optionally, the target API gateway includes: a function pool and a plurality of function slots, wherein,
The function pool is used for storing each function plug-in package;
The function slot is used for providing an external function interface for the target API gateway.
Optionally, the performing functional plug management on the target API gateway based on the service requirement includes:
Screening a target function plug-in package from the function plug-in list based on the service requirement;
and inserting the target function plug-in package into a corresponding function slot so as to enable the target API gateway to open corresponding function service.
Optionally, the method further comprises:
monitoring the execution process of the current service;
And after the current service execution is monitored to be completed, removing the target function plug-in package from the corresponding function slot so as to enable the target API gateway to close the corresponding function service.
Optionally, the method further comprises:
and monitoring the running condition of the target API gateway and generating a corresponding work log.
Optionally, the method further comprises:
and storing the work log in a slicing way according to the time sequence.
Optionally, the method further comprises:
Acquiring API gateway establishment requirements;
And registering the API gateway based on the API gateway establishment requirement.
The embodiment of the invention also provides an API gateway management device based on the plug-in, which comprises:
the acquisition module is used for acquiring the development function requirement of the target API gateway;
the first processing module is used for importing a function plug-in package corresponding to the function requirement;
The second processing module is used for generating a function plug-in list based on the function plug-in package and the corresponding functions;
the third processing module is used for constructing the target API gateway based on the function plug-in list and each function plug-in package;
The fourth processing module is used for acquiring the service requirement corresponding to the current service;
And the fifth processing module is used for performing function plug management on the target API gateway based on the service requirement.
The embodiment of the invention also provides electronic equipment, which comprises: the device comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the method provided by the embodiment of the invention.
The embodiment of the invention also provides a computer readable storage medium, which stores computer instructions for causing the computer to execute the method provided by the embodiment of the invention.
The technical scheme of the invention has the following advantages:
The embodiment of the invention provides an API gateway management method and device based on a plug-in, which are used for acquiring the development function requirement of a target API gateway; importing a function plug-in package corresponding to the function requirement; generating a function plug-in list based on the function plug-in package and the corresponding function; constructing a target API gateway based on the function plug-in list and each function plug-in package; acquiring a service requirement corresponding to a current service; and performing function plug management on the target API gateway based on the service requirement. Therefore, functions of the API gateway are realized in the form of plug-in units, so that the functions are mutually independent and are not influenced, the API gateway is subjected to function plug-in management according to service requirements, recoding of an installation package is not needed, restarting of an application program is not needed, the influence range can be effectively controlled when the functions of the API gateway are upgraded, the flexibility of the API gateway is improved, and the API gateway can adapt to different application scenes.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for managing a plug-in based API gateway in an embodiment of the invention;
FIG. 2 is a block diagram of a plug-in based API gateway management system in accordance with an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a plug-in-based API gateway management apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The technical features of the different embodiments of the invention described below may be combined with one another as long as they do not conflict with one another.
The API gateway is mainly used for realizing routing (i.e. receiving all external requests, forwarding to the micro-service of the back-end) and filtering (i.e. performing rights checking, current limiting, monitoring, etc.). The API gateway is used as the only external entry of the system, encapsulates the internal architecture of the system and reduces the difficulty of docking the client and a plurality of back-end services. Meanwhile, the API gateway can also provide functions of authentication, authentication and the like.
Because the functions of identity authentication, current limiting, cache and the like of the API gateway are all coupled together, when any one function is modified, the other functions are possibly influenced, when a certain function needs to be temporarily deleted, the code must be readjusted, a new API gateway installation package is provided, so that the flexibility of the API gateway is not high enough, and the API gateway is difficult to adapt to different scenes.
Based on the above problems, the embodiment of the present invention provides a method for managing an API gateway based on a plug-in, as shown in fig. 1, where the method for managing an API gateway based on a plug-in specifically includes the following steps:
step S101: and acquiring the development function requirement of the target API gateway.
Specifically, the development function requirement is a function requirement required by a target API gateway set by a user, and may specifically include: the present invention is not limited to the current limiting, monitoring, authentication, and authentication functions.
Step S102: and importing a function plug-in package corresponding to the function requirement.
Specifically, each function requirement is developed according to a specification to obtain a corresponding function plug-in package, and the function plug-in packages are completely independent, so that functions are physically isolated, and the functions are not affected.
Step S103: a list of function plugins is generated based on the package of function plugins and their corresponding functions.
The function plug-in list is a function list corresponding to the target API gateway, and the function list specifically includes specific functions and corresponding function plug-ins thereof, and illustratively, the function plug-in list can be formed by encoding a function plug-in package and corresponding functions thereof. The present invention is not limited to this example.
Step S104: and constructing the target API gateway based on the function plug-in list and each function plug-in package.
Specifically, the target API gateway includes: the function pool is used for storing each function plug-in package; the function slots are used to provide external function interfaces for the target API gateway.
Step S105: and acquiring the service requirement corresponding to the current service.
Specifically, the service requirement is a service function service that the target API gateway is currently required to provide by the user side, such as: the current service needs to be authenticated or authenticated, which is only taken as an example and not limited thereto.
Step S106: and performing function plug management on the target API gateway based on the service requirement.
Specifically, the target API gateway is controlled to provide corresponding functional services according to the specific service requirements of the current service so as to realize accurate control based on the service.
By executing the steps, the method for managing the API gateway based on the plug-in unit, provided by the embodiment of the invention, ensures that each function is mutually independent and is not influenced by each other by using the plug-in unit, and carries out function plug-in management on the API gateway according to service requirements without recoding an installation package or restarting an application program, thereby effectively controlling the influence range, improving the flexibility of the API gateway and adapting to different application scenes when the function of the API gateway is upgraded.
Specifically, in an embodiment, the step S106 specifically includes the following steps:
Step S201: and screening the target function plug-in package from the function plug-in list based on the service requirement.
Specifically, in the service requirement, the target API gateway is required to improve one or more function services, and according to the function services required to be provided, the target function plug-in package capable of providing corresponding function services can be obtained by querying the function plug-in list.
Step S202: and inserting the target function plug-in package into the corresponding function slot so as to enable the target API gateway to open the corresponding function service.
Specifically, the target API gateway provides functional services for users by inserting the functional plug-ins into the functional slots, so that the target API gateway can accurately manage based on service requirements, the influence range of release of the version can be effectively controlled, and the flexibility of the target API gateway is improved.
Step S203: and monitoring the execution process of the current service.
Specifically, the process of providing the business function service by the target API gateway is monitored, such as the executing process of authentication or certification is monitored, until the authentication or certification is finished.
Step S204: and after the current service execution is monitored to be completed, removing the target function plug-in package from the corresponding function slot so as to enable the target API gateway to close the corresponding function service.
Specifically, after the target API gateway completes the corresponding business function service, the target function plug-in package is removed from the corresponding function slot, so that the target function plug-in package is restored to the initial state, corresponding business function service is provided for the next business, when a certain function needs to be removed, the installation package does not need to be recoded, the application program does not need to be restarted, and only the target function plug-in package needs to be removed from the corresponding function slot, so that the method is flexible and convenient.
Specifically, in an embodiment, the method for managing an API gateway based on a plug-in module specifically further includes the following steps:
step S107: and monitoring the running condition of the target API gateway and generating a corresponding work log.
Step S108: and storing the work logs in a slicing way according to the time sequence.
Illustratively, the log message is saved to ELASTIC SEARCH by retrieving the log message in topic of kafka. The log is saved in pieces by date, each day an index is created in ELASTIC SEARCH. In addition, a graphical interface can be provided, so that the log can be conveniently queried, including abnormal log, normal log, flow statistics, response time statistics and the like.
Specifically, in an embodiment, the method for managing an API gateway based on a plug-in module specifically further includes the following steps:
Step S109: and acquiring the API gateway establishment requirement.
Specifically, the API gateway setup requirement includes: information such as the number of API gateways, paths, etc. needs to be set.
Step S110: and registering the API gateway based on the API gateway establishment requirement.
Specifically, by registering the API gateways, unified management of each API gateway is facilitated, for example, a certain modification instruction is notified to each API gateway through the rabitimq.
The method for managing the API gateway based on the plug-in provided by the embodiment of the present invention will be described in detail below with reference to a specific application example.
The API gateway management system shown in figure 2 is established based on the API gateway management method based on the plug-in, and is divided into three parts: a management platform, a unified security gateway (i.e. API gateway), a monitoring platform.
The management platform is mainly used for registering and adding the API, including the path of the API and the corresponding back-end service. And binds the function plug-ins to the APIs. And controls the opening or closing of the functional plug-in. Modifications made on the management platform are notified to the unified security gateway through the rabitmq.
Unified security gateway: comprising a pool of functions and an unlimited number of function slots. The function pool is provided with a plurality of function plug-in packages which are completely independent, so that the functions can be physically isolated without mutual influence. After the plug-in package is developed according to the specification, the plug-in package is uploaded into a function pool of the gateway, and the gateway detects the plug-in through an SPI (full Service Provider Interface, a set of interfaces provided by Java and used for being realized or expanded by a third party and used for enabling framework expansion and replacing components. At this time, on the management platform, when adding a policy to the API, a corresponding list of function plugins can be seen. The function plug-in is set to be opened on the management platform, and the unified security gateway can insert the corresponding function plug-in into the function slot through the message received from the RabbitMQ, so that the function takes effect immediately. And setting the function plug-ins to be closed on the management platform, and immediately removing the corresponding function plug-ins from the function slots by the unified security gateway after receiving the notification. The unified security gateway will collect the related information of interface call and send it to topic of Kafka.
The monitoring platform is used for acquiring the log message in the topic of kafka and storing the log message in ELASTIC SEARCH. The log is saved in pieces by date, each day an index is created in ELASTIC SEARCH. The monitoring platform can provide a graphical interface, so that the log can be conveniently inquired. The system comprises the functions of abnormal logs, normal logs, flow statistics, response time statistics and the like.
The gateway can have specific functions by uploading the function plug-ins into the function pool, and the gateway can lose the specific functions by deleting the function plug-ins from the function pool. And whether the function addition enables the switch or not, and provides a corresponding function management interface. The functions can be opened and closed through the function management interface. The function goes offline and the API gateway installation package does not need to be provided again. Therefore, the API gateway function is realized in the form of a plug-in, so that each function is independent of each other and is not influenced, and the influence range of release of the version can be effectively controlled; the function pluggable is realized: the function can be effectively inserted into the function slot, can be invalid after being pulled out of the function slot, does not need to recode the installation package, does not need to restart the application program, and can be better adapted to different scenes.
By executing the steps, the method for managing the API gateway based on the plug-in unit, provided by the embodiment of the invention, ensures that each function is mutually independent and is not influenced by each other by using the plug-in unit, and carries out function plug-in management on the API gateway according to service requirements without recoding an installation package or restarting an application program, thereby effectively controlling the influence range, improving the flexibility of the API gateway and adapting to different application scenes when the function of the API gateway is upgraded.
The embodiment of the invention also provides a device for managing the API gateway based on the plug-in, as shown in fig. 3, the device for managing the API gateway based on the plug-in comprises:
the obtaining module 101 is configured to obtain a development function requirement of the target API gateway. For details, refer to the related description of step S101 in the above method embodiment, and no further description is given here.
The first processing module 102 is configured to import a function plug-in package corresponding to the function requirement. For details, refer to the related description of step S102 in the above method embodiment, and no further description is given here.
The second processing module 103 is configured to generate a function plug-in list based on the function plug-in package and the corresponding function. For details, see the description of step S103 in the above method embodiment, and the details are not repeated here.
And a third processing module 104, configured to construct a target API gateway based on the function plug-in list and each function plug-in package. For details, refer to the related description of step S104 in the above method embodiment, and no further description is given here.
The fourth processing module 105 is configured to obtain a service requirement corresponding to the current service. For details, see the description of step S105 in the above method embodiment, and the details are not repeated here.
And a fifth processing module 106, configured to perform function plug management on the target API gateway based on the service requirement. For details, refer to the related description of step S106 in the above method embodiment, and no further description is given here.
For further description of the above-mentioned API gateway management apparatus based on the plug-in, see related description of the above-mentioned API gateway management method based on the plug-in, which will not be described in detail herein.
Through the cooperation of the above components, the function of the API gateway is realized in the form of the plug-in, so that the functions are mutually independent and do not affect, the API gateway is subjected to function plug-in management according to service requirements, recoding of an installation package is not needed, and an application program is not needed to be restarted.
There is also provided in accordance with an embodiment of the present invention, an electronic device, as shown in fig. 4, which may include a processor 901 and a memory 902, wherein the processor 901 and the memory 902 may be connected via a bus or otherwise, as exemplified by the bus connection in fig. 4.
The processor 901 may be a central processing unit (Central Processing Unit, CPU). The Processor 901 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the method embodiments of the present invention. The processor 901 executes various functional applications of the processor and data processing, i.e., implements the methods in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor 901, and the like. In addition, the memory 902 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 902 optionally includes memory remotely located relative to processor 901, which may be connected to processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902 that, when executed by the processor 901, perform the methods of the method embodiments described above.
The specific details of the electronic device may be correspondingly understood by referring to the corresponding related descriptions and effects in the above method embodiments, which are not repeated herein.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, and the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a hard disk (HARD DISK DRIVE, abbreviated as HDD), a Solid state disk (Solid-STATE DRIVE, SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.
Claims (5)
1. A plugin-based API gateway management method, comprising:
acquiring development function requirements of a target API gateway;
Importing a function plug-in package corresponding to the function requirements, wherein each function requirement is developed according to a specification to obtain a corresponding function plug-in package, and the function plug-in packages are completely independent;
generating a function plug-in list based on the function plug-in package and the corresponding function;
constructing the target API gateway based on the function plug-in list and each function plug-in package;
Acquiring a service requirement corresponding to a current service;
performing function plug management on the target API gateway based on the service requirement; the target API gateway comprises: a function pool and a plurality of function slots, wherein,
The function pool is used for storing each function plug-in package;
The function slot is used for providing an external function interface for the target API gateway;
the performing functional plug management on the target API gateway based on the service requirement includes:
Screening a target function plug-in package from the function plug-in list based on the service requirement;
Inserting the target function plug-in package into a corresponding function slot so as to enable the target API gateway to open corresponding function service;
the method further comprises the steps of:
Acquiring an API gateway establishment requirement, wherein the API gateway establishment requirement comprises the following steps: the number of API gateways and path information are required to be set;
Carrying out API gateway registration based on the API gateway establishment requirement, and notifying each API gateway of the modification instruction through the RabbitMQ;
the method further comprises the steps of:
An API gateway management system is established, and the API gateway management system is divided into three parts: the system comprises a management platform, a unified security gateway and a monitoring platform;
the management platform is used for registering and adding the API, including the path of the API and the corresponding back-end service, binding the API with the function plug-in, controlling the opening or closing of the function plug-in, and informing the unified security gateway of the modification made on the management platform through the RabbitMQ;
unified security gateway: the system comprises a function pool and an infinite number of function slots, wherein each function plug-in package exists in the function pool, and the plug-in packages are completely independent; setting the function plug-in to be opened on the management platform, and enabling the unified security gateway to insert the corresponding function plug-in into the function slot through the message received from the RabbitMQ, so that the function takes effect immediately;
The unified security gateway monitors the running condition of the target API gateway, the related information of the collected interface call is sent to the topic of Kafka, the monitoring platform stores the log information in ELASTIC SEARCH by obtaining the log information in the topic of Kafka, and generates a corresponding work log, the work log is stored in a slicing mode according to the time sequence, and an index is created in ELASTIC SEARCH every day.
2. The method as recited in claim 1, further comprising:
monitoring the execution process of the current service;
And after the current service execution is monitored to be completed, removing the target function plug-in package from the corresponding function slot so as to enable the target API gateway to close the corresponding function service.
3. A plug-in based API gateway management apparatus comprising:
the acquisition module is used for acquiring the development function requirement of the target API gateway;
the first processing module is used for importing a functional plug-in package corresponding to the functional requirements, each functional requirement is developed according to a specification to obtain a corresponding functional plug-in package, and the functional plug-in packages are completely independent;
The second processing module is used for generating a function plug-in list based on the function plug-in package and the corresponding functions;
the third processing module is used for constructing the target API gateway based on the function plug-in list and each function plug-in package;
The fourth processing module is used for acquiring the service requirement corresponding to the current service;
The fifth processing module is used for performing function plug management on the target API gateway based on the service requirement; the target API gateway comprises: the system comprises a function pool and a plurality of function slots, wherein the function pool is used for storing each function plug-in package; the function slot is used for providing an external function interface for the target API gateway; the performing functional plug management on the target API gateway based on the service requirement includes: screening a target function plug-in package from the function plug-in list based on the service requirement; inserting the target function plug-in package into a corresponding function slot so as to enable the target API gateway to open corresponding function service;
The device is further configured to obtain an API gateway setup requirement, where the API gateway setup requirement includes: the number of API gateways and path information are required to be set; carrying out API gateway registration based on the API gateway establishment requirement, and notifying each API gateway of the modification instruction through the RabbitMQ;
The device is also used for establishing an API gateway management system which is divided into three parts: the system comprises a management platform, a unified security gateway and a monitoring platform;
the management platform is used for registering and adding the API, including the path of the API and the corresponding back-end service, binding the API with the function plug-in, controlling the opening or closing of the function plug-in, and informing the unified security gateway of the modification made on the management platform through the RabbitMQ;
unified security gateway: the system comprises a function pool and an infinite number of function slots, wherein each function plug-in package exists in the function pool, and the plug-in packages are completely independent; setting the function plug-in to be opened on the management platform, and enabling the unified security gateway to insert the corresponding function plug-in into the function slot through the message received from the RabbitMQ, so that the function takes effect immediately;
The unified security gateway monitors the running condition of the target API gateway, the related information of the collected interface call is sent to the topic of Kafka, the monitoring platform stores the log information in ELASTIC SEARCH by obtaining the log information in the topic of Kafka, and generates a corresponding work log, the work log is stored in a slicing mode according to the time sequence, and an index is created in ELASTIC SEARCH every day.
4. An electronic device, comprising:
A memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of any of claims 1-2.
5. A computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110860832.0A CN113595788B (en) | 2021-07-28 | 2021-07-28 | API gateway management method and device based on plug-in |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110860832.0A CN113595788B (en) | 2021-07-28 | 2021-07-28 | API gateway management method and device based on plug-in |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113595788A CN113595788A (en) | 2021-11-02 |
CN113595788B true CN113595788B (en) | 2024-05-28 |
Family
ID=78251650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110860832.0A Active CN113595788B (en) | 2021-07-28 | 2021-07-28 | API gateway management method and device based on plug-in |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113595788B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114416314B (en) * | 2022-01-18 | 2023-01-10 | 北京计算机技术及应用研究所 | Service arrangement method based on API gateway |
CN115102849A (en) * | 2022-05-11 | 2022-09-23 | 浪潮云信息技术股份公司 | Method and device for dynamically loading and configuring service gateway plug-in |
CN115174342B (en) * | 2022-06-15 | 2024-03-08 | 阿里巴巴(中国)有限公司 | Plug-in management method, device and equipment of gateway |
CN116401198B (en) * | 2023-06-08 | 2023-09-22 | 成都房联云码科技有限公司 | SM2 algorithm-based interface bus system |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106034070A (en) * | 2015-03-16 | 2016-10-19 | 中兴通讯股份有限公司 | Functional plug-in management method of intelligent gateway, client and system thereof |
CN108512747A (en) * | 2017-02-23 | 2018-09-07 | 中兴通讯股份有限公司 | The plug-in management method and home gateway of home gateway, communication system |
CN108712329A (en) * | 2018-05-02 | 2018-10-26 | 山东汇贸电子口岸有限公司 | A kind of gateway and log recording retrieval device based on Elasticsearch |
CN110784527A (en) * | 2019-10-18 | 2020-02-11 | 三体云智能科技有限公司 | Information management system and method |
CN111385124A (en) * | 2018-12-29 | 2020-07-07 | 中兴通讯股份有限公司 | Gateway service implementation method, control device and gateway |
CN111752795A (en) * | 2020-06-18 | 2020-10-09 | 多加网络科技(北京)有限公司 | Full-process monitoring alarm platform and method thereof |
CN112333201A (en) * | 2020-11-20 | 2021-02-05 | 广州欢网科技有限责任公司 | Upper-layer application requests micro-service authentication optimization system through gateway |
CN112422683A (en) * | 2020-11-19 | 2021-02-26 | 浪潮云信息技术股份公司 | API gateway service high-availability implementation method under K8S environment |
CN112636986A (en) * | 2020-12-29 | 2021-04-09 | 苏州思必驰信息科技有限公司 | Gateway plug-in updating method and device |
CN112685102A (en) * | 2021-01-04 | 2021-04-20 | 浙江诺诺网络科技有限公司 | Gateway plug-in hot loading method, device, equipment and medium |
CN112804244A (en) * | 2021-01-26 | 2021-05-14 | 广州欢网科技有限责任公司 | Method, device and equipment for intelligently controlling bottom micro-service flow by API gateway |
CN112929210A (en) * | 2021-01-25 | 2021-06-08 | 城云科技(中国)有限公司 | Method and system for gateway routing application plug-in built on WebFlux framework and application of gateway routing application plug-in |
CN112988274A (en) * | 2021-03-25 | 2021-06-18 | 北京滴普科技有限公司 | Method, device and system for dynamically loading micro-service gateway plug-in and storage medium thereof |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10007534B2 (en) * | 2015-08-11 | 2018-06-26 | Vmware, Inc. | Methods and apparatus to manage asset capabilities in a computing environment using a common agent framework |
US20190034210A1 (en) * | 2017-07-28 | 2019-01-31 | Kong Inc. | Systems and methods for distributed api gateways |
-
2021
- 2021-07-28 CN CN202110860832.0A patent/CN113595788B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106034070A (en) * | 2015-03-16 | 2016-10-19 | 中兴通讯股份有限公司 | Functional plug-in management method of intelligent gateway, client and system thereof |
CN108512747A (en) * | 2017-02-23 | 2018-09-07 | 中兴通讯股份有限公司 | The plug-in management method and home gateway of home gateway, communication system |
CN108712329A (en) * | 2018-05-02 | 2018-10-26 | 山东汇贸电子口岸有限公司 | A kind of gateway and log recording retrieval device based on Elasticsearch |
CN111385124A (en) * | 2018-12-29 | 2020-07-07 | 中兴通讯股份有限公司 | Gateway service implementation method, control device and gateway |
CN110784527A (en) * | 2019-10-18 | 2020-02-11 | 三体云智能科技有限公司 | Information management system and method |
CN111752795A (en) * | 2020-06-18 | 2020-10-09 | 多加网络科技(北京)有限公司 | Full-process monitoring alarm platform and method thereof |
CN112422683A (en) * | 2020-11-19 | 2021-02-26 | 浪潮云信息技术股份公司 | API gateway service high-availability implementation method under K8S environment |
CN112333201A (en) * | 2020-11-20 | 2021-02-05 | 广州欢网科技有限责任公司 | Upper-layer application requests micro-service authentication optimization system through gateway |
CN112636986A (en) * | 2020-12-29 | 2021-04-09 | 苏州思必驰信息科技有限公司 | Gateway plug-in updating method and device |
CN112685102A (en) * | 2021-01-04 | 2021-04-20 | 浙江诺诺网络科技有限公司 | Gateway plug-in hot loading method, device, equipment and medium |
CN112929210A (en) * | 2021-01-25 | 2021-06-08 | 城云科技(中国)有限公司 | Method and system for gateway routing application plug-in built on WebFlux framework and application of gateway routing application plug-in |
CN112804244A (en) * | 2021-01-26 | 2021-05-14 | 广州欢网科技有限责任公司 | Method, device and equipment for intelligently controlling bottom micro-service flow by API gateway |
CN112988274A (en) * | 2021-03-25 | 2021-06-18 | 北京滴普科技有限公司 | Method, device and system for dynamically loading micro-service gateway plug-in and storage medium thereof |
Non-Patent Citations (3)
Title |
---|
Cloud PaaS Brokering in Action: The Cloud4SOA Management Infrastructure;Antonio Corradi等;《2015 IEEE 82nd Vehicular Technology Conference》;20160128;全文 * |
基于ArcGIS Engine的应用系统构件的设计和实现;刘智敏;蒙映;尹爱明;;地理空间信息;20080228(第01期);全文 * |
基于家庭智能网关的智慧家庭技术和业务方案;汤敏健;贾夏俊;徐江山;梁国平;;广播电视信息(第10期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113595788A (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113595788B (en) | API gateway management method and device based on plug-in | |
CN110765023B (en) | Distributed system testing method and system based on chaos experiment | |
US11693746B2 (en) | Systems and methods for enabling a highly available managed failover service | |
US11366728B2 (en) | Systems and methods for enabling a highly available managed failover service | |
CN111464353B (en) | Block link point management method, device, computer and readable storage medium | |
US11341005B2 (en) | Systems and methods for enabling a highly available managed failover service | |
CN110597918B (en) | Account management method, account management device and computer readable storage medium | |
CN104219316A (en) | Method and device for processing call request in distributed system | |
CN109361525B (en) | Method, device, control terminal and medium for restarting distributed deployment of multiple services | |
WO2019051948A1 (en) | Method, apparatus, server, and storage medium for processing monitoring data | |
CN105981332A (en) | Broadcasting management information using fountain codes | |
CN114124929A (en) | Cross-network data processing method and device | |
CN110457132B (en) | Method and device for creating functional object and terminal equipment | |
CN113904847A (en) | Cloud platform binding method, system, equipment and medium of Internet of things card | |
US9665732B2 (en) | Secure Download from internet marketplace | |
US11659059B2 (en) | Parallel sharing of hardware | |
CN114125812A (en) | Data synchronization method, device, server and storage medium | |
CN111176904B (en) | Method, system, equipment and medium for data backup under private cloud architecture | |
CN104104701A (en) | Online service configuration updating method and system | |
CN111367757A (en) | Message display method and device, electronic equipment and storage medium | |
CN115729680A (en) | Single container certificate management method and device, storage medium and electronic equipment | |
CN114422358A (en) | API gateway configuration updating method and equipment | |
JP5469834B2 (en) | Terminal management system | |
CN114465766B (en) | SSH-based remote access method and device, electronic equipment and storage medium | |
CN112055849A (en) | Exclusive control system and exclusive control method |
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 |