[go: up one dir, main page]

CN110928572A - Interface call and business system separation method, system and computer equipment - Google Patents

Interface call and business system separation method, system and computer equipment Download PDF

Info

Publication number
CN110928572A
CN110928572A CN201910969834.6A CN201910969834A CN110928572A CN 110928572 A CN110928572 A CN 110928572A CN 201910969834 A CN201910969834 A CN 201910969834A CN 110928572 A CN110928572 A CN 110928572A
Authority
CN
China
Prior art keywords
interface
calling
information
target
quartz layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910969834.6A
Other languages
Chinese (zh)
Inventor
田祥博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910969834.6A priority Critical patent/CN110928572A/en
Publication of CN110928572A publication Critical patent/CN110928572A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a method for separating an interface calling system from a service system, which comprises the following steps: configuring a Quartz layer, wherein the Quartz layer is used for providing a plurality of calling interfaces for an upstream service system and a downstream service system; receiving an interface calling instruction sent by an upstream service system; matching a target calling interface from the plurality of calling interfaces according to the interface calling instruction; according to the target calling interface, forwarding the interface calling instruction to the downstream business system; receiving response information fed back by the downstream business system according to the interface calling instruction forwarded by the Quartz layer; and sending the response information to the upstream service system. The embodiment of the invention separates the interface calling from the service system by configuring the Quartz layer, solves the problem that the current interface calling has larger influence on the application, and realizes the efficient response of the interface calling under the condition of not influencing the performance of the service system, thereby further improving the response speed and the service processing efficiency.

Description

Interface calling and service system separation method, system and computer equipment
Technical Field
The embodiment of the invention relates to the field of interface calling, in particular to a method, a system, computer equipment and a computer readable storage medium for separating an interface calling from a service system.
Background
With the development of science and technology, particularly with the emergence of cloud computing, terminal applications represented by media such as mobile phones, tablet computers and notebook computers are more and more common, and are gradually integrated into various fields such as enterprise management, government affair disclosure and management, personal entertainment experience and the like; therefore, more and more users need to process the service request called by the terminal operation related service through the lower application system, and therefore, the service request called by the specific service directly affects the response speed, the processing efficiency and the like of the service request with the corresponding problem of the target service system in the lower application system for specifically processing the corresponding service request. The performance of a service system can be influenced by calling an upstream interface, and meanwhile, the edition sending time of each associated system is not influenced by gray level edition sending; the impact on the application is large during the service time. Currently, many terminal devices need to call a related interface from a server when realizing a certain function, and in general, after a user of the terminal device inputs a parameter of the interface to be called, the user needs to manually perform subsequent operations to call the interface, which brings great inconvenience to the user.
Therefore, how to respond to the interface call efficiently without affecting the performance of the service system, so as to further improve the response speed and the service processing efficiency, which is one of the technical problems to be solved at present.
Disclosure of Invention
In view of the above, it is desirable to provide a method, a system, a computer device, and a computer readable storage medium for separating an interface call from a service system, so as to solve the technical problems that the current service time has a large influence on an application, and the interface call directly affects the response speed and processing efficiency of a service request.
In order to achieve the above object, an embodiment of the present invention provides a method for separating an interface call from a service system, where the method includes:
configuring a Quartz layer, wherein the Quartz layer is used for providing a plurality of calling interfaces for an upstream service system and a downstream service system;
receiving an interface calling instruction sent by an upstream service system;
matching a target calling interface from the plurality of calling interfaces according to the interface calling instruction;
according to the target calling interface, forwarding the interface calling instruction to the downstream business system;
receiving response information fed back by the downstream business system according to the interface calling instruction forwarded by the Quartz layer;
and sending the response information to the upstream service system.
Illustratively, the interface calling instruction comprises operation type information agreed with the Quartz layer, system name information of a target calling interface and type name information of the target calling interface;
the operation type information is used for matching information of a target calling interface, and the system name information and the type name information are used for inquiring registration information of the target interface on the Quartz layer.
Illustratively, the step of matching a target calling interface from the plurality of calling interfaces according to the interface calling instruction includes:
analyzing the interface calling instruction to obtain target interface calling information;
extracting keywords of the target interface calling information;
inquiring the registration information of the target interface on the Quartz layer according to the keyword;
and matching the target calling interface according to the registration information of the Quartz layer.
Illustratively, the step of analyzing the interface call request instruction to obtain the interface call information includes:
counting the quantity of the interface calling instructions; when the number exceeds the preset processing number, temporarily storing part of the interface calling instructions into a temporary storage queue; and when the number is lower than the preset processing number, adding part of the interface calling instructions temporarily stored in the temporary storage queue into the analysis queue.
In order to achieve the above object, an embodiment of the present invention further provides a system for separating an interface call from a service system, including:
the system comprises a construction module, a data processing module and a data processing module, wherein the construction module is used for configuring a Quartz layer, and the Quartz layer is used for providing a plurality of calling interfaces for an upstream service system and a downstream service system;
the receiving module is used for receiving an interface calling instruction sent by an upstream service system;
the matching module is used for matching a target calling interface from the plurality of calling interfaces according to the interface calling instruction;
the forwarding module is used for forwarding the interface calling instruction to the downstream service system according to the target calling interface;
the feedback module is used for receiving response information fed back by the downstream business system according to the interface calling instruction forwarded by the Quartz layer;
and the sending module is used for sending the response information to the upstream service system.
Illustratively, the interface calling instruction comprises operation type information agreed with the Quartz layer, system name information of a target calling interface and type name information of the target calling interface;
the operation type information is used for matching information of a target calling interface, and the system name information and the type name information are used for inquiring registration information of the target interface on the Quartz layer.
Illustratively, the matching module is further configured to:
analyzing the interface calling instruction to obtain target interface calling information;
extracting keywords of the target interface calling information;
inquiring the registration information of the target interface on the Quartz layer according to the keyword;
and matching the target calling interface according to the registration information of the Quartz layer.
Illustratively, the matching module is further configured to:
counting the quantity of the interface calling instructions; when the number exceeds the preset processing number, temporarily storing part of the interface calling instructions into a temporary storage queue; and when the number is lower than the preset processing number, adding part of the interface calling instructions temporarily stored in the temporary storage queue into the analysis queue.
In order to achieve the above object, an embodiment of the present invention further provides a computer device, where the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the computer program implements the steps of the interface calling and service system separation method as described above.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is executable by at least one processor, so as to cause the at least one processor to execute the steps of the interface call and service system separation method as described above.
The interface calling and service system separation method, the system, the computer equipment and the computer readable storage medium provided by the embodiment of the invention provide an effective separation method for the interface calling and service system; the Quartz layer is configured to separate the interface call from the service system, so that the problem that the current interface call has a large influence on the application is solved, the interface call is responded efficiently under the condition that the performance of the service system is not influenced, and the response speed and the service processing efficiency are further improved.
Drawings
Fig. 1 is a flowchart illustrating a method for separating an interface call from a service system according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of program modules of a second embodiment of the interface call and service system separation system according to the present invention.
Fig. 3 is a schematic diagram of a hardware structure of a third embodiment of the computer device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
In the following embodiments, the computer device 2 will be exemplarily described as an execution subject.
Example one
Referring to fig. 1, a flowchart illustrating steps of a method for separating an interface call from a service system according to an embodiment of the present invention is shown. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The following description is made by way of example with the computer device 2 as the execution subject. The details are as follows.
Step S100, configuring a Quartz layer, wherein the Quartz layer is used for providing a plurality of calling interfaces for an upstream service system and a downstream service system.
In this embodiment, a Quartz layer is configured based on the Quartz layer, and the Quartz layer is used as an independent environment for receiving interface calls of multiple call interfaces provided by an upstream service system and a downstream service system, so as to implement decoupling of the upstream interface call and the downstream service application, and improve efficiency of the interface call without affecting performance of the service system.
Illustratively, the interface calling instruction comprises operation type information agreed with the Quartz layer, system name information of a target calling interface and type name information of the target calling interface; the operation type information is used for matching information of a target calling interface, and the system name information and the type name information are used for inquiring registration information of the target interface on the Quartz layer.
Illustratively, the operation type information agreed with the Quartz layer can be used for finding an accurate target interface and processing the interface call instruction by the target interface. The operation type information agreed with the Quartz layer can be used for quickly and efficiently corresponding an interface call instruction to a target interface, wherein the interface call instruction needs to contain identification information for identifying the global uniqueness of the interface call instruction. The system name of the target interface, the type name of the target interface and other information can be used for finding the upstream service system or the downstream service system corresponding to the target calling interface.
Illustratively, the interface calling instruction further comprises interface annotation information, and the interface annotation information comprises interface function annotation information and interface parameter annotation information.
The interface function annotation information is information for introducing the interface function, such as the function of the interface.
The interface parameter annotation information is information for introducing interface parameters; the interface parameter annotation information can also be used as registration information of a matched target interface on the Quartz layer.
Step S102, receiving an interface calling instruction sent by an upstream service system.
And step S104, matching a target calling interface from the plurality of calling interfaces according to the interface calling instruction.
Illustratively, the step S104 may further include:
and step S104a, analyzing the interface calling instruction to obtain target interface calling information.
Illustratively, target interface calling information is obtained by analyzing the interface calling instruction, for example, identification information in the target interface calling information is obtained by analyzing.
The identification information may be a character combination, and may be used to represent the following information: interface function annotation identification information, interface parameter annotation identification information, interface calling parameter identification information and interface calling type identification information.
The information in the identification information can be acquired from a code file, and the acquisition method comprises the following steps: the corresponding symbol in the code is looked up. It should be noted that the identification information is set in advance according to the code annotation rule.
Step S104b, extracting the keywords of the target interface calling information.
Illustratively, target interface calling information is obtained; searching in the associated keyword library, and matching out related words in the target interface calling information; determining all text sentence patterns and corresponding related word combinations according to the target interface calling information and the matched related words of the target interface calling information; analyzing and determining the probability of establishing the sentence patterns and the corresponding related word combinations in the target interface calling information according to the keyword probability network model; and determining the related word combination corresponding to the probability with the maximum probability median determined by analysis as the keyword extracted from the target interface calling information.
Step S104c, inquiring the registration information of the target interface on the Quartz layer according to the keyword.
And step S104d, matching the target calling interface according to the registration information of the Quartz layer.
Illustratively, the step S104 may further include the steps of: counting the quantity of the interface calling instructions; when the number exceeds the preset processing number, temporarily storing part of the interface calling instructions into a temporary storage queue; and when the number is lower than the preset processing number, adding part of the interface calling instructions temporarily stored in the temporary storage queue into the analysis queue.
Illustratively, the optimal value of the Quartz layer for processing the interface calling instruction is determined in advance, the optimal value is used as a preset processing number, the number of the interface calling instructions for analyzing is recorded in real time, when the number of the interface calling instructions for analyzing exceeds the preset processing number, part of the interface calling instructions are temporarily stored in a temporary storage queue, the temporary storage queue is used for temporarily storing part of the interface calling instructions, and when the number of the interface calling instructions for analyzing is lower than the preset processing number, part of the interface calling instructions temporarily stored in the temporary storage queue are added into an analysis queue.
And step S106, according to the target calling interface, forwarding the interface calling instruction to the downstream service system.
Illustratively, the interface call request received by the target call interface may include an interface access request of the upstream service system and an interface access request forwarded by the upstream service system; the forwarded interface access request comprises an interface access request sent by an outer business system except the upstream business system.
Step S108, receiving response information fed back by the downstream business system according to the interface calling instruction forwarded by the Quartz layer.
Illustratively, after the downstream service system receives an interface call instruction forwarded by the Quartz layer, the downstream service system feeds back according to the interface call instruction, generates response information, and sends the response information to the Quartz layer.
Step S110, sending the response information to the upstream service system.
Illustratively, after receiving the response information fed back by the downstream service system, the Quartz layer sends the response information to the upstream service system.
Example two
Fig. 2 is a schematic diagram of program modules of a second embodiment of the interface call and service system separation system according to the present invention. Separation system 20 may include or be divided into one or more program modules that are stored in a storage medium and executed by one or more processors to implement the present invention and implement the above-described interface call and business system separation methods. Program modules referred to herein in the context of embodiments of the present invention are generally intended to be a series of computer program instructions that can be used to implement a specified function, and may be more appropriately described in terms of the execution of the separate system 20 on a storage medium than the program itself. The following description will specifically describe the functions of the program modules of the present embodiment:
a building module 200, configured to configure a Quartz layer, where the Quartz layer is configured to provide multiple call interfaces for an upstream service system and a downstream service system;
a receiving module 202, configured to receive an interface call instruction sent by an upstream service system;
the matching module 204 is configured to match a target calling interface from the plurality of calling interfaces according to the interface calling instruction;
a forwarding module 206, configured to forward the interface calling instruction to the downstream service system according to the target calling interface;
a feedback module 208, configured to receive response information fed back by the downstream service system according to the interface call instruction forwarded by the Quartz layer;
a sending module 210, configured to send the response message to the upstream service system.
In this embodiment, a Quartz layer is configured based on the Quartz layer, and the Quartz layer is used as an independent environment for receiving interface calls of multiple call interfaces provided by an upstream service system and a downstream service system, so as to implement decoupling of the upstream interface call and the downstream service application, and improve efficiency of the interface call without affecting performance of the service system.
Illustratively, the interface calling instruction comprises operation type information agreed with the Quartz layer, system name information of a target calling interface and type name information of the target calling interface; the operation type information is used for matching information of a target calling interface, and the system name information and the type name information are used for inquiring registration information of the target interface on the Quartz layer.
Illustratively, the operation type information agreed with the Quartz layer can be used for finding an accurate target interface and processing the interface call instruction by the target interface. The operation type information agreed with the Quartz layer can be used for quickly and efficiently corresponding an interface call instruction to a target interface, wherein the interface call instruction needs to contain identification information for identifying the global uniqueness of the interface call instruction. The system name of the target interface, the type name of the target interface and other information can be used for finding the upstream service system or the downstream service system corresponding to the target calling interface.
Illustratively, the interface calling instruction further comprises interface annotation information, and the interface annotation information comprises interface function annotation information and interface parameter annotation information.
The interface function annotation information is information for introducing the interface function, such as the function of the interface.
The interface parameter annotation information is information for introducing interface parameters; the interface parameter annotation information can also be used as registration information of a matched target interface on the Quartz layer.
Illustratively, the matching module 204 may be further configured to:
and analyzing the interface calling instruction to obtain target interface calling information.
Illustratively, target interface calling information is obtained by analyzing the interface calling instruction, for example, identification information in the target interface calling information is obtained by analyzing.
The identification information may be a character combination, and may be used to represent the following information: interface function annotation identification information, interface parameter annotation identification information, interface calling parameter identification information and interface calling type identification information.
The information in the identification information can be acquired from a code file, and the acquisition method comprises the following steps: the corresponding symbol in the code is looked up. It should be noted that the identification information is set in advance according to the code annotation rule.
And extracting keywords of the target interface calling information.
Illustratively, target interface calling information is obtained; searching in the associated keyword library, and matching out related words in the target interface calling information; determining all text sentence patterns and corresponding related word combinations according to the target interface calling information and the matched related words of the target interface calling information; analyzing and determining the probability of establishing the sentence patterns and the corresponding related word combinations in the target interface calling information according to the keyword probability network model; and determining the related word combination corresponding to the probability with the maximum probability median determined by analysis as the keyword extracted from the target interface calling information.
And inquiring the registration information of the target interface on the Quartz layer according to the keyword.
And matching the target calling interface according to the registration information of the Quartz layer.
Illustratively, the matching module 204 may be further configured to:
counting the quantity of the interface calling instructions; when the number exceeds the preset processing number, temporarily storing part of the interface calling instructions into a temporary storage queue; and when the number is lower than the preset processing number, adding part of the interface calling instructions temporarily stored in the temporary storage queue into the analysis queue.
Illustratively, the optimal value of the Quartz layer for processing the interface calling instruction is determined in advance, the optimal value is used as a preset processing number, the number of the interface calling instructions for analyzing is recorded in real time, when the number of the interface calling instructions for analyzing exceeds the preset processing number, part of the interface calling instructions are temporarily stored in a temporary storage queue, the temporary storage queue is used for temporarily storing part of the interface calling instructions, and when the number of the interface calling instructions for analyzing is lower than the preset processing number, part of the interface calling instructions temporarily stored in the temporary storage queue are added into an analysis queue.
Illustratively, the interface call request received by the target call interface may include an interface access request of the upstream service system and an interface access request forwarded by the upstream service system; the forwarded interface access request comprises an interface access request sent by an outer business system except the upstream business system.
Illustratively, after the downstream service system receives an interface call instruction forwarded by the Quartz layer, the downstream service system feeds back according to the interface call instruction, generates response information, and sends the response information to the Quartz layer.
Illustratively, after receiving the response information fed back by the downstream service system, the Quartz layer sends the response information to the upstream service system.
EXAMPLE III
Fig. 3 is a schematic diagram of a hardware architecture of a computer device according to a third embodiment of the present invention. In the present embodiment, the computer device 2 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a preset or stored instruction. The computer device 2 may be a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers), and the like. As shown, the computer device 2 includes, but is not limited to, at least a memory 21, a processor 22, a network interface 23, and a separate system 20 communicatively coupled to each other via a system bus.
In this embodiment, the memory 21 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 21 may be an internal storage unit of the computer device 2, such as a hard disk or a memory of the computer device 2. In other embodiments, the memory 21 may also be an external storage device of the computer device 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the computer device 2. Of course, the memory 21 may also comprise both internal and external memory units of the computer device 2. In this embodiment, the memory 21 is generally used to store an operating system and various application software installed in the computer device 2, for example, the program code of the interface calling and service system separation system 20 in the second embodiment. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 22 is typically used to control the overall operation of the computer device 2. In this embodiment, the processor 22 is configured to execute the program code stored in the memory 21 or process data, for example, execute the interface call and service system separation system 20, so as to implement the interface call and service system separation method according to the first embodiment.
The network interface 23 may comprise a wireless network interface or a wired network interface, and the network interface 23 is generally used for establishing communication connection between the computer device 2 and other electronic apparatuses. For example, the network interface 23 is used to connect the computer device 2 to an external terminal through a network, establish a data transmission channel and a communication connection between the computer device 2 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 3 only shows the computer device 2 with components 20-23, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the interface call and service system separation system 20 stored in the memory 21 can also be divided into one or more program modules, and the one or more program modules are stored in the memory 21 and executed by one or more processors (in this embodiment, the processor 22) to complete the present invention.
For example, fig. 2 shows a schematic diagram of program modules of the interface call and service system separation system 20 according to a second embodiment of the present invention, in this embodiment, the interface call and service system separation system 20 may be divided into a building module 200, a receiving module 202, a matching module 204, a forwarding module 206, a feedback module 208, and a sending module 210. The program module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable than a program for describing the execution process of the interface call and service system separation classification 20 in the computer device 2. The specific functions of the program modules 200 and 210 have been described in detail in the second embodiment, and are not described herein again.
Example four
The present embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer-readable storage medium of this embodiment is used for the interface call and service system separation system 20, and when executed by the processor, implements the interface call and service system separation method of the first embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1.一种接口调用与业务系统分离方法,其特征在于,所述方法包括:1. a method for separating interface invocation and business system, it is characterized in that, described method comprises: 配置Quartz层,所述Quartz层用于为上游业务系统和下游业务系统提供多个调用接口;Configure the Quartz layer, where the Quartz layer is used to provide multiple calling interfaces for the upstream business system and the downstream business system; 接收上游业务系统发送的接口调用指令;Receive the interface call instruction sent by the upstream business system; 根据所述接口调用指令,从所述多个调用接口中匹配目标调用接口;matching a target calling interface from the multiple calling interfaces according to the interface calling instruction; 根据所述目标调用接口,将所述接口调用指令转发至所述下游业务系统;forwarding the interface invocation instruction to the downstream business system according to the target invocation interface; 接收所述下游业务系统根据所述Quartz层转发的接口调用指令反馈的响应信息;receiving the response information fed back by the downstream service system according to the interface calling instruction forwarded by the Quartz layer; 将所述响应信息发送至所述上游业务系统。Send the response information to the upstream service system. 2.如权利要求1所述的接口调用与业务系统分离方法,其特征在于:2. the method for separating interface invocation and business system as claimed in claim 1, is characterized in that: 所述接口调用指令包括与所述Quartz层约定的操作类型信息、目标调用接口的系统名称信息以及目标调用接口的类型名称信息;The interface call instruction includes the operation type information agreed with the Quartz layer, the system name information of the target call interface and the type name information of the target call interface; 其中,所述操作类型信息用于匹配目标调用接口的信息,所述系统名称信息和所述类型名称信息用于查询所述目标接口在所述Quartz层的注册信息。The operation type information is used to match the information of the target calling interface, and the system name information and the type name information are used to query the registration information of the target interface in the Quartz layer. 3.如权利要求2所述的接口调用与业务系统分离方法,其特征在于,所述根据所述接口调用指令,从所述多个调用接口中匹配目标调用接口的步骤,包括:3. The method for separating interface invocation and business system according to claim 2, wherein the step of matching a target invocation interface from the plurality of invocation interfaces according to the interface invocation instruction comprises: 对所述接口调用指令进行解析,得到目标接口调用信息;Parsing the interface calling instruction to obtain target interface calling information; 提取所述目标接口调用信息的关键词;extracting the keywords of the target interface invocation information; 根据所述关键词查询所述目标接口在所述Quartz层的注册信息;Query the registration information of the target interface in the Quartz layer according to the keyword; 根据所述Quartz层的注册信息匹配所述目标调用接口。The target calling interface is matched according to the registration information of the Quartz layer. 4.如权利要求3所述的接口调用与业务系统分离方法,其特征在于,所述对所述接口调用请求指令进行解析得到接口调用信息的步骤,包括:4. The method for separating interface invocation and business system according to claim 3, wherein the step of parsing the interface invocation request instruction to obtain interface invocation information comprises: 对所述接口调用指令进行数量统计;当数量超过预设处理数量时,则将部分接口调用指令暂存到暂存队列中;当数量低于所述预设处理数量时,则将暂存在暂存队列中的部分接口调用指令加入到解析列队中。Count the number of the interface calling instructions; when the number exceeds the preset processing number, temporarily store some of the interface calling instructions in the temporary storage queue; when the number is lower than the preset processing number, temporarily store them in the temporary storage queue Some interface call instructions in the storage queue are added to the parsing queue. 5.一种接口调用与业务系统分离系统,其特征在于,包括:5. An interface calling and business system separation system, characterized in that, comprising: 构建模块,用于配置Quartz层,所述Quartz层用于为上游业务系统和下游业务系统提供多个调用接口;a building module for configuring the Quartz layer, where the Quartz layer is used to provide multiple calling interfaces for the upstream business system and the downstream business system; 接收模块,用于接收上游业务系统发送的接口调用指令;The receiving module is used to receive the interface calling instruction sent by the upstream business system; 匹配模块,用于根据所述接口调用指令,从所述多个调用接口中匹配目标调用接口;a matching module, configured to match a target calling interface from the multiple calling interfaces according to the interface calling instruction; 转发模块,用于根据所述目标调用接口,将所述接口调用指令转发至所述下游业务系统;a forwarding module, configured to call the interface according to the target, and forward the interface calling instruction to the downstream business system; 反馈模块,用于接收所述下游业务系统根据所述Quartz层转发的接口调用指令反馈的响应信息;a feedback module, configured to receive the response information fed back by the downstream service system according to the interface calling instruction forwarded by the Quartz layer; 发送模块,用于将所述响应信息发送至所述上游业务系统。A sending module, configured to send the response information to the upstream service system. 6.如权利要求5所述的接口调用与业务系统分离系统,其特征在于,6. The interface calling and business system separation system as claimed in claim 5, is characterized in that, 所述接口调用指令包括与所述Quartz层约定的操作类型信息、目标调用接口的系统名称信息以及目标调用接口的类型名称信息;The interface call instruction includes the operation type information agreed with the Quartz layer, the system name information of the target call interface and the type name information of the target call interface; 其中,所述操作类型信息用于匹配出目标调用接口的信息,所述系统名称信息和所述类型名称信息用于查询所述目标接口在所述Quartz层的注册信息。The operation type information is used to match the information of the target calling interface, and the system name information and the type name information are used to query the registration information of the target interface in the Quartz layer. 7.如权利要求6所述的接口调用与业务系统分离系统,其特征在于,所述匹配模块还用于:7. The interface invocation and business system separation system as claimed in claim 6, wherein the matching module is also used for: 对所述接口调用指令进行解析,得到目标接口调用信息;Parsing the interface calling instruction to obtain target interface calling information; 提取所述目标接口调用信息的关键词;extracting the keywords of the target interface invocation information; 根据所述关键词查询所述目标接口在所述Quartz层的注册信息;Query the registration information of the target interface in the Quartz layer according to the keyword; 根据所述Quartz层的注册信息匹配所述目标调用接口。The target calling interface is matched according to the registration information of the Quartz layer. 8.如权利要求7所述的接口调用与业务系统分离系统,其特征在于,所述匹配模块还用于:8. The interface invocation and business system separation system as claimed in claim 7, wherein the matching module is also used for: 对所述接口调用指令进行数量统计;当数量超过预设处理数量时,则将部分接口调用指令暂存到暂存队列中;当数量低于所述预设处理数量时,则将暂存在暂存队列中的部分接口调用指令加入到解析列队中。Count the number of the interface calling instructions; when the number exceeds the preset processing number, temporarily store some of the interface calling instructions in the temporary storage queue; when the number is lower than the preset processing number, temporarily store them in the temporary storage queue Some interface call instructions in the storage queue are added to the parsing queue. 9.一种计算机设备,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的接口调用与业务系统分离方法的步骤。9. A computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the computer program is implemented when the processor is executed The steps of the method for separating the interface invocation from the business system according to any one of claims 1 to 4. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序可被至少一个处理器所执行,以使所述至少一个处理器执行如权利要求1至4中任一项所述的接口调用与业务系统分离方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and the computer program can be executed by at least one processor, so that the at least one processor executes the The steps of the method for separating interface invocation from business system according to any one of claims 1 to 4.
CN201910969834.6A 2019-10-12 2019-10-12 Interface call and business system separation method, system and computer equipment Pending CN110928572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910969834.6A CN110928572A (en) 2019-10-12 2019-10-12 Interface call and business system separation method, system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910969834.6A CN110928572A (en) 2019-10-12 2019-10-12 Interface call and business system separation method, system and computer equipment

Publications (1)

Publication Number Publication Date
CN110928572A true CN110928572A (en) 2020-03-27

Family

ID=69848902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910969834.6A Pending CN110928572A (en) 2019-10-12 2019-10-12 Interface call and business system separation method, system and computer equipment

Country Status (1)

Country Link
CN (1) CN110928572A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610414A (en) * 2022-03-22 2022-06-10 未鲲(上海)科技服务有限公司 Method and device for calling integration interface, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050154785A1 (en) * 2004-01-09 2005-07-14 Reed Benjamin C. Method and system of mapping at least one web service to at least one OSGi service and exposing at least one local service as at least one web service
US20090265368A1 (en) * 2008-04-17 2009-10-22 Microsoft Corporation Automatic generation of user interfaces
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN102420709A (en) * 2011-12-23 2012-04-18 大唐移动通信设备有限公司 Task scheduling management method and device based on task framework
CN107193668A (en) * 2017-04-26 2017-09-22 深圳中兴网信科技有限公司 The call method and system at interface service end
CN107704315A (en) * 2017-03-31 2018-02-16 广东网金控股股份有限公司 A kind of timed task dispatch service framework and method based on Quartz

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050154785A1 (en) * 2004-01-09 2005-07-14 Reed Benjamin C. Method and system of mapping at least one web service to at least one OSGi service and exposing at least one local service as at least one web service
US20090265368A1 (en) * 2008-04-17 2009-10-22 Microsoft Corporation Automatic generation of user interfaces
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN102420709A (en) * 2011-12-23 2012-04-18 大唐移动通信设备有限公司 Task scheduling management method and device based on task framework
CN107704315A (en) * 2017-03-31 2018-02-16 广东网金控股股份有限公司 A kind of timed task dispatch service framework and method based on Quartz
CN107193668A (en) * 2017-04-26 2017-09-22 深圳中兴网信科技有限公司 The call method and system at interface service end

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610414A (en) * 2022-03-22 2022-06-10 未鲲(上海)科技服务有限公司 Method and device for calling integration interface, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107844634B (en) Modeling method of multivariate general model platform, electronic equipment and computer readable storage medium
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN112162965B (en) Log data processing method, device, computer equipment and storage medium
CN109617646B (en) Message conversion method and device, computer equipment and computer readable storage medium
CN109617647B (en) Message conversion method and device, computer equipment and computer readable storage medium
CN108196961A (en) A kind of asynchronous message processing method, terminal, system and storage medium
CN107682426B (en) Interface proxy method and application server
CN110610196A (en) Desensitization method, system, computer device and computer-readable storage medium
CN108762898B (en) Thread interface management method, terminal equipment and computer readable storage medium
CN103036910B (en) A kind of user's web access Behavior-Based control method and device
CN111666145A (en) Message processing method and system of message queue and computer equipment
CN111580948A (en) Task scheduling method, device and computer equipment
CN109840120B (en) Decoupling micro-service release method, electronic device and computer readable storage medium
CN108170551A (en) Front and back end error handling method, server and storage medium based on crawler system
CN112422450B (en) Computer equipment, and flow control method and device for service request
CN112527780A (en) Redis cluster creating and managing method, system, computer device and storage medium
CN110928572A (en) Interface call and business system separation method, system and computer equipment
WO2018077138A1 (en) Data configuration method, index management method, related apparatus and computing device
CN117371434A (en) Training method of demand recognition model, demand recognition method and device
CN114595115A (en) Model data extraction method, system, electronic device and computer storage medium
CN115080504A (en) File management method, terminal and storage medium
CN113612848A (en) Internet of things data receiving method, Internet of things platform and Internet of things system
CN110490451A (en) Task data management-control method, device and computer equipment based on hadoop
CN111782428A (en) Data calling system and method
CN112667627A (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327

RJ01 Rejection of invention patent application after publication