Intelligent gateway service management platform
By integrating multiple functional modules on the gateway platform, the existing gateway platform is solved, and the problem of low convenience and inability to meet the needs of multiple services is achieved, achieving more efficient workflows and richer service support.
Patent Information
- Application Number
- CN202210741590.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2042-06-27
AI Technical Summary
The existing gateway platform is relatively convenient and cannot meet the needs of many aspects, resulting in reduced work efficiency.
An intelligent gateway service management platform was designed, integrating API management module, online debugging module, service authorization module, software development toolkit export module, log management module and simulation service provision module, which runs through the entire life cycle of the service docking process, and achieves the minimum granularity of each underlying service.
Through rich functional modules, the platform's versatility and convenience are improved, the service needs of multiple aspects are met, and the overall work efficiency is improved.
Smart Images

Figure CN115037577B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to an intelligent gateway service management platform. Background Art
[0002] The current gateway is based on the gateway service developed in the Go language of Open-Falcon, which usually includes two functions: identity authentication and service proxy. The existing gateway can only meet the most basic identity authentication and proxy forwarding functions, which are too limited and cannot meet the needs of current R&D personnel or other workers for multiple services. Due to the low convenience of the existing gateway platform, the overall work efficiency of the staff is reduced.
[0003] Therefore, there is a problem in the related technology that the gateway platform is less convenient and cannot meet various service needs. Summary of the invention
[0004] The present application provides an intelligent gateway service management platform to at least solve the problem in the related art that the gateway platform is less convenient and cannot meet various service needs.
[0005] According to one aspect of the embodiment of the present application, an intelligent gateway service management platform is provided, characterized in that the intelligent gateway service management platform includes: an API management module, an online debugging module, a service authorization module, a software development kit export module, a log management module, and a simulation service provision module;
[0006] The online debugging module is connected to the API management module and is used to provide online testing for multiple sub-services corresponding to the API service list included in the API management module;
[0007] The service authorization module is connected to the API management module and is used to provide application authorization for multiple sub-services corresponding to the API service list included in the API management module;
[0008] The software development kit export module is connected to the API management module and is used to provide offline software development kit export to the service provider and caller corresponding to the API management module;
[0009] The log management module is connected to the API management module and is used to schedule and trace the historical service records recorded by the API management module;
[0010] The simulation service providing module is connected to the API management module and is used to perform simulation operations on data objects of the service whose interface development has not been completed corresponding to the API management module.
[0011] Optionally, the API management module includes creating an API service, which is used to create a request type, a communication protocol, a request parameter, input parameter information, and output parameter information according to a first trigger instruction to obtain the created API service.
[0012] Optionally, the online debugging module includes initiating a debugging service, which is used to perform an online debugging operation on any sub-service selected from the API service list according to the second trigger instruction to obtain a test result.
[0013] Optionally, the service authorization module includes application system service account authorization, which is used to bind any sub-service selected in the API service list with the application system service account according to a third trigger instruction, then perform an authorization operation, determine the authorization validity period, and complete the execution of the task within the validity period.
[0014] Optionally, the software development kit export module includes offline export of a preset software development kit, which is used to determine the preset software development kit to be selected by the service provider and the service caller according to the fourth trigger instruction, and export the preset software development kit for project use and environment configuration.
[0015] Optionally, the log management module includes record scheduling, which is used to schedule and obtain historical records between any sub-service selected in the API service list and the application system according to the fifth trigger instruction, and determine the source record, intermediate record and end record of the current sub-service.
[0016] Optionally, the simulation service providing module includes simulated business data, which is used to receive and debug the business through simulated business data according to the sixth trigger instruction, execute corresponding business logic, and cancel the transfer of the simulated business data to the background after the business logic development of the sub-service to be developed in the API service list is completed.
[0017] Optionally, the intelligent gateway service management platform further includes: a current limiting strategy module;
[0018] Among them, the current limiting strategy module is connected to the API management module, and is used to limit the calling frequency and traffic usage of multiple sub-services corresponding to the API service list included in the API management module.
[0019] Optionally, the intelligent gateway service management platform further includes: a dashboard module;
[0020] Among them, the dashboard module is set on the intelligent gateway service management platform, and is used to visualize the data call status and network operation and load status on the intelligent gateway service management platform.
[0021] Optionally, the dashboard is connected to the API management module, and is used to issue threshold alarms for the running status of the plurality of sub-services and the network memory load conditions corresponding to the API service list contained in the API management module;
[0022] The dashboard is connected to a plurality of application systems and is used to display the total number of times each application system is called within a preset time period;
[0023] The dashboard is connected to the service callers and service providers corresponding to the API service list, and is used to display the total number of times the service callers call the service within the preset time period and the total number of times the service providers provide services within the preset time period.
[0024] In the embodiment of the present application, by integrating the API management module, online debugging module, service authorization module, software development kit export module, log management module, and simulation service provision module into the intelligent gateway service management platform, the entire life cycle of the service docking process can be carried out, and the underlying services throughout the entire life cycle can achieve a limited and open service list with the smallest granularity, thereby enriching the versatility of the platform, improving the convenience of the staff in using the platform, meeting various service needs, and thus improving the overall work efficiency, thereby solving the problem that the gateway platform in the related technology is less convenient and cannot meet various service needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0027] Figure 1 It is a structural block diagram of an optional intelligent gateway service management platform according to an embodiment of the present invention;
[0028] Figure 2 is an optional API management module interface diagram according to an embodiment of the present invention;
[0029] Figure 3 is an optional API creation interface diagram according to an embodiment of the present invention;
[0030] Figure 4 is an optional online debugging module interface diagram according to an embodiment of the present invention;
[0031] Figure 5 This is an optional service authorization module interface diagram according to an embodiment of the present invention;
[0032] Figure 6 This is an optional interface diagram for performing authorization operations during application authorization according to an embodiment of the present invention;
[0033] Figure 7 This is an optional software development kit export module interface diagram according to an embodiment of the present invention;
[0034] Figure 8 is an optional log management module interface diagram according to an embodiment of the present invention;
[0035] Fig. 9 is a flow chart between an optional service caller and an intelligent gateway service management platform according to an embodiment of the present invention;
[0036] Fig.10 is a flow chart between an optional service provider and an intelligent gateway service management platform according to an embodiment of the present invention;
[0037] Fig.11 It is a schematic diagram of an optional system for implementing forwarding by using an intelligent gateway service management platform according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0040] The existing gateway can only meet the most basic identity authentication and proxy forwarding functions, which are too limited and cannot meet the needs of current R&D personnel or other workers for multiple services, resulting in low convenience in providing services. In order to solve the above problems, the embodiment of the present application provides an intelligent gateway service management platform, which can be an API Portal platform. APIs are created and managed in the API Portal platform, such as Figure 1 As shown, the intelligent gateway service management platform includes: API management module, online debugging module, service authorization module, software development kit export module, log management module, simulation service provision module. And the online debugging module, service authorization module, software development kit export module, log management module, simulation service provision module are respectively connected to the API management module.
[0041] It should be noted that the energy and chemical gateway service management platform can also include: a security authentication module, an identity authentication module, and a proxy forwarding module, but these modules also exist in existing gateways. The functions implemented by the intelligent gateway service management platform of the embodiment of the present application regarding the security authentication module, the identity authentication module, and the proxy forwarding module are the same as those implemented in the existing gateway. Therefore, they will not be elaborated here.
[0042] The API management module included in the intelligent gateway service management platform of the embodiment of the present application mainly includes API creation, such as Figure 2 As shown in the interface diagram, when the intelligent gateway service management platform receives the user's selection of the API management module and clicks the button to create an API, it will receive a trigger instruction, which can be the first trigger instruction, and then according to the user's definition of the API, such as Figure 3 As shown, create the request type, communication protocol, request parameters, input parameter information, and output parameter information, obtain the created API service, and store it in the API management module.
[0043] like Figure 4 As shown, it is an interface diagram of online debugging, in which the online debugging module is connected to the API management module, and is used to provide online testing for multiple sub-services corresponding to the API service list contained in the API management module. Specifically, after the user clicks the debugging button corresponding to any sub-service, the intelligent gateway service management platform receives a trigger instruction, which can be a second trigger instruction, and then performs an online debugging operation on any selected sub-service to obtain the test result.
[0044] like Figure 5As shown, it is an interface diagram of service authorization, in which the service authorization module is connected to the API management module, and is used to provide application authorization for multiple sub-services corresponding to the API service list contained in the API management module. Specifically, after the user clicks the authorization button corresponding to any sub-service, the intelligent gateway service management platform receives a trigger instruction, which can be a third trigger instruction, to complete the authorization operation between any API sub-service and the application system. The principle is to bind the application system account registered to the intelligent gateway service management platform to achieve this.
[0045] exist Figure 6 The interface diagram for performing authorization operations when authorizing an application. On the right side, an authorization period is set, so the selected sub-service and the bound application system need to complete the execution of the task within the set period.
[0046] like Figure 7 As shown, it is an interface diagram of software development kit (SDK) export, wherein the software development kit export module is connected to the API management module, and is used to provide offline software development kit export to the service provider and caller corresponding to the API management module. Specifically, after the user clicks SDK / document automatic generation for any group, that is, the offline export of the preset software development kit, the intelligent gateway service management platform receives a trigger instruction, which may be the fourth trigger instruction, to determine the preset software development kit to be selected by the service provider and the service caller, and export the preset software development kit for project use and environment configuration.
[0047] like Figure 8 The figure shows the log management interface, in which the log management module is connected to the API management module, and is used to schedule and trace the historical service records recorded by the API management module. Specifically, the user chooses which interfaces or user operations to manage logs, and the intelligent gateway service management platform receives a trigger instruction, which may be the fifth trigger instruction, and obtains the historical records between the sub-service and the application system according to the log query of any sub-service and application system selected by the user, and determines the source record, intermediate record and end record of the current sub-service for tracing. This can help troubleshoot problems, resolve disputes, and guide system optimization and expansion from a long-term perspective. Service providers can adopt corresponding strategies for service call logs to protect the security and availability of services.
[0048] The simulation service providing module in the intelligent gateway service management platform provided in the embodiment of the present application generally refers to a module with a mock function, wherein the simulation service providing module is connected to the API management module and is used to simulate data objects of the service corresponding to the API management module whose interface development has not been completed. Specifically, when the interfaces corresponding to many API services have not been defined, users can select the mock service to simulate the returned data.
[0049] At this time, the intelligent gateway service management platform can receive a trigger instruction, which can be the sixth trigger instruction, and then connect to the joint debugging business through simulated business data and execute the corresponding business logic. After the real business logic of the sub-service to be developed in the subsequent API service list is developed, the mock service is cancelled and transferred to the background service. In this way, the docking and joint debugging work can be completed in advance, which greatly avoids project risks.
[0050] In the embodiment of the present application, by integrating the API management module, online debugging module, service authorization module, software development kit export module, log management module, and simulation service provision module into the intelligent gateway service management platform, the entire life cycle of the service docking process can be carried out, and the underlying services throughout the entire life cycle can achieve a limited and open service list with the smallest granularity, thereby enriching the versatility of the platform, improving the convenience of the staff in using the platform, meeting various service needs, and thus improving the overall work efficiency, thereby solving the problem that the gateway platform in the related technology is less convenient and cannot meet various service needs.
[0051] As an optional embodiment, the intelligent gateway service management platform further includes: a current limiting strategy module;
[0052] Among them, the current limiting strategy module is connected to the API management module, and is used to limit the calling frequency and traffic usage of multiple sub-services corresponding to the API service list included in the API management module.
[0053] Optionally, the current limiting strategy mainly refers to limiting the calling frequency and flow control of the API service. The technologies used are the token bucket algorithm and the leaky bucket algorithm, so that the service provider can check the service call situation in the first time.
[0054] As an optional embodiment, the intelligent gateway service management platform further includes: a dashboard module;
[0055] Among them, the dashboard module is set up on the intelligent gateway service management platform to visualize the data call status and network operation and load status on the intelligent gateway service management platform.
[0056] Optionally, the function of the dashboard on the intelligent gateway service management platform is mainly to visualize multi-dimensional information, including displaying the call status of data on the intelligent gateway service management platform and network operation and load status.
[0057] The embodiment of the present application uses information in three dimensions as an example to illustrate: 1. Displaying the operating status and network memory load of multiple sub-services corresponding to the server and API list to the platform operation and maintenance personnel, and providing threshold alarm function.
[0058] 2. Show service callers and users the status of their calls and services, such as the number of service calls and the number of services provided.
[0059] 3. The dashboard is connected to multiple application systems, showing the total number of times each application system is called within a preset time period, so that the data on the dashboard can be used to decide whether some application systems need to be modified and tuned. For example: which services are most frequently called, how many times in a preset time period; which services are almost never used, whether the system needs to be replaced or improved, etc.
[0060] As an optional embodiment, Fig. 9 As shown, Fig. 9 This is a flow chart between an optional service caller and an intelligent gateway service management platform according to an embodiment of the present invention. The specific process is as follows:
[0061] After the service caller logs in to the intelligent gateway service management platform, if he needs to apply for an API service (which can be any sub-service in the API list), he will go to the API list page to filter his own API service in the list. If he can find it, he will go through the API application process to initiate an application for the API service;
[0062] If you need to connect to the API service, go to the SDK page and export the SDK.
[0063] As an optional embodiment, Fig.10 As shown, Fig.10 This is a flow chart between an optional service provider and an intelligent gateway service management platform according to an embodiment of the present invention. The specific process is as follows:
[0064] After the service provider logs in to the intelligent gateway service management platform, if a new service needs to be opened, the API service creation process will be followed; if a service needs to be adjusted, the API service editing process will be followed. If an error occurs during the creation or editing process, the cause of the error will be checked and the creation / editing API process will be continued. If no error occurs, the created or changed service will be provided to the business approver for online approval. After the final approval is completed, the API service release process is completed.
[0065] As an optional embodiment, Fig.11 As shown, a system diagram of forwarding is implemented using the intelligent gateway service management platform provided in an embodiment of the present application, specifically:
[0066] The service caller initiates the call through various third-party terminals (websites, applets, notebooks, mobile phones, etc.). The LUA dynamic plug-in management center in the machine uses the intelligent gateway service management platform to read the API service, and uses the APISIX gateway platform for dynamic forwarding to service clusters, such as service cluster A, service cluster B, etc. Each service cluster has an agent to collect request information forwarded from the intelligent gateway service management platform, including request path, header information, request start time, request end time, etc., and then forwards the collected information to the message queue middleware, such as kafaka. Among them, the APISIX gateway platform is a dynamic, real-time, high-performance API open source gateway platform that can reduce gateway latency to microseconds.
[0067] The log collection framework logstash collects information from kafaka and then generates an ElasticSearch index file. It uses the kibana tool to interact with the data stored in ElasticSearch to form a bar chart for visual display.
[0068] In addition, since etcd works in memory, it brings high efficiency but also the risk of information loss after unexpected downtime. In order to avoid risks, the proxy forwarding configuration has been made persistent in the database to prevent data loss in etcd. Among them, etcd is a very reliable kv storage system, which often stores key data in distributed systems. At this time, the configuration information can be stored in the mysql database, and even if the service is restarted, the configuration information can be automatically reinitialized to etcd.
[0069] In addition, a GPE monitoring and early warning system (optional plug-in) is provided for real-time early warning.
[0070] The embodiment of the present application utilizes the open capabilities of the APISIX platform to reduce the latency of the intelligent gateway service management platform to the microsecond level, while completely decoupling service authorization and identity authentication services, adopting pluggable plug-in management, dynamic configuration and hot deployment, and loading plug-ins to take effect in real time without restarting, thereby improving user experience.
[0071] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0072] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0073] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0074] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0075] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
[0076] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0077] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. An intelligent gateway service management platform, characterized in that: The intelligent gateway service management platform includes: API management module, online debugging module, service authorization module, software development kit export module, log management module, and simulation service provision module; The online debugging module is connected to the API management module and is used to provide online testing for multiple sub-services corresponding to the API service list included in the API management module; The service authorization module is connected to the API management module and is used to provide application authorization for multiple sub-services corresponding to the API service list contained in the API management module; the service authorization module includes an application system service account authorization, which is used to bind any sub-service selected in the API service list with the application system service account according to the third trigger instruction, and then perform the authorization operation, determine the authorization validity period, and complete the execution of the task within the validity period; the authorization operation is implemented based on the application system account bound and registered to the intelligent gateway service management platform; The software development kit export module is connected to the API management module and is used to provide offline software development kit export to the service provider and caller corresponding to the API management module; The log management module is connected to the API management module and is used to schedule and trace the historical service records recorded by the API management module; The simulation service providing module is connected to the API management module, and is used to simulate the data object of the service whose interface development is not completed corresponding to the API management module; the API management module includes creating an API service, which is used to create a request type, communication protocol, request parameters, input parameter information, and output parameter information according to a first trigger instruction to obtain the created API service; the online debugging module includes initiating a debugging service, which is used to perform an online debugging operation on any sub-service selected from the API service list according to a second trigger instruction to obtain a test result; the software development kit export module includes an offline export of a preset software development kit, which is used to determine the service according to a fourth trigger instruction. The preset software development kit to be selected by the service provider and service caller is exported to put the preset software development kit into project use and environment configuration; the log management module includes record scheduling, which is used to schedule and obtain the historical records between any sub-service selected in the API service list and the application system according to the fifth trigger instruction, and determine the source record, intermediate record and end record of the current sub-service; the simulation service provision module includes simulated business data, which is used to receive and debug the business through simulated business data according to the sixth trigger instruction, execute the corresponding business logic, and cancel the simulated business data and transfer it to the background after the business logic development of the sub-service to be developed in the API service list is completed.
2. The intelligent gateway service management platform according to claim 1, characterized in that: The intelligent gateway service management platform also includes: a current limiting strategy module; Among them, the current limiting strategy module is connected to the API management module, and is used to limit the calling frequency and traffic usage of multiple sub-services corresponding to the API service list included in the API management module.
3. The intelligent gateway service management platform according to claim 1, characterized in that: The intelligent gateway service management platform also includes: a dashboard module; Among them, the dashboard module is set on the intelligent gateway service management platform, and is used to visualize the data call status and network operation and load status on the intelligent gateway service management platform.
4. The intelligent gateway service management platform according to claim 3, characterized in that: The dashboard is connected to the API management module and is used to generate threshold alarms for the running status of the plurality of sub-services and the network memory load corresponding to the API service list contained in the API management module; The dashboard is connected to a plurality of application systems and is used to display the total number of times each of the application systems is called within a preset time period; The dashboard is connected to the service callers and service providers corresponding to the API service list, and is used to display the total number of times the service callers call the service within the preset time period and the total number of times the service providers provide services within the preset time period.
Citation Information
Patent Citations
Online interface debugging platform
CN109728974A
Micro-service gateway management method, system and device, readable storage medium and product
CN113572689A