Interface gateway configuration editing method and device and storage medium

Generate and send gateway editing instructions to the interface gateway through the graphical user interface, solving the problem of cumbersome data operations in the interface gateway configuration editing process, and realizing a simplified gateway editing process.

CN119396515APending Publication Date: 2025-02-07SHENZHEN SMARTCITY TECH DEV GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411532273.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The configuration and editing of the interface gateway requires tedious data operations, which are inconvenient to operate.

Method used

The graphical user interface obtains editing information of user editing operations, generates gateway editing instructions and sends them to the interface gateway, performs gateway editing actions, and updates the graphical user interface through query instructions.

Benefits of technology

The operations required in the gateway editing process are simplified, allowing users to perform interface gateway configuration editing through view editing actions and data operations on the graphical user interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396515A_ABST
    Figure CN119396515A_ABST
Patent Text Reader

Abstract

The invention discloses a configuration editing method and device of an interface gateway and a storage medium, and belongs to the technical field of gateways. The method comprises the steps that in response to editing operation of a graphical user interface, a gateway editing instruction of editing information is generated in a target instruction format based on the editing operation and the editing information, the gateway editing instruction is sent to an interface gateway, the interface gateway executes gateway editing action of a gateway to be edited according to the gateway editing instruction, and the gateway to be edited is edited according to the gateway editing action. Generating a query instruction of the gateway editing instruction, sending the query instruction to the interface gateway, receiving a query response, obtaining an editing result in the query response, and updating a gateway view of the graphical user interface according to the editing result. According to the method, the gateway editing instruction is generated by acquiring the editing operation of the user on the graphical user interface, the interface gateway is guided to perform gateway editing on the to-be-edited gateway, and the graphical user interface is updated, so that the operation required by the user in the configuration editing process of the interface gateway is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of gateway technology, and in particular to a configuration editing method, device and storage medium for an interface gateway. Background Art

[0002] An API Gateway is an entry point for an application programming interface (API) that can assist in making API calls during system communications.

[0003] In the related art, the interface gateway usually performs configuration editing of the interface gateway through a form or a configuration file. Among them, the user can set the gateway properties by filling in the form fields, or define the configuration of the gateway in the configuration file by writing structured data. In this case, the user needs to perform cumbersome data operations during the gateway editing process, which is inconvenient.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a configuration editing method, device and storage medium for an interface gateway, aiming to solve the technical problems of cumbersome data operations and inconvenient operations during the configuration editing process of the interface gateway.

[0006] To achieve the above object, the present application provides a configuration editing method for an interface gateway, the method comprising the following steps: In response to an editing operation of the graphical user interface, acquiring editing information of the editing operation, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information; Sending the gateway editing instruction to the interface gateway, wherein the interface gateway executes the gateway editing action of the gateway to be edited according to the gateway editing instruction; Generate the query instruction of the gateway editing instruction, and send the query instruction to the interface gateway, wherein after receiving the query instruction, the interface gateway generates the query response based on the editing result of the gateway editing action, and feeds back the query response; The query response is received, the editing result in the query response is obtained, and the gateway view of the graphical user interface is updated according to the editing result.

[0007] In one embodiment, the step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information includes: Monitoring editing operations of the gateway view in the graphical user interface; Determining editing information of the editing operation, wherein the editing information includes editing behavior and editing data; The gateway editing instruction is generated based on the target instruction format, the editing behavior and the editing data.

[0008] In one embodiment, the step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information includes: In response to a click operation or a drag operation of a new icon in the graphical user interface, outputting a new icon page; receiving icon creation information of the newly created icon page, generating a target icon in the graphical user interface, and determining an icon type of the target icon according to the icon creation information; Based on the target instruction format, the gateway editing instruction for creating an instance is generated according to the icon creation information and the icon type.

[0009] In one embodiment, the step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information includes: In response to the connection operation between the service icon and the gateway icon in the graphical user interface, an interface icon is generated, and a newly created interface page is output; Acquire interface configuration information through the newly created interface page, and determine a target service instance of the service icon and a target gateway instance of the gateway icon; Based on the target instruction format, the gateway editing instruction for creating an interface is generated according to the target service instance, the target gateway instance and the interface configuration information.

[0010] In one embodiment, the step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information includes: In response to a click operation of a new interface button in the graphical user interface, outputting a new interface page; Acquire interface configuration information through the new interface page, and determine the target service instance and the target gateway instance according to the interface configuration information; The gateway editing instruction for creating an interface is generated according to the target service instance, the target gateway instance and the interface configuration information.

[0011] In one embodiment, the step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information includes: Based on the editing operation of the current limiting configuration, determining the target interface of the editing operation; Obtaining the current limiting mode and current limiting parameters of the editing operation; The gateway editing instruction of the current limiting configuration is generated according to the target interface, the current limiting mode and the current limiting parameters.

[0012] In one embodiment, the step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information includes: Based on the access-controlled editing operation, determining the target interface of the editing operation; Obtaining the control mode, control type and control object of the editing operation; The gateway editing instruction of the access control is generated according to the target interface, the control mode, the control type and the control object.

[0013] In addition, to achieve the above-mentioned purpose, the present application also provides a configuration editing device for an interface gateway, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the configuration editing method for the interface gateway as described above.

[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the configuration editing method of the interface gateway as described above are implemented.

[0015] One or more technical solutions proposed in this application have at least the following technical effects: The present application obtains the user's editing operation in the graphical user interface through a graphical user interface, determines the editing information of the editing operation, generates a gateway editing instruction for the editing information, sends the gateway editing instruction to the interface gateway to instruct the interface gateway to execute the gateway editing action of the gateway to be edited according to the gateway editing instruction, sends a query instruction to the interface gateway, and updates the graphical user interface based on the query response fed back by the gateway, so that the user only needs to perform configuration editing of the interface gateway through view editing actions and data operations such as selection, dragging, and connection on the graphical user interface, thereby simplifying the operations required in the gateway editing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] In order to more clearly illustrate the embodiments of the present application 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.

[0018] Figure 1 This is a flow chart of the first embodiment of the configuration editing method of the interface gateway of the present application; Figure 2 This is a flow chart of the second embodiment of the configuration editing method of the interface gateway of the present application; Figure 3 This is a schematic diagram of interface editing involved in the second embodiment of the configuration editing method of the interface gateway of the present application; Figure 4 A flowchart of a third embodiment of the configuration editing method of the interface gateway of the present application; Figure 5 This is a flow chart of a fourth embodiment of the configuration editing method of the interface gateway of the present application; Figure 6 It is a structural diagram of a configuration editing device of an interface gateway in a hardware operating environment involved in an embodiment of the present application.

[0019] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0020] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0021] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0022] The main solution of the embodiment of the present application is: in response to an editing operation of a graphical user interface, obtaining editing information of the editing operation, and generating a gateway editing instruction for the editing information; sending the gateway editing instruction to an interface gateway, wherein the interface gateway executes a gateway editing action of the gateway to be edited according to the gateway editing instruction; sending a query instruction to the interface gateway, and updating the graphical user interface according to the query response fed back by the gateway.

[0023] API Gateway configuration is usually edited through forms or configuration files. Users can set gateway properties by filling in form fields, or define gateway configuration in configuration files by writing structured data. In this case, users need to perform tedious data operations during gateway editing, which is inconvenient.

[0024] The present application obtains the editing operation of the user on the graphical user interface through a graphical user interface, determines the editing information of the editing operation, generates a gateway editing instruction for the editing information, sends the gateway editing instruction to the interface gateway, so that the interface gateway executes the gateway editing action of the gateway to be edited according to the gateway editing instruction, sends a query instruction to the interface gateway, and updates the graphical user interface according to the query response fed back by the gateway, so that the user only needs to perform configuration editing of the interface gateway through view editing actions and data operations such as selection, dragging, and connection on the graphical user interface, thereby simplifying the operations required in the gateway editing process.

[0025] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0026] It should be noted that the execution subject of this embodiment can be a gateway editor, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a configuration editing device of an interface gateway, etc., which is not specifically limited in this embodiment. The following takes the gateway editor as an example to illustrate this embodiment and the following embodiments.

[0027] Based on this, the embodiment of the present application provides a configuration editing method for an interface gateway, referring to Figure 1 , Figure 1This is a flow chart of the first embodiment of the configuration editing method of the interface gateway of the present application.

[0028] In this embodiment, the configuration editing method of the interface gateway includes steps S10 to S40: Step S10: in response to an editing operation of the graphical user interface, acquiring editing information of the editing operation, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information; In this embodiment, the gateway editor provides a graphical user interface (GUI) that can display the gateway view in a graphical manner. The user can edit the gateway view by clicking, dragging, and connecting on the graphical user interface using input devices such as a mouse and keyboard, or edit data by clicking on icons. Among them, the gateway view includes gateway icons, service icons, and interface icons, which can reflect the current state of the interface gateway. When the user changes the current state of the gateway view through editing operations, the gateway editor can generate a gateway editing instruction according to the user's editing operation to guide the interface gateway to perform gateway editing actions, so that the configuration of the interface gateway after editing remains the same as the gateway view. The interface gateway can be selected as the Shenyu gateway or other interface gateways, among which the Shenyu gateway is a high-performance, cross-language responsive API gateway that adopts a plug-in design and supports multiple protocols to implement plug-in functions.

[0029] Specifically, the gateway editor can monitor the editing operations received by the graphical user interface, and determine the corresponding editing information according to the mapping relationship between the editing operations and the editing information. The editing information includes editing behavior and editing data. The editing behavior can be creation, connection, editing, etc., and the editing data is the interface gateway parameters adjusted by the interface gateway.

[0030] Furthermore, the gateway editor needs to ensure that the generated gateway editing instructions are in the target instruction format that the interface gateway can understand and execute, so that the interface gateway can determine the corresponding gateway editing action after receiving and reading the gateway editing instructions. The gateway editor can generate gateway editing instructions in the target instruction format based on the editing behavior and editing data, or it can generate operation instructions based on the instruction format compatible with the gateway editor, and then convert the operation instructions into gateway editing instructions in the target instruction format. For example, when the interface gateway is a shenyu interface gateway, the gateway editor can fill the editing behavior and editing data into the instruction template in the shenyu instruction format to generate gateway editing instructions, or convert the operation instructions into gateway editing instructions in the shenyu instruction format. Among them, a new routing rule is added through the gateway editor, and the editor will generate a gateway editing instruction in the Shenyu format based on the routing rule.

[0031] In one embodiment, the graphical user interface can be deployed and generated through Docker. By creating a Docker network, it is ensured that all related containers can communicate with each other in an isolated network environment and connect to databases such as MySQL, PostgreSQL or Oracle. Pull or build the required Docker image through Docker Hub or other image repositories to generate the graphical user interface and its operating environment. The Docker image contains the complete operating environment of the application and its dependencies, starts the front-end application container and the back-end application container, and realizes the front-end display and back-end logic processing of the graphical user interface. Containerize the API gateway application (such as Shenyu), that is, create a Docker image containing the gateway application, so that the gateway application can run as a container in the Docker environment. When the gateway editing instruction is used to update the configuration of the gateway, it actually updates the running container instance. Through the Docker image, when updating the gateway configuration, you can only create a new Docker image and push it to the image repository, and then update the running container instance. Thereby realizing efficient and stable interaction between the graphical user interface and the front-end and back-end.

[0032] Step S20: sending the gateway editing instruction to the interface gateway, wherein the interface gateway executes the gateway editing action of the gateway to be edited according to the gateway editing instruction; In this embodiment, the gateway editor can send the gateway editing instruction to the interface gateway by way of request. After receiving the gateway editing instruction, the interface gateway identifies the gateway editing instruction, determines the corresponding gateway instance, that is, the gateway to be edited, and the gateway editing action.

[0033] Optionally, after the interface gateway identifies the gateway editing instruction and obtains the editing behavior and editing data, the gateway editing action can determine the editing action type according to the editing behavior, and determine the editing action parameters according to the editing data, and combine the editing action type and editing action parameters into a gateway editing action. Alternatively, the interface gateway can also directly obtain the gateway editing action from the gateway editing instruction, wherein when the gateway editor generates the gateway editing instruction, it can generate the gateway editing action according to the editing action type corresponding to the editing behavior and the editing action parameters corresponding to the editing data, and include it in the gateway editing instruction.

[0034] For example, when the gateway editor is executing the configuration process of editing information, the shenyu interface gateway can synchronize the configuration by listening to ZooKeeper nodes, WebSocket push, and HTTP long polling.

[0035] In one embodiment, the gateway editor can also support multiple gateway types to improve the stability and scalability of the interface gateway. Among them, the gateway editor can encapsulate an abstraction layer on top of the gateway so that applications can interact with them in a consistent manner, so that no matter how the underlying gateway changes, the upper-level application logic does not need to be changed. Alternatively, use middleware or proxy services as a conversion layer between different gateways to handle conversions between various formats and protocols. Middleware can also provide additional services such as load balancing, security, and data caching. Alternatively, for gateways that do not support the required protocols or interfaces, develop adapter modules to expose their functions in a compatible form. Adapters allow old or proprietary systems to be seamlessly integrated into new environments.

[0036] Step S30: generating the query instruction of the gateway editing instruction, and sending the query instruction to the interface gateway, wherein after receiving the query instruction, the interface gateway generates the query response based on the editing result of the gateway editing action, and feeds back the query response; Step S40: receiving the query response, obtaining the editing result in the query response, and updating the gateway view of the graphical user interface according to the editing result.

[0037] In this embodiment, after the interface gateway completes the gateway editing action of the gateway editing instruction, the gateway editor generates a query instruction of the gateway editing instruction and sends the query instruction to the interface gateway. After receiving the query instruction, the interface gateway generates a query response based on the editing result of the gateway editing action, and feeds back the query response to the gateway editor. Among them, the editing result includes the configuration status of the edited gateway such as the routing table and interface rules. The gateway editor receives the query response, obtains the editing result in the query response, and updates the gateway view according to the editing result to ensure that the gateway view is consistent with the configuration status of the gateway.

[0038] The embodiment of the present application obtains the editing operation of the user on the graphical user interface through the graphical user interface, determines the editing information of the editing operation, generates a gateway editing instruction for the editing information, sends the gateway editing instruction to the interface gateway to instruct the interface gateway to execute the gateway editing action of the gateway to be edited according to the gateway editing instruction, sends a query instruction to the interface gateway, and updates the graphical user interface according to the query response fed back by the gateway, so that the user only needs to perform gateway editing on the graphical user interface through view editing actions and data operations such as selection, dragging, and connection, thereby simplifying the operations required in the gateway editing process.

[0039] Based on the same inventive concept, the present application also provides a second embodiment, referring to Figure 2 , Figure 2This is a flow chart of the second embodiment of the gateway editing method of the present application.

[0040] In this embodiment, in response to the editing operation of the graphical user interface as described in step S10, obtaining the editing information of the editing operation, and generating the gateway editing instruction of the editing information further includes steps S11 to S13: Step S11: in response to a click operation or a drag operation of a new icon in the graphical user interface, outputting a new icon page; Step S12: receiving icon creation information of the newly created icon page, generating a target icon in the graphical user interface, and determining an icon type of the target icon according to the icon creation information; Step S13: Based on the target instruction format, according to the icon creation information and the icon type, generate the gateway editing instruction for creating an instance.

[0041] In this embodiment, the target icon may be a gateway icon or a service icon, wherein the gateway icon and the service icon correspond to the gateway instance and the service instance in the interface gateway respectively, the gateway instance is used to manage the interface, and the service instance is used to provide business services to customers.

[0042] As an optional implementation, the user can call out the new icon page by clicking the new icon button in the graphical user interface. After obtaining the icon creation information in the new icon page, the gateway editor generates a target icon in the view editing bar based on the icon type and the preset icon template.

[0043] As another optional implementation, refer to Figure 3 , Figure 3 This is a schematic diagram of the interface editing involved in the embodiment of the present application. The user can also create an icon by dragging in the view editing bar of the graphical user interface, and after releasing the mouse, a new icon page of the created icon pops up. Among them, the user can drag the graphic template from the graphic bar to the view editing bar and release the mouse to create an icon, or click the mouse in the view editing bar and drag to form a frame, and create an icon after releasing the mouse.

[0044] In one example, the gateway editor responds to a click operation of the Create Gateway button on the graphical user interface, outputs a new gateway page, receives the gateway creation information obtained by the new gateway page, builds a gateway creation instruction for the target gateway instance based on the gateway creation information, and sends it to the interface gateway. At the same time, after sending query information to the interface gateway and obtaining the query response, a gateway icon of the target gateway instance is generated in the graphical user interface according to the query response. Among them, the gateway creation information includes the gateway name, gateway code, system, type, supplier and responsible person. The user can enter the gateway creation information through the corresponding input boxes respectively. In addition, the user can upload an icon in the form of uploading a picture attachment in the new gateway page. The target gateway icon will be displayed based on the uploaded icon.

[0045] In another example, the gateway editor responds to the icon creation operation in the graphical user interface and outputs a new service page. The gateway editor obtains the service creation information of the target service through the service page, and can directly generate the service icon of the target service in the graphical user interface according to the service creation information.

[0046] It should be noted that based on the containerization of API gateway applications (such as Shenyu), a Docker image containing the gateway application is created so that the gateway application can run as a container in the Docker environment. When the gateway editing instruction is used to update the configuration of the gateway, it actually updates the running container instance.

[0047] Further, such as Figure 3 As shown, the gateway editor can also connect the service icon and the gateway icon through the interface icon in the graphical user interface based on the editing operation of the new target interface, and obtain the interface configuration information of the target interface to generate the gateway editing instruction of the target interface.

[0048] As an optional implementation, in response to the editing operation of the graphical user interface as described in step S10, obtaining the editing information of the editing operation, and generating the gateway editing instruction of the editing information further includes steps A14 to A16: Step A14: in response to the connection operation between the service icon and the gateway icon in the graphical user interface, an interface icon is generated, and a new interface page is output; Step A15: obtaining interface configuration information through the newly created interface page, and determining a target service instance of the service icon and a target gateway instance of the gateway icon; Step A16: Based on the target instruction format, according to the target service instance, the target gateway instance and the interface configuration information, the gateway editing instruction for creating the interface is generated.

[0049] In this embodiment, the user connects the service icon and the gateway icon through a connecting line to generate an interface instance between the target gateway instance and the target service instance. When the user directly connects the service icon and the gateway icon through a line segment in the view editing bar, the gateway editor first generates the target interface icon in the graphical user interface, and then generates a gateway editing instruction for creating an interface.

[0050] As another optional implementation, in response to the editing operation of the graphical user interface as described in step S10, obtaining the editing information of the editing operation, and generating the gateway editing instruction of the editing information further includes steps B14 to B17: Step B14: in response to a click operation of a new interface button in the graphical user interface, outputting a new interface page; Step B15: obtaining interface configuration information through the new interface page, and determining the target service instance and the target gateway instance according to the interface configuration information; Step B16: Generate the gateway editing instruction for creating an interface according to the target service instance, the target gateway instance and the interface configuration information.

[0051] In this embodiment, when the user right-clicks the target service icon to call out the menu bar, the user can click the new interface button in the menu bar to call out the new interface page. After obtaining the interface configuration information through the new interface page, the gateway editor first generates a gateway editing instruction for creating an interface based on the target service instance, the target gateway instance, and the interface configuration information, and sends it to the interface gateway, and then determines the creation of the target interface through the query instruction and the query response, thereby connecting the target service icon of the target service instance and the target gateway icon of the target gateway instance.

[0052] The embodiment of the present application generates corresponding gateway editing instructions through view editing operations of multiple graphical user interfaces, thereby simplifying the editing operations required for the interface gateway.

[0053] Since the system introduced in the second embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of this application.

[0054] Based on the same inventive concept, the present application also provides a third embodiment, referring to Figure 4 , Figure 4 This is a flow chart of the third embodiment of the gateway editing method of the present application.

[0055] In this embodiment, the gateway configuration method further includes steps S41 to S43: Step S41: Based on the editing operation of the current limiting configuration, determining the target interface of the editing operation; Step S42: obtaining the current limiting mode and current limiting parameters of the editing operation; Step S43: Generate the gateway editing instruction of the current limiting configuration according to the target interface, the current limiting mode and the current limiting parameters.

[0056] In this embodiment, when the user right-clicks the line of the interface icon below, a drop-down pop-up window pops up. The drop-down pop-up window contains a fuse current limiting configuration button, and after clicking, the fuse current limiting configuration interface pops up. The user selects the current limiting mode in the fuse current limiting configuration interface, and enters information such as rate and capacity in the corresponding input box to configure the fuse current limiting of the interface.

[0057] It should be noted that the optional fuse current limiting modes include but are not limited to the token bucket algorithm mode, the leaky bucket algorithm mode and the sliding window mode. When the redis token bucket algorithm is used for current limiting, the interface gateway generates tokens at a constant rate and then puts the tokens into the token bucket. The token bucket has a capacity. When the token bucket is full, the tokens put into it will be discarded. Every time a request comes, a token needs to be obtained from the token bucket. If there is a token, the service is provided; if there is no token, the service is denied. When the redis leaky bucket algorithm is used for current limiting, the request as water first enters the leaky bucket, and the leaky bucket discharges water at a preset speed, and overflows when the water inflow speed is too large, that is, the service is denied. When the sliding window algorithm mode based on redis is used, the sliding time window maintains the count value within a unit time. Every time a request passes, the count value is increased by 1. When the count value exceeds the preset threshold, other requests within the unit time are rejected. If the unit time has ended, the counter is cleared to start the next round of counting. The interface gateway can call and execute the current limiting program of different current limiting strategies according to the current limiting mode selected by the user.

[0058] Optionally, the interface gateway can also monitor the data in the data processing and calling process of the interface gateway through the monitoring mode, including gateway requests and gateway exception requests, etc. Exemplarily, in the monitoring mode, information embedding is performed in the shenyu gateway in an asynchronous or synchronous manner, and the Metrics-plugin plug-in recommended by shenyu can be integrated. The Metrics plug-in is used by the gateway to monitor its own operating status, request response delay and other related information.

[0059] In an embodiment of the present application, the gateway editor can also configure circuit breakers and current limits on the interface gateway, thereby improving the stability of the interface gateway.

[0060] Since the system introduced in the third embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of the present application.

[0061] Based on the same inventive concept, the present application also provides a fourth embodiment, referring to Figure 5 , Figure 5 This is a flow chart of the fourth embodiment of the configuration editing method of the interface gateway of the present application.

[0062] In this embodiment, the gateway configuration method further includes steps S51 to S53: Step S51: determining the target interface of the editing operation based on the access-controlled editing operation; Step S52: Acquire the control mode, control type and control object of the editing operation; Step S53: Generate the gateway editing instruction of the access control according to the target interface, the control mode, the control type and the control object.

[0063] In this embodiment, the drop-down pop-up window of clicking the interface icon also includes an access control configuration button. Click the access control configuration button in the drop-down pop-up window, and a drawer-style interaction appears on the right, where detailed access control information can be configured.

[0064] Since the system introduced in the third embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of the present application.

[0065] The present application provides a configuration editing device for an interface gateway, the device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the configuration editing method for the interface gateway in the above-mentioned embodiment 1.

[0066] Reference below Figure 6, which shows a schematic diagram of the structure of a configuration editing device of an interface gateway suitable for implementing an embodiment of the present application. The configuration editing device of the interface gateway in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The configuration editing device of the interface gateway shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0067] like Figure 6 As shown, the configuration editing device of the interface gateway may include a processing device 1001 (e.g., a core processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the configuration editing device of the interface gateway are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the configuration editing device of the interface gateway to communicate wirelessly or wired with other devices to exchange data. Although the configuration editing device of the interface gateway with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0068] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0069] The configuration editing device of the interface gateway provided by the present application adopts the configuration editing method of the interface gateway in the above embodiment, which can solve the technical problem that cumbersome data operations and inconvenient operations are required in the configuration editing process of the interface gateway. Compared with the prior art, the beneficial effects of the configuration editing device of the interface gateway provided by the present application are the same as the beneficial effects of the configuration editing method of the interface gateway provided by the above embodiment, and other technical features in the configuration editing device of the interface gateway are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0070] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0071] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0072] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the configuration editing method of the interface gateway in the above-mentioned embodiment.

[0073] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0074] The computer-readable storage medium may be included in the configuration editing device of the interface gateway; or may exist independently without being assembled into the configuration editing device of the interface gateway.

[0075] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the configuration editing device of the interface gateway, the configuration editing device of the interface gateway: In response to an editing operation of a graphical user interface, editing information of the editing operation is obtained, and a gateway editing instruction of the editing information is generated; the gateway editing instruction is sent to an interface gateway, wherein the interface gateway executes a gateway editing action of the gateway to be edited according to the gateway editing instruction; a query instruction is sent to the interface gateway, and according to the query response fed back by the gateway, the gateway view in the graphical user interface is updated.

[0076] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0077] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0078] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0079] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the configuration editing method of the above-mentioned interface gateway, and can solve the technical problem that cumbersome data operations and inconvenient operations are required during the configuration editing process of the interface gateway. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the configuration editing method of the interface gateway provided by the above-mentioned embodiment, and will not be repeated here.

[0080] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A configuration editing method for an interface gateway, characterized in that: The method comprises the following steps: In response to an editing operation of the graphical user interface, acquiring editing information of the editing operation, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information; Sending the gateway editing instruction to the interface gateway, wherein the interface gateway executes the gateway editing action of the gateway to be edited according to the gateway editing instruction; Generate the query instruction of the gateway editing instruction, and send the query instruction to the interface gateway, wherein after receiving the query instruction, the interface gateway generates the query response based on the editing result of the gateway editing action, and feeds back the query response; The query response is received, the editing result in the query response is obtained, and the gateway view of the graphical user interface is updated according to the editing result.

2. The method according to claim 1, characterized in that The step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information comprises: Monitoring editing operations of the gateway view in the graphical user interface; Determining editing information of the editing operation, wherein the editing information includes editing behavior and editing data; The gateway editing instruction is generated based on the target instruction format, the editing behavior and the editing data.

3. The method according to claim 2, characterized in that The step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information comprises: In response to a click operation or a drag operation of a new icon in the graphical user interface, outputting a new icon page; receiving icon creation information of the newly created icon page, generating a target icon in the graphical user interface, and determining an icon type of the target icon according to the icon creation information; Based on the target instruction format, the gateway editing instruction for creating an instance is generated according to the icon creation information and the icon type.

4. The method according to claim 2, characterized in that The step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information comprises: In response to the connection operation between the service icon and the gateway icon in the graphical user interface, an interface icon is generated, and a newly created interface page is output; Acquire interface configuration information through the newly created interface page, and determine a target service instance of the service icon and a target gateway instance of the gateway icon; Based on the target instruction format, the gateway editing instruction for creating an interface is generated according to the target service instance, the target gateway instance and the interface configuration information.

5. The method according to claim 2, characterized in that The step of obtaining editing information of the editing operation in response to the editing operation of the graphical user interface, and generating a gateway editing instruction of the editing information in a target instruction format based on the editing operation and the editing information comprises: In response to a click operation of a new interface button in the graphical user interface, outputting a new interface page; Acquire interface configuration information through the new interface page, and determine the target service instance and the target gateway instance according to the interface configuration information; The gateway editing instruction for creating an interface is generated according to the target service instance, the target gateway instance and the interface configuration information.

6. The method according to claim 4 or 5, characterized in that The step of sending the gateway editing instruction to the interface gateway, wherein the interface gateway performs the gateway editing action of the gateway to be edited according to the gateway editing instruction, further comprises: Based on the editing operation of the current limiting configuration, determining the target interface of the editing operation; Obtaining the current limiting mode and current limiting parameters of the editing operation; The gateway editing instruction of the current limiting configuration is generated according to the target interface, the current limiting mode and the current limiting parameters.

7. The method according to claim 4 or 5, characterized in that The step of sending the gateway editing instruction to the interface gateway, wherein the interface gateway performs the gateway editing action of the gateway to be edited according to the gateway editing instruction, further comprises: Based on the access-controlled editing operation, determining the target interface of the editing operation; Obtaining the control mode, control type and control object of the editing operation; The gateway editing instruction of the access control is generated according to the target interface, the control mode, the control type and the control object.

8. A configuration editing device for an interface gateway, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the configuration editing method for the interface gateway according to any one of claims 1 to 7.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the configuration editing method of the interface gateway as described in any one of claims 1 to 7 are implemented.