A third party interface orchestration method and system

By using modules such as the Interface Manager and Orchestration Rule Manager, the problem of incompatibility between third-party interfaces and front-end components is solved, enabling flexible interface modification and secure data processing, and reducing the dependency and workload of developers.

CN115202651BActive Publication Date: 2026-11-27TERMINUSBEIJING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210375750.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-11
Publication Date
2026-11-27
Estimated Expiration
2042-04-11

AI Technical Summary

Technical Problem

In big data visualization scenarios, the mismatch between third-party interfaces and front-end components leads to cumbersome code changes for interface modifications, high developer dependence, and inflexible modification processes.

Method used

This paper provides a third-party interface orchestration method and system. Through an interface manager, an orchestration rule manager, a compiler, and auxiliary extension modules, it realizes interface information registration, authentication, data processing, and caching, supports serial and parallel calls, and dynamically controls interface request and result processing.

Benefits of technology

It reduces the strong dependencies on developers, decreases the workload of interface changes and UI modifications, improves the flexibility of modifications and the fault tolerance of the delivery process, and meets security requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202651B_ABST
    Figure CN115202651B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a third-party interface arrangement method and system, the method comprising: receiving a target interface path and a third-party interface ID sent by a front end; obtaining third-party interface information and a processing script corresponding to the third-party interface according to the third-party interface ID; judging a target compiler to be called according to a type of the processing script; sending the processing script to the target compiler, so that the target compiler directly calls a third-party interface or obtains target data of the third-party interface by calling an auxiliary tool class; and processing the target data based on the processing script and sending a processing result to the front end. The method solves problems such as mismatch between a third-party interface and a front end component in a big data visualization scenario, heavy code change caused by interface change, and the like, and makes interface modification more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to a third-party interface orchestration method and system. Background Technology

[0002] In fields such as big data visualization, web front-end interfaces are often formed by configuring and assembling data from various components such as menus, charts, and buttons. Component-based display solutions often have certain requirements for interface data structures, field types, and even field values; only interface data that meets these requirements can be assembled and displayed on the front-end interface. Because visualization data in large projects often comes from different business vendors with inconsistent interface specifications, the interface data structures and field types often fail to meet the aforementioned data assembly requirements.

[0003] Therefore, a method is needed that can enable third-party operations and outputs that meet the front-end assembly requirements. Summary of the Invention

[0004] To address this, this application provides a third-party interface orchestration method and system, which solves problems such as mismatch between third-party interfaces and front-end components and cumbersome code modifications for interface changes in scenarios such as big data visualization. It reduces the strong dependence of implementation, delivery, and operation and maintenance scenarios on developers, greatly reduces the workload of modifications caused by interface changes and interface modifications, and makes interface modifications more flexible.

[0005] To achieve the above objectives, the embodiments of this application provide the following technical solutions:

[0006] According to a first aspect of the embodiments of this application, a third-party interface orchestration method is provided, the method comprising:

[0007] Receive the target interface path and third-party interface ID sent by the front end;

[0008] Obtain the third-party interface information and the corresponding processing script based on the third-party interface ID;

[0009] The target compiler to be invoked is determined based on the type of the processing script.

[0010] The processing script is sent to the target compiler so that the target compiler can directly call the third-party interface or obtain the target data of the third-party interface by calling the auxiliary utility class;

[0011] The target data is processed using a processing script, and the processing results are sent to the front end.

[0012] Optionally, if there are multiple third-party interface IDs, the method further includes:

[0013] The auxiliary utility class determines the invocation method based on the relationship between third-party interface IDs; the invocation method includes serial and / or parallel;

[0014] The target data is invoked according to the invocation method of the third-party interface, and the target data is cached in the database.

[0015] Optionally, the serial calling method involves calling the third-party interfaces sequentially, and processing the request result of each third-party interface to serve as the request parameter for the next third-party interface.

[0016] The parallel calling method refers to simultaneously and asynchronously calling multiple third-party interfaces.

[0017] Optionally, before receiving the target interface path and third-party interface ID sent by the front end, the method further includes:

[0018] Receive third-party interface information and processing scripts. The third-party interface information includes interface IP, interface path, calling method, interface header information, and interface authentication message.

[0019] Determine whether the third-party interface requires authentication or interface data processing. If it is determined that it does not require authentication, cache the third-party interface information and processing script in the database. If authentication is required, perform authentication. If interface data processing is required, write and upload the interface processing script, and cache the third-party interface information and the written processing script in the database.

[0020] According to a second aspect of the embodiments of this application, a third-party interface orchestration system is provided, the system comprising:

[0021] The message receiving module is used to receive the target interface path and third-party interface ID sent by the front end;

[0022] The interface information retrieval module is used to obtain third-party interface information and the corresponding processing script based on the third-party interface ID.

[0023] The target compiler determination module is used to determine the target compiler to be invoked based on the type of the processing script.

[0024] The message sending module is used to send the processing script to the target compiler, so that the target compiler can directly call the third-party interface or obtain the target data of the third-party interface by calling the auxiliary utility class;

[0025] The data processing module is used to process the target data based on the processing script and send the processing results to the front end.

[0026] Optionally, if there are multiple third-party interface IDs, the auxiliary utility class includes:

[0027] The judgment module is used to determine the invocation method based on the relationship between third-party interface IDs; the invocation method includes serial and / or parallel.

[0028] The calling module is used to call the target data of the third-party interface according to the calling method described above;

[0029] A caching module is used to cache the target data in a database.

[0030] Optionally, the serial calling method involves calling the third-party interfaces sequentially, and processing the request result of each third-party interface to serve as the request parameter for the next third-party interface.

[0031] The parallel calling method refers to simultaneously and asynchronously calling multiple third-party interfaces.

[0032] Optionally, the system further includes:

[0033] The registration module receives third-party interface information and processing scripts. The third-party interface information includes the interface IP, interface path, calling method, interface header information, and interface authentication message. It determines whether the third-party interface requires authentication or interface data processing. If it does not require authentication, it caches the third-party interface information and processing script in the database. If authentication is required, it performs authentication. If interface data processing is required, it writes and uploads the interface processing script and caches the third-party interface information and the written processing script in the database.

[0034] According to a third aspect of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect above.

[0035] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided having computer-readable instructions stored thereon, the computer-readable instructions being executable by a processor to implement the method described in the first aspect above.

[0036] In summary, this application provides a third-party interface orchestration method and system. The method involves receiving a target interface path and a third-party interface ID from the front end; obtaining third-party interface information and a corresponding processing script based on the third-party interface ID; determining the target compiler to be called based on the type of the processing script; sending the processing script to the target compiler so that the target compiler can directly call the third-party interface or obtain the target data of the third-party interface by calling the auxiliary utility class; processing the target data based on the processing script; and sending the processing result to the front end. This solves problems such as mismatch between third-party interfaces and front-end components, and cumbersome code modifications for interface changes in scenarios such as big data visualization, making interface modification more flexible. Attached Figure Description

[0037] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely exemplary, and those skilled in the art can derive other embodiments based on the provided drawings without creative effort.

[0038] The structures, proportions, sizes, etc. illustrated in this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed herein, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.

[0039] Figure 1 This is a flowchart illustrating the third-party interface orchestration method provided in the embodiments of this application;

[0040] Figure 2 The schematic diagrams provided for the embodiments of this application are as follows;

[0041] Figure 3 A block diagram of a third-party interface orchestration system provided in the embodiments of this application;

[0042] Figure 4 This illustration shows a structural schematic diagram of an electronic device provided in an embodiment of this application;

[0043] Figure 5 A schematic diagram of a computer-readable storage medium provided in an embodiment of this application is shown. Detailed Implementation

[0044] The following specific embodiments illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0045] In fields such as big data visualization, the data structures and field types of interfaces provided by multiple business vendors often fail to meet the data assembly requirements of front-end interface components. Furthermore, when the required assembly data originates from multiple sub-interfaces, requiring value retrieval and combination from these sub-interfaces to obtain the final result, backend services often need to encode or frontend code logic processes are needed. The code must then be updated via service updates to achieve the desired effect, making it impossible to dynamically modify the processing logic in real-time to obtain the expected data. Directly calling and processing interfaces through frontend code raises security concerns related to third-party interface calls, as directly transmitting security authentication tokens such as headers and tokens through the frontend is insecure. Calling third-party interfaces through the backend, when the interface processing logic is frequently modified, requires heavy reliance on backend developers for code modification, service updates, and deployments, resulting in high costs and being less user-friendly for implementation, delivery, and maintenance scenarios.

[0046] Existing technologies often employ a direct front-end interface to third-party APIs. When these APIs fail to meet component assembly requirements, customized front-end code is used to address the interface display needs. However, directly transmitting security authentication tokens such as Headers and Tokens through the front-end is insecure, making this approach insufficient for meeting the security requirements of calling third-party APIs.

[0047] Existing technologies also employ a backend-to-third-party API approach. When the third-party API does not meet the frontend component assembly conditions, it is handled according to certain fixed rules. The relatively complex processing logic is implemented by writing customized backend code. However, this approach requires the involvement of backend developers, who need to confirm data requirements with the frontend before processing the code logic based on the third-party API, increasing the complexity of the development process.

[0048] The two existing technologies mentioned above are frequently used. When the interfaces do not meet the front-end component assembly conditions or the modification requirements are frequent, front-end / back-end developers need to frequently modify the code, resulting in a large development workload. Moreover, each modification requires code updates and deployments, which increases the delivery risk.

[0049] To address the aforementioned issues, this application provides a solution for data interfaces that can meet front-end assembly requirements by performing certain rule-based operations such as one or more interface data provided by a third party, field and structure transformation, data concatenation, serial and parallel interface call control, and interface combination.

[0050] Figure 1 This application illustrates a third-party interface orchestration method provided in an embodiment, the method comprising:

[0051] Step 101: Receive the target interface path and third-party interface ID sent by the front end;

[0052] Step 102: Obtain the third-party interface information and the corresponding processing script based on the third-party interface ID;

[0053] Step 103: Determine the target compiler to be invoked based on the type of the processing script;

[0054] Step 104: Send the processing script to the target compiler so that the target compiler can directly call the third-party interface or obtain the target data of the third-party interface by calling the auxiliary utility class;

[0055] Step 105: Process the target data based on the processing script and send the processing results to the front end.

[0056] In one possible implementation, if there are multiple third-party interface IDs, the method further includes:

[0057] The auxiliary utility class determines the calling method based on the relationship between the third-party interface IDs; the calling method includes serial and / or parallel; the target data of the third-party interface is called according to the calling method, and the target data is cached in the database.

[0058] In one possible implementation, the serial calling method involves calling the third-party interfaces sequentially, and processing the request result of each third-party interface to serve as the request parameter for the next third-party interface.

[0059] In one possible implementation, the parallel calling method involves simultaneously and asynchronously calling multiple third-party interfaces.

[0060] In one possible implementation, before receiving the target interface path and third-party interface ID sent by the front end, the method further includes:

[0061] Receive third-party interface information and processing scripts. The third-party interface information includes interface IP, interface path, calling method, interface header information, and interface authentication message.

[0062] Determine whether the third-party interface requires authentication or interface data processing. If it is determined that it does not require authentication, cache the third-party interface information and processing script in the database. If authentication is required, perform authentication. If interface data processing is required, write and upload the interface processing script, and cache the third-party interface information and the written processing script in the database.

[0063] The system to which this application embodiment applies includes an interface manager, an orchestration rule manager, a compiler, and auxiliary extension modules.

[0064] The API manager is primarily used for registering and maintaining third-party APIs, as well as the API authentication data required for integration. It also uploads and maintains scripts that handle API requests, transform fields and structures in returned results, concatenate data, control parallel calls, and combine data. Current technologies primarily involve direct front-end or back-end API integration, with few using registration and management for API maintenance. Furthermore, current technologies do not support scripts for transforming returned result fields and structures, concatenating data, controlling parallel calls, or handling data entry.

[0065] The orchestration rule manager is the entry point for processing interfaces. It reads interface information registered in the interface manager and processes scripts, determining the script type to invoke the appropriate compiler, which includes JS compilers and shell compilers. The orchestration rule manager is a runtime processing tool that receives interface information registered in the interface manager and distributes it to the compiler.

[0066] The JS compiler is based on the Nashorn engine and defines the call entry point and call rules. It mainly processes the fields and structures in the returned results of the interface data, performs data concatenation, and can also perform interface calls by importing JAVA classes in the extension package.

[0067] The SHELL compiler is primarily based on Java's Process inter-process communication. It can also process SHELL commands to perform operations such as field and structure conversion and data concatenation in the returned results of interface data, and can perform interface calls by calling Java class methods.

[0068] JS compilers and shell compilers are general technologies, but the embodiments of this application have been extended based on these two technologies to enable them to call some key methods in JAVA classes in the script, perform third-party interface calls and caching, etc.

[0069] The Java helper extension module is mainly used to retrieve source data by calling third-party interfaces via HTTP, as well as to handle interface chaining and parallel calls, and provide caching logic for the processing results. The Java helper module contains Java methods that can be imported and called in the compiler script, primarily for interface calls and caching, but other extensions are also possible.

[0070] Third-party interfaces can be understood as data sources, and are used to address issues where third-party interfaces do not meet data requirements. Operations such as data field management, structure transformation, data concatenation, serial / parallel interface call control, and interface combination are reflected in the interface manager and orchestration rule manager, and are also determined by the scripts processed by the compiler.

[0071] In existing technologies, during the debugging phase of interfacing with third-party interfaces, each interface is hard-coded on the front-end or back-end, and developers then write the corresponding data processing code. There is no information registration and maintenance process, and management and maintenance tasks such as script uploading and data assembly are impossible.

[0072] In this embodiment, the interface and authentication information are registered through the interface manager, and the corresponding interface processing script is uploaded. The script content is stored in a cache or database. The script code calls the interface by invoking methods of JAVA extension package classes. After obtaining the call result, the script performs corresponding data processing. After data entry, during the runtime phase, the script content is executed after the interface call. The call result is the value of the `data` field, and the return result is the value of the `res` field, thereby completing the data processing.

[0073] The interface registration phase includes the following steps:

[0074] Step 1: Register the interface and authentication information through the interface manager. The registration request carries the interface IP, interface path, port, calling method (post / get, param / JSon, etc.), interface request header information, interface authentication information (Authorization, etc.), and you can also enter scripts here.

[0075] Step 2: Determine if interface authentication is required. If so, proceed to Step 3; otherwise, proceed to Step 5.

[0076] Step 3: Read the entered interface authentication information to authenticate the interface. Depending on the authentication requirements of the third-party interface, it may be necessary to add specified key / value information or authentication token to the header.

[0077] Step 4: Determine whether interface data processing is needed based on whether the data returned by the third-party interface meets the current display requirements. If not, write an upload interface processing script. The interface processing script is the logic for manipulating the data. Specific interfaces require specific scripting. Additionally, some JAVA extension module tools can be used for special processing (interface calls or caching).

[0078] Step 5: The interface center stores the interface information and processing scripts in the database DB.

[0079] After the third-party interface integration and debugging are completed, during the runtime phase, the frontend does not directly call the third-party interface. Instead, it calls a fixed interface through the client proxy using the interface ID and sends the interface ID request to the backend. The backend then retrieves the corresponding interface information and processing script entered in the interface manager from the database using the interface ID. The server-side proxy interface is then called via the interface ID. The interface logic queries the corresponding third-party interface information and processing script from the interface center, and completes the interface processing through the compiler and Java auxiliary extension modules to obtain the execution result. The result value is output through the server-side interface. Figure 2 The execution flow is shown below:

[0080] Step 1: The server receives the target interface path and third-party interface ID sent by the front end;

[0081] Step 2: Call the target interface based on the target interface path. This call involves the backend server's interface, which has a fixed path. The corresponding third-party interface is located by passing an ID parameter. The ID refers to the parameter used by the frontend to call the backend server's interface path. This ID parameter allows you to find the third-party interface entered in the interface manager.

[0082] Step 3: The orchestration rule manager reads third-party interface information and corresponding processing scripts from the database;

[0083] Step 4: Determine the target compiler to be called based on the type of the processing script; if it is a JS compiler, proceed to Step 5; if it is a SHELL compiler, proceed to Step 6.

[0084] Step 5: The JS compiler determines whether to call a Java utility class based on the script's requirements;

[0085] Step 6: The shell compiler determines whether it is necessary to call a Java utility class based on the requirements;

[0086] Calling third-party interfaces is achieved by the JS compiler or shell compiler calling pre-defined Java utility classes defined by the developers.

[0087] Step 7: The Java utility class calls the third-party interface and retrieves the source data. After retrieving the source data, operations such as caching can be performed, and the parallel or serial method of calling the third-party interface can be controlled. The source data is basically equivalent to the data obtained directly from the third-party interface. Chained calls can be performed, or the data obtained from calling the third-party interface can be cached on the server. The next time it is called, the value will be retrieved directly from the local server without calling the third-party interface (whether to perform this operation is customized according to the requirements).

[0088] Step 8: The compiler processes the source data called by the JAVA utility class and sends the processed result to the front end.

[0089] As can be seen, the embodiments of this application can request one or more interfaces and receive response results through the interface manager and JAVA auxiliary extension module, and can perform serial and parallel chain calls on multiple related interfaces (specifically reflected in the code call logic, the script can work with the JAVA auxiliary utility class to complete the serial and parallel call control of the interfaces). During the chain call process, the request results of each interface can be processed to a certain extent and used as parameters for subsequent interface requests.

[0090] For example, if the required data comes from multiple interfaces, serial processing means that after calling one interface and obtaining the result, the next interface is called, and so on. Subsequent interface calls can then be processed based on the return values ​​of previous interfaces. Parallel processing means that these interfaces have no sequential relationship, allowing multiple interfaces to be called asynchronously at once without waiting for data from other interfaces to return. Serial and parallel processing can be used in combination, depending on the specific calling requirements, for chained processing of multiple interfaces.

[0091] The compiler enables dynamic control of interface requests, field and structure conversions in returned results, data concatenation, serial and parallel call control, and combination operations through simple JS scripts and other custom scripts.

[0092] The backend call method, combined with the interface manager for interface authentication, can meet the security requirements for calling third-party interfaces. The delight-nashorn-sandbox allows control over the execution permissions of JS scripts on the JAVA server, ensuring the security of custom scripts executing on the server.

[0093] Through the interface manager, compiler, and JAVA auxiliary extension modules, requests can be made to one or more interfaces from the server side and responses can be received. Simple JS and other custom scripts can dynamically control interface requests, field and structure conversions in returned results, data concatenation, serial / parallel call control, and combination operations, ensuring that one or more third-party interfaces meet front-end requirements. This solves problems such as mismatch between third-party interfaces and front-end components in big data visualization scenarios, and cumbersome code modifications for interface changes. It reduces the heavy dependence on developers in implementation, delivery, and maintenance scenarios, significantly reduces the workload caused by interface changes and interface modifications, makes interface modifications more flexible, and eliminates the need to update deployment code after modification, thus improving fault tolerance during delivery.

[0094] In summary, this application provides a third-party interface orchestration method. This method involves receiving a target interface path and a third-party interface ID from the front end; obtaining third-party interface information and a corresponding processing script based on the third-party interface ID; determining the target compiler to be called based on the type of the processing script; sending the processing script to the target compiler, enabling the target compiler to directly call the third-party interface or obtain the target data of the third-party interface by calling the auxiliary utility class; processing the target data based on the processing script; and sending the processing result to the front end. This method solves problems such as mismatch between third-party interfaces and front-end components, and cumbersome code modifications for interface changes in scenarios such as big data visualization, making interface modification more flexible.

[0095] Based on the same technical concept, embodiments of this application also provide a third-party interface orchestration system, such as... Figure 3 As shown, the system includes:

[0096] The message receiving module 301 is used to receive the target interface path and third-party interface ID sent by the front end;

[0097] The interface information retrieval module 302 is used to obtain third-party interface information and the corresponding processing script of the third-party interface based on the third-party interface ID.

[0098] The target compiler determination module 303 is used to determine the target compiler to be invoked based on the type of the processing script.

[0099] The message sending module 304 is used to send the processing script to the target compiler, so that the target compiler can directly call the third-party interface or obtain the target data of the third-party interface by calling the auxiliary utility class;

[0100] The data processing module 305 is used to process the target data based on the processing script and send the processing results to the front end.

[0101] In one possible implementation, if there are multiple third-party interface IDs, the auxiliary utility class includes:

[0102] The judgment module is used to determine the invocation method based on the relationship between third-party interface IDs; the invocation method includes serial and / or parallel.

[0103] The calling module is used to call the target data of the third-party interface according to the calling method described above;

[0104] A caching module is used to cache the target data in a database.

[0105] In one possible implementation, the serial calling method involves calling sequentially in order, and processing the request result of each third-party interface to serve as the request parameter for the next third-party interface.

[0106] The parallel calling method refers to simultaneously and asynchronously calling multiple third-party interfaces.

[0107] In one possible implementation, the system further includes:

[0108] The registration module receives third-party interface information and processing scripts. The third-party interface information includes the interface IP, interface path, calling method, interface header information, and interface authentication message. It determines whether the third-party interface requires authentication or interface data processing. If it does not require authentication, it caches the third-party interface information and processing script in the database. If authentication is required, it performs authentication. If interface data processing is required, it writes and uploads the interface processing script and caches the third-party interface information and the written processing script in the database.

[0109] This application also provides an electronic device corresponding to the method provided in the foregoing embodiments. Please refer to... Figure 4 The diagram illustrates an electronic device provided by some embodiments of this application. The electronic device 20 may include: a processor 200, a memory 201, a bus 202, and a communication interface 203, wherein the processor 200, the communication interface 203, and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can run on the processor 200, and when the processor 200 runs the computer program, it executes the method provided by any of the foregoing embodiments of this application.

[0110] The memory 201 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one physical port 203 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network.

[0111] Bus 202 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store programs. After receiving an execution instruction, the processor 200 executes the program. The method disclosed in any of the foregoing embodiments of this application can be applied to the processor 200, or implemented by the processor 200.

[0112] The processor 200 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 200 or by instructions in software form. The processor 200 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 201. The processor 200 reads the information in memory 201 and, in conjunction with its hardware, completes the steps of the above method.

[0113] The electronic devices and methods provided in the embodiments of this application are based on the same inventive concept and have the same beneficial effects as the methods they employ, operate, or implement.

[0114] This application also provides a computer-readable storage medium corresponding to the method provided in the foregoing embodiments. Please refer to... Figure 5The computer-readable storage medium shown is an optical disc 30, on which a computer program (i.e., a program product) is stored, which, when run by a processor, executes the methods provided in any of the foregoing embodiments.

[0115] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical and magnetic storage media, which will not be elaborated here.

[0116] The computer-readable storage medium provided in the above embodiments of this application and the method provided in the embodiments of this application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the applications stored therein.

[0117] It should be noted that:

[0118] The algorithms and displays provided herein are not inherently related to any particular computer, virtual device, or other equipment. Various general-purpose devices can also be used in conjunction with the teachings herein. The required structure for constructing such devices is apparent from the above description. Furthermore, this application is not directed to any particular programming language. It should be understood that the content of this application described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of this application.

[0119] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0120] Similarly, it should be understood that, in order to simplify this application and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of this application, various features of this application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be construed as reflecting an intention that the claimed application requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of this application.

[0121] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0122] Furthermore, those skilled in the art will understand that although some embodiments described herein include certain features but not others included in other embodiments, combinations of features from different embodiments are intended to be within the scope of this application and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.

[0123] The various component embodiments of this application can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the virtual machine creation apparatus according to embodiments of this application. This application can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such an implementation of this application can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0124] It should be noted that the above embodiments are illustrative of this application and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. This application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

[0125] The above description is merely a preferred embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A third-party interface orchestration method, characterized in that, The method includes: Receive third-party interface information and processing scripts. The third-party interface information includes interface IP, interface path, calling method, interface header information, and interface authentication message. Determine whether the third-party interface requires authentication or interface data processing. If it is determined that it does not require authentication, cache the third-party interface information and processing script in the database. If authentication is required, perform authentication. If interface data processing is required, write and upload the interface processing script, and cache the third-party interface information and the written processing script in the database. Receive the target interface path and third-party interface ID sent by the front end; Obtain the third-party interface information and the corresponding processing script based on the third-party interface ID; The target compiler to be invoked is determined based on the type of the processing script. The processing script is sent to the target compiler so that the target compiler can directly call the third-party interface or obtain the target data of the third-party interface by calling the auxiliary utility class; The target data is processed using a processing script, and the processing results are sent to the front end.

2. The method as described in claim 1, characterized in that, If there are multiple third-party interface IDs, the method further includes: The auxiliary utility class determines the invocation method based on the relationship between third-party interface IDs; the invocation method includes serial and / or parallel; The target data is invoked according to the invocation method of the third-party interface, and the target data is cached in the database.

3. The method as described in claim 2, characterized in that, The serial calling method involves calling the interfaces sequentially, and processing the request result of each third-party interface to serve as the request parameter for the next third-party interface. The parallel calling method refers to simultaneously and asynchronously calling multiple third-party interfaces.

4. A third-party interface orchestration system, characterized in that, The system includes: The registration module receives third-party interface information and processing scripts. The third-party interface information includes interface IP, interface path, calling method, interface header information, and interface authentication message. It determines whether the third-party interface requires authentication or interface data processing. If it does not require authentication, it caches the third-party interface information and processing script in the database. If authentication is required, it performs authentication. If interface data processing is required, it writes and uploads the interface processing script and caches the third-party interface information and the written processing script in the database. The message receiving module is used to receive the target interface path and third-party interface ID sent by the front end; The interface information retrieval module is used to obtain third-party interface information and the corresponding processing script based on the third-party interface ID. The target compiler determination module is used to determine the target compiler to be invoked based on the type of the processing script. The message sending module is used to send the processing script to the target compiler, so that the target compiler can directly call the third-party interface or obtain the target data of the third-party interface by calling the auxiliary utility class; The data processing module is used to process the target data based on the processing script and send the processing results to the front end.

5. The system as described in claim 4, characterized in that, If there are multiple third-party interface IDs, the auxiliary utility class includes: The judgment module is used to determine the invocation method based on the relationship between third-party interface IDs; the invocation method includes serial and / or parallel. The calling module is used to call the target data of the third-party interface according to the calling method described above; A caching module is used to cache the target data in a database.

6. The system as described in claim 5, characterized in that, The serial calling method involves calling the interfaces sequentially, and processing the request result of each third-party interface to serve as the request parameter for the next third-party interface. The parallel calling method refers to simultaneously and asynchronously calling multiple third-party interfaces.

7. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the method as claimed in any one of claims 1-3.

8. A computer-readable storage medium, characterized in that, It stores computer-readable instructions that can be executed by a processor to implement the method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Method and device for processing service request

    CN113449022A

  • Data flow interface dynamic arrangement method and device, equipment, medium and program product

    CN114115841A