CN116800822A - Information acquisition method, device, equipment and computer readable storage medium - Google Patents
Information acquisition method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN116800822A CN116800822A CN202211020790.0A CN202211020790A CN116800822A CN 116800822 A CN116800822 A CN 116800822A CN 202211020790 A CN202211020790 A CN 202211020790A CN 116800822 A CN116800822 A CN 116800822A
- Authority
- CN
- China
- Prior art keywords
- target
- information
- request
- information acquisition
- channel
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种信息获取方法、装置、设备及计算机可读存储介质。The present application relates to the field of communication technology, and in particular, to an information acquisition method, device, equipment and computer-readable storage medium.
背景技术Background technique
通常,运营商接口平台的响应数据都是通过编排接口实时向省公司系统发送请求来获取的。目前,在通过访问编排接口来获取请求对应的响应数据时,通常是编排接口在接收到请求之后,再将请求发送至省公司系统,省公司系统对请求进行解析,从而得到请求对应的响应数据。但是,相关技术中在获取响应数据时,针对每一请求都需要向省公司系统发送请求才能获取到响应数据,使得获取响应数据的时间较长,导致获取响应数据的效率较低。Usually, the response data of the operator interface platform is obtained by sending requests to the provincial company system in real time through the orchestration interface. Currently, when accessing the orchestration interface to obtain the response data corresponding to the request, the orchestration interface usually sends the request to the provincial company system after receiving the request. The provincial company system parses the request to obtain the response data corresponding to the request. . However, in related technologies, when obtaining response data, a request needs to be sent to the provincial company system for each request to obtain the response data, which makes obtaining the response data take a long time and results in low efficiency in obtaining the response data.
发明内容Contents of the invention
为解决上述技术问题,本申请实施例期望提供一种信息获取方法、装置、设备及计算机可读存储介质,可以解决相关技术中获取响应数据的时间较长,导致获取响应数据的效率较低的问题,缩短了获取目标业务信息的时长,且提高了获取目标业务信息的效率。In order to solve the above technical problems, embodiments of the present application are expected to provide an information acquisition method, device, equipment and computer-readable storage medium, which can solve the problem in related technologies that it takes a long time to obtain response data, resulting in low efficiency in obtaining response data. problem, shortening the time to obtain target business information, and improving the efficiency of obtaining target business information.
本申请的技术方案是这样实现的:The technical solution of this application is implemented as follows:
一种信息获取方法,所述方法包括:An information acquisition method, the method includes:
接收目标接口对应的信息获取请求;其中,所述信息获取请求中携带有用于表征待获取业务的业务参数;Receive an information acquisition request corresponding to the target interface; wherein the information acquisition request carries business parameters used to characterize the service to be obtained;
在目标信息库中具有与所述信息获取请求对应的目标业务信息的情况下,基于所述业务参数从目标信息库中获取所述目标业务信息;If there is target business information corresponding to the information acquisition request in the target information database, obtain the target business information from the target information database based on the business parameters;
在所述目标信息库中不具有所述目标业务信息的情况下,基于所述目标接口的类型和所述信息获取请求获取所述目标业务信息。If the target service information does not exist in the target information database, the target service information is obtained based on the type of the target interface and the information acquisition request.
上述方案中,所述在目标信息库中具有与所述信息获取请求对应的目标业务信息的情况下,基于所述业务参数从目标信息库中获取所述目标业务信息,包括:In the above solution, when the target information database has target business information corresponding to the information acquisition request, obtaining the target business information from the target information database based on the business parameters includes:
将所述业务参数与所述目标信息库中的关键字进行匹配;Match the business parameters with keywords in the target information database;
在存在与所述业务参数匹配的目标关键字的情况下,从所述目标信息库中获取与所述目标关键字对应的目标关键信息,得到所述目标业务信息。If there is a target keyword matching the service parameter, the target key information corresponding to the target keyword is obtained from the target information database to obtain the target business information.
上述方案中,所述在所述目标信息库中不具有所述目标业务信息的情况下,基于所述目标接口的类型和所述信息获取请求获取所述目标业务信息,包括:In the above solution, when the target service information is not included in the target information database, obtaining the target service information based on the type of the target interface and the information acquisition request includes:
在不存在与所述业务参数匹配的所述目标关键字,且所述目标接口的类型为目标类型的情况下,确定所述信息获取请求对应的目标请求方式;If there is no target keyword matching the service parameter and the type of the target interface is a target type, determine the target request method corresponding to the information acquisition request;
采用所述目标请求方式从目标设备中获取所述目标业务信息。The target service information is obtained from the target device using the target request method.
上述方案中,所述确定所述信息获取请求对应的目标请求方式,包括:In the above solution, determining the target request method corresponding to the information acquisition request includes:
确定所述目标接口对应的通道当前的工作状态;Determine the current working status of the channel corresponding to the target interface;
基于所述通道当前的工作状态确定所述目标请求方式。The target request mode is determined based on the current working status of the channel.
上述方案中,所述基于所述通道当前的工作状态确定所述目标请求方式,包括:In the above solution, determining the target request mode based on the current working status of the channel includes:
在所述当前的工作状态表征所述通道中至少存在至少两个第一目标通道处于空闲状态的情况下,确定所述目标请求方式为并行请求方式;When the current working state indicates that at least two first target channels in the channel are in an idle state, determine that the target request mode is a parallel request mode;
上述方案中,所述采用所述目标请求方式从目标设备中获取所述目标业务信息,包括:In the above solution, the use of the target request method to obtain the target service information from the target device includes:
采用所述并行请求方式通过所述至少两个第一目标通道发送所述信息获取请求至所述目标设备中,以获取所述目标业务信息。The information acquisition request is sent to the target device through the at least two first target channels using the parallel request method to obtain the target service information.
上述方案中,所述基于所述通道状态确定所述目标请求方式,包括:In the above solution, determining the target request mode based on the channel status includes:
在所述当前的工作状态表征所述通道中存在一个第二目标通道处于空闲状态的情况下,确定所述目标请求方式为串行请求方式;When the current working state indicates that there is a second target channel in the channel that is in an idle state, determine that the target request mode is a serial request mode;
上述方案中,所述采用所述目标请求方式从目标设备中获取所述目标业务信息,包括:In the above solution, the use of the target request method to obtain the target service information from the target device includes:
在所述通道中存在一个第二目标通道处于所述空闲状态的情况下,采用所述串行请求方式通过所述第二目标通道发送所述信息获取请求中的目标获取请求至所述目标设备中;When there is a second target channel in the channel and is in the idle state, the serial request method is used to send the target acquisition request in the information acquisition request to the target device through the second target channel. middle;
监测所述通道的运行状态,并在所述通道中存在处于空闲状态的第三目标通道时,采用所述串行请求方式通过所述第三目标通道发送所述信息获取请求中除所述目标获取请求外的请求至所述目标设备,以获取所述目标业务信息。Monitor the running status of the channel, and when there is a third target channel in an idle state in the channel, use the serial request mode to send the information acquisition request through the third target channel except the target Obtain a request other than the request to the target device to obtain the target service information.
上述方案中,所述基于所述通道当前的工作状态确定所述目标请求方式,包括:In the above solution, determining the target request mode based on the current working status of the channel includes:
在所述当前的工作状态表征所述通道均处于运行状态的情况下,确定所述目标请求方式为串行请求方式;When the current working status indicates that all the channels are in a running status, determine that the target request mode is a serial request mode;
上述方案中,所述采用所述目标请求方式从目标设备中获取所述目标业务信息,包括:In the above solution, the use of the target request method to obtain the target service information from the target device includes:
在所述通道均处于运行状态的情况下,监测所述通道的运行状态;When the channels are all in operation, monitor the operation status of the channels;
在所述通道中存在处于空闲状态的第四目标通道的情况下,采用所述串行请求方式通过所述第四目标通道发送所述信息获取请求至所述目标设备中,以获取所述目标业务信息。When there is a fourth target channel in an idle state in the channel, the serial request method is used to send the information acquisition request to the target device through the fourth target channel to obtain the target device. business information.
上述方案中,所述采用所述目标请求方式从目标设备中获取所述目标业务信息之后,还包括:In the above solution, after obtaining the target service information from the target device using the target request method, the method further includes:
确定所述目标业务信息是否存在异常;Determine whether there is an abnormality in the target business information;
在确定所述目标业务信息不存在异常的情况下,基于所述业务参数,将所述目标业务信息存储至所述目标信息库中。When it is determined that there is no abnormality in the target service information, the target service information is stored in the target information database based on the service parameters.
一种信息获取装置,所述装置包括:An information acquisition device, the device includes:
接收单元,用于接收目标接口对应的信息获取请求;其中,所述信息获取请求中携带有用于表征待获取业务的业务参数;A receiving unit configured to receive an information acquisition request corresponding to the target interface; wherein the information acquisition request carries business parameters used to characterize the service to be obtained;
获取单元,用于在目标信息库中具有与所述信息获取请求对应的目标业务信息的情况下,基于所述业务参数从目标信息库中获取所述目标业务信息;An acquisition unit configured to acquire the target business information from the target information database based on the service parameters when the target information database has target business information corresponding to the information acquisition request;
处理单元,用于在所述目标信息库中不具有所述目标业务信息的情况下,基于所述目标接口的类型和所述信息获取请求获取所述目标业务信息。A processing unit configured to obtain the target service information based on the type of the target interface and the information acquisition request when the target service information does not exist in the target information database.
一种信息获取设备,所述设备包括:处理器、存储器和通信总线;An information acquisition device, the device includes: a processor, a memory and a communication bus;
所述通信总线用于实现所述处理器和所述存储器之间的通信连接;The communication bus is used to realize the communication connection between the processor and the memory;
所述处理器用于执行所述存储器中存储的信息获取程序,以实现如上述的信息获取方法的步骤。The processor is configured to execute the information acquisition program stored in the memory to implement the steps of the above information acquisition method.
一种计算机可读存储介质,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上述的信息获取方法的步骤。A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above information acquisition method.
本申请实施例所提供的信息获取方法、装置、设备及计算机可读存储介质,接收目标接口对应的信息获取请求;其中,信息获取请求中携带有用于表征待获取业务的业务参数;然后在目标信息库中具有与信息获取请求对应的目标业务信息的情况下,基于业务参数从目标信息库中获取目标业务信息;在目标信息库中不具有目标业务信息的情况下,基于目标接口的类型和信息获取请求获取目标业务信息;如此,当目标信息库中存在与信息获取请求中的业务参数匹配的参数时,可以直接从目标信息库中获取该参数对应的信息作为目标业务信息,而不需要从目标设备中获取目标业务信息,可以缩短获取目标业务信息的时长,且提高获取目标业务信息的效率。The information acquisition method, device, equipment and computer-readable storage medium provided by the embodiments of the present application receive an information acquisition request corresponding to the target interface; wherein the information acquisition request carries business parameters used to characterize the service to be acquired; and then in the target interface If there is target business information corresponding to the information acquisition request in the information database, the target business information is obtained from the target information database based on the business parameters; if there is no target business information in the target information database, the target business information is obtained based on the type of the target interface and The information acquisition request obtains the target business information; in this way, when there are parameters matching the business parameters in the information acquisition request in the target information database, the information corresponding to the parameters can be directly obtained from the target information database as the target business information without Obtaining the target service information from the target device can shorten the time for obtaining the target service information and improve the efficiency of obtaining the target service information.
附图说明Description of the drawings
图1为本申请实施例提供的一种信息获取方法的流程示意图;Figure 1 is a schematic flow chart of an information acquisition method provided by an embodiment of the present application;
图2为本申请实施例提供的另一种信息获取方法的流程示意图;Figure 2 is a schematic flow chart of another information acquisition method provided by an embodiment of the present application;
图3为本申请实施例提供的又一种信息获取方法的流程示意图;Figure 3 is a schematic flow chart of another information acquisition method provided by an embodiment of the present application;
图4为本申请实施例提供的一种信息获取方法中编排接口获取目标业务信息的流程示意图;Figure 4 is a schematic flowchart of the orchestration interface to obtain target business information in an information acquisition method provided by an embodiment of the present application;
图5为本申请实施例提供的一种信息获取方法中普通单接口获取目标业务信息的流程示意图;Figure 5 is a schematic flow chart of obtaining target business information through a common single interface in an information acquisition method provided by an embodiment of the present application;
图6(a)和图6(b)为本申请实施例提供的一种信息获取方法中编排接口获取目标业务信息的示意图;Figure 6(a) and Figure 6(b) are schematic diagrams of the orchestration interface obtaining target business information in an information obtaining method provided by an embodiment of the present application;
图7为本申请实施例提供的一种信息获取装置的结构示意图;Figure 7 is a schematic structural diagram of an information acquisition device provided by an embodiment of the present application;
图8为本申请实施例提供的一种信息获取设备的结构示意图。Figure 8 is a schematic structural diagram of an information acquisition device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
本申请实施例提供一种信息获取方法,该方法可以应用于信息获取设备中,参照图1所示,该方法包括以下步骤:An embodiment of the present application provides an information acquisition method, which can be applied to an information acquisition device. Referring to Figure 1, the method includes the following steps:
步骤101、接收目标接口对应的信息获取请求。Step 101: Receive an information acquisition request corresponding to the target interface.
其中,信息获取请求中携带有用于表征待获取业务的业务参数。The information acquisition request carries service parameters used to characterize the service to be obtained.
在本申请实施例中,目标接口可以指的是任意一种类型的接口,在一种可行的实现方式中,目标接口可以指的是编排接口,目标接口也可以指的是普通单接口;信息获取请求可以指的是超文本传输协议(Hyper Text Transfer Protocol,HTTP)请求。In the embodiment of this application, the target interface may refer to any type of interface. In a feasible implementation manner, the target interface may refer to an orchestration interface, and the target interface may also refer to an ordinary single interface; information The acquisition request may refer to a Hyper Text Transfer Protocol (Hyper Text Transfer Protocol, HTTP) request.
在本申请实施例中,信息获取设备可以直接接收目标接口对应的信息获取请求;信息获取设备也可以间接接收目标接口对应的信息获取请求,即可以是与信息获取设备具有通信连接的设备接收到目标接口对应的信息获取请求之后,将接收到的信息获取请求转发给信息获取设备。In the embodiment of this application, the information acquisition device can directly receive the information acquisition request corresponding to the target interface; the information acquisition device can also indirectly receive the information acquisition request corresponding to the target interface, that is, it can be received by a device that has a communication connection with the information acquisition device. After receiving the information acquisition request corresponding to the target interface, the received information acquisition request is forwarded to the information acquisition device.
步骤102、在目标信息库中具有与信息获取请求对应的目标业务信息的情况下,基于业务参数从目标信息库中获取目标业务信息。Step 102: If the target information database has target business information corresponding to the information acquisition request, obtain the target business information from the target information database based on the business parameters.
其中,目标业务信息可以指的是信息获取请求对应的需要获取的信息;目标信息库可以指的是基于一定规则构建的可以缓存信息的数据库;在一种可行的实现方式中,目标信息库可以是通过远程字典服务(Remote Dictionary Server,Redis)来实现的,目标信息库中的信息可以是以key-value的形式存在;即目标信息库可以是以业务参数为缓存键(key),目标业务信息为缓存值(value)的形式存储目标业务信息。Among them, the target business information can refer to the information that needs to be obtained corresponding to the information acquisition request; the target information database can refer to a database built based on certain rules that can cache information; in a feasible implementation method, the target information database can It is implemented through Remote Dictionary Server (Redis). The information in the target information database can exist in the form of key-value; that is, the target information database can use business parameters as the cache key (key), and the target business The information stores target business information in the form of cache value (value).
在本身申请实施例中,可以将信息获取请求中的业务参数与目标信息库进行比较,确定目标信息库中是否存在与信息获取请求中的业务参数对应的参数,当确定目标信息库中具有与信息获取请求中的业务参数对应的参数时,可以直接从目标信息库中获取信息获取请求对应的目标业务信息;如此,当目标接口接收到相同的信息获取请求时,可以将直接从目标信息库中获取到目标业务信息返回给目标接口,避免了在一定时间内多次、重复向目标设备发送信息获取请求,不仅减轻了目标设备的压力,且大幅提升了目标接口的二次请求的响应速度;需要说明的是,可以采用面向切面编程(Aspect OrientedProgramming,AOP)技术来实现在目标信息库中具有与信息获取请求对应的目标业务信息的情况下,基于业务参数从目标信息库中获取目标业务信息。In the embodiment of the present application, the business parameters in the information acquisition request can be compared with the target information database to determine whether there are parameters corresponding to the business parameters in the information acquisition request in the target information database. When it is determined that the target information database has parameters corresponding to the business parameters in the information acquisition request, When the parameters corresponding to the business parameters in the information acquisition request are specified, the target business information corresponding to the information acquisition request can be obtained directly from the target information database; in this way, when the target interface receives the same information acquisition request, the target business information corresponding to the information acquisition request can be obtained directly from the target information database. The target business information is obtained and returned to the target interface, which avoids sending multiple and repeated information acquisition requests to the target device within a certain period of time. This not only reduces the pressure on the target device, but also greatly improves the response speed of secondary requests from the target interface. ; It should be noted that Aspect Oriented Programming (AOP) technology can be used to obtain the target business from the target information base based on business parameters when the target information base has target business information corresponding to the information acquisition request. information.
步骤103、在目标信息库中不具有目标业务信息的情况下,基于目标接口的类型和信息获取请求获取目标业务信息。Step 103: If the target business information does not exist in the target information database, obtain the target business information based on the type of the target interface and the information acquisition request.
在本申请实施例中,当确定目标信息库中不具有与信息获取请求对应的参数时,此时还需要确定目标接口的类型(即需要判断目标接口是编排接口还是普通单接口),以根据不同类型的目标接口和请求信息采取不同的请求方式来获取目标业务信息;如此,通过针对不同类型的目标接口采用特定请求方式来获取目标业务信息,可以减少信息获取请求的等待时间,从而提高获取目标业务信息的效率。In the embodiment of this application, when it is determined that the target information database does not have parameters corresponding to the information acquisition request, it is also necessary to determine the type of the target interface (that is, it is necessary to determine whether the target interface is an orchestration interface or a common single interface), so as to determine the target interface according to the Different types of target interfaces and request information use different request methods to obtain target business information; in this way, by using specific request methods for different types of target interfaces to obtain target business information, the waiting time for information acquisition requests can be reduced, thereby improving the acquisition time. Efficiency of target business information.
本申请实施例所提供的信息获取方法,当目标信息库中存在与信息获取请求中的业务参数匹配的参数时,可以直接从目标信息库中获取该参数对应的信息作为目标业务信息,而不需要从目标设备中获取目标业务信息,可以缩短获取目标业务信息的时长,且提高获取目标业务信息的效率。According to the information acquisition method provided by the embodiment of the present application, when there is a parameter matching the business parameter in the information acquisition request in the target information database, the information corresponding to the parameter can be directly obtained from the target information database as the target business information, instead of The target service information needs to be obtained from the target device, which can shorten the time for obtaining the target service information and improve the efficiency of obtaining the target service information.
基于前述实施例,本申请实施例提供一种信息获取方法,参照图2所示,该方法可以包括以下步骤:Based on the foregoing embodiments, embodiments of the present application provide an information acquisition method. Referring to Figure 2, the method may include the following steps:
步骤201、信息获取设备接收目标接口对应的信息获取请求。Step 201: The information acquisition device receives the information acquisition request corresponding to the target interface.
其中,信息获取请求中携带有用于表征待获取业务的业务参数。The information acquisition request carries service parameters used to characterize the service to be obtained.
步骤202、信息获取设备将业务参数与目标信息库中的关键字进行匹配。Step 202: The information acquisition device matches the service parameters with keywords in the target information database.
在本申请实施例中,关键字可以指的是目标信息库中的缓存键(key)的信息。其中,将信息获取请求中携带的表征待获取业务的业务参数与目标信息库中的所有关键字进行比较,以确定目标信息库中是否存在与业务参数匹配的关键字。In this embodiment of the present application, the keyword may refer to the cache key (key) information in the target information database. Among them, the business parameters representing the service to be obtained carried in the information acquisition request are compared with all keywords in the target information database to determine whether there are keywords matching the business parameters in the target information database.
需要说明的是,步骤202之后可以执行步骤203,也可以执行步骤204。It should be noted that step 203 may be performed after step 202, or step 204 may be performed.
步骤203、在存在与业务参数匹配的目标关键字的情况下,信息获取设备从目标信息库中获取与目标关键字对应的目标关键信息,得到目标业务信息。Step 203: If there is a target keyword that matches the business parameters, the information acquisition device acquires the target key information corresponding to the target keyword from the target information database to obtain the target business information.
其中,目标关键字可以指的是与业务参数匹配的关键字;目标关键信息可以指的是目标关键字对应的业务信息;在一种可行的实现方式中,目标关键信息可以是目标信息库中与业务参数匹配的缓存值(value)对应的信息。Among them, the target keywords may refer to keywords that match the business parameters; the target key information may refer to the business information corresponding to the target keywords; in a feasible implementation manner, the target key information may be in the target information database Information corresponding to the cache value (value) matching the business parameters.
在本申请实施例中,在确定目标信息库中存在与信息获取请求中的业务参数匹配的目标关键字后,可以直接将目标关键字对应的目标关键信息确定为信息获取请求对应的目标业务信息。In the embodiment of the present application, after it is determined that the target keyword matching the business parameters in the information acquisition request exists in the target information database, the target key information corresponding to the target keyword can be directly determined as the target business information corresponding to the information acquisition request. .
步骤204、在不存在与业务参数匹配的目标关键字,且目标接口的类型为目标类型的情况下,信息获取设备确定信息获取请求对应的目标请求方式。Step 204: When there is no target keyword matching the service parameter and the type of the target interface is the target type, the information acquisition device determines the target request method corresponding to the information acquisition request.
其中,目标请求方式可以包括并行请求方式和串行请求方式。Among them, the target request method can include parallel request method and serial request method.
在一种可行的实现方式中,在确定目标信息库中不存在与信息获取请求中的业务参数匹配的目标关键字,且目标接口的类型为编排接口的情况下,确定信息获取请求对应的目标请求方式为并行请求方式,或串行请求方式。In a feasible implementation, when it is determined that there is no target keyword matching the business parameters in the information acquisition request in the target information database, and the type of the target interface is an orchestration interface, determine the target corresponding to the information acquisition request. The request method is parallel request method or serial request method.
需要说明的是,在目标接口的类型为编排接口的情况下,根据各编排接口之间的否有具有前后关联关系,可以将编排接口分为三种类型的编排接口。具体的,第一种类型的编排接口为可以并行请求的编排接口,其可以采用多线程技术在同一时间向目标设备发起信息获取请求,如此,避免了所有编排接口都需要向目标设备发起串行请求;第二种类型的编排接口为只有一个与其他编排接口具有依赖关系的接口,则先单独通过依赖接口向目标设备发送信息获取请求,若该依赖接口正常响应并返回正确目标业务信息,则可以通过其他编排接口向目标设备发起获取信息请求;若该依赖接口非正常响应或返回的目标业务信息中存在异常,此时不再通过其他编排接口向目标设备发起获取信息请求,直接返回存在异常的目标业务信息;第二种类型的编排接口为有多个与其他编排接口具有依赖关系的接口,则先采用多线程技术,以并行方式向目标设备发起信息获取请求,待所有被依赖的编排接口都返回目标业务信息以后,再通过编排接口向目标设备发送信息获取请求,若被依赖接口非正常响应,则不再通过依赖接口向目标设备发送信息获取请求。It should be noted that when the type of the target interface is an orchestration interface, the orchestration interface can be divided into three types of orchestration interfaces based on whether there is a contextual relationship between the orchestration interfaces. Specifically, the first type of orchestration interface is an orchestration interface that can request in parallel. It can use multi-threading technology to initiate information acquisition requests to the target device at the same time. This avoids the need for all orchestration interfaces to initiate serial requests to the target device. Request; the second type of orchestration interface has only one interface that has a dependency relationship with other orchestration interfaces. The information acquisition request is first sent to the target device through the dependent interface alone. If the dependent interface responds normally and returns the correct target business information, then You can initiate an information acquisition request to the target device through other orchestration interfaces; if the dependent interface responds abnormally or there is an exception in the returned target business information, you will no longer initiate an information acquisition request to the target device through other orchestration interfaces, and an exception will be returned directly. target business information; the second type of orchestration interface has multiple interfaces that have dependencies on other orchestration interfaces. Multi-threading technology is first used to initiate information acquisition requests to the target device in a parallel manner. After the interfaces return the target business information, the information acquisition request is sent to the target device through the orchestration interface. If the dependent interface responds abnormally, the information acquisition request will no longer be sent to the target device through the dependent interface.
需要说明的是,步骤204中确定信息获取请求对应的目标请求方式可以通过以下方式来实现:It should be noted that determining the target request method corresponding to the information acquisition request in step 204 can be implemented in the following ways:
步骤a1、信息获取设备确定目标接口对应的通道当前的工作状态。Step a1: The information acquisition device determines the current working status of the channel corresponding to the target interface.
其中,通道当前的工作状态可以包括通道当前处于空闲状态,或通道当前处于运行状态;需要说明的是,可以通过通道对信息获取请求进行传输;在一种可行的实现方式中,通道可以指的是线程池。Among them, the current working status of the channel can include that the channel is currently in an idle state, or the channel is currently in a running state; it should be noted that the information acquisition request can be transmitted through the channel; in a feasible implementation method, the channel can refer to It's a thread pool.
在本申请实施例中,可以通过判断目标接口对应的通道是否都在执行任务来确定目标接口对应的通道当前的工作状态,若目标接口对应的通道正在执行任务,则确定目标接口对应的通道当前处于运行状态;若目标接口对应的通道没有执行任务,则确定目标接口对应的通道当前处于空闲状态。In this embodiment of the present application, the current working status of the channel corresponding to the target interface can be determined by determining whether the channels corresponding to the target interface are all executing tasks. If the channel corresponding to the target interface is executing tasks, it is determined that the current working status of the channel corresponding to the target interface is In the running state; if the channel corresponding to the target interface does not perform tasks, it is determined that the channel corresponding to the target interface is currently idle.
步骤a2、信息获取设备基于通道当前的工作状态确定目标请求方式。Step a2: The information acquisition device determines the target request method based on the current working status of the channel.
其中,目标请求方式可以指的是以特定方式发送信息获取请求的发送方式。Among them, the target request method may refer to a sending method of sending an information acquisition request in a specific manner.
在本申请实施例中,可以确定通道当前的工作状态(即确定通道当前处于空闲状态还是工作状态),以及处于空闲状态的通道数量和处于运行状态的通道数量,基于空闲状态的通道数量和处于运行状态的通道数量确定信息获取请求对应的目标请求方式。In the embodiment of the present application, the current working status of the channel (that is, determining whether the channel is currently idle or working), as well as the number of channels in the idle state and the number of channels in the running state, can be determined based on the number of channels in the idle state and the number of channels in the running state. The number of running channels determines the target request method corresponding to the information acquisition request.
步骤205、信息获取设备采用目标请求方式从目标设备中获取目标业务信息。Step 205: The information acquisition device acquires target service information from the target device using a target request method.
其中,目标设备可以指的是与信息获取设备具有通信的设备;在一种可行的实现方式中,目标设备可以指的是运营商系统所在的设备。The target device may refer to a device that communicates with the information acquisition device; in a feasible implementation manner, the target device may refer to a device where the operator's system is located.
在本申请实施例中,可以采用目标请求方式发送信息获取请求至目标设备中,之后目标设备对信息获取请求进行解析得到目标业务信息,并发送目标业务信息至信息获取设备,即信息获取设备获取到目标业务信息。需要说明的是,本实施例中与其它实施例中相同步骤和相同内容的说明,可以参照其它实施例中的描述,此处不再赘述。In the embodiment of this application, the target request method can be used to send the information acquisition request to the target device. Then the target device parses the information acquisition request to obtain the target business information, and sends the target business information to the information acquisition device, that is, the information acquisition device obtains to target business information. It should be noted that for descriptions of the same steps and content in this embodiment as in other embodiments, reference may be made to the descriptions in other embodiments, and will not be described again here.
本申请实施例所提供的信息获取方法,当目标信息库中存在与信息获取请求中的业务参数匹配的参数时,可以直接从目标信息库中获取该参数对应的信息作为目标业务信息,而不需要从目标设备中获取目标业务信息,可以缩短获取目标业务信息的时长,且提高获取目标业务信息的效率。According to the information acquisition method provided by the embodiment of the present application, when there is a parameter matching the business parameter in the information acquisition request in the target information database, the information corresponding to the parameter can be directly obtained from the target information database as the target business information, instead of The target service information needs to be obtained from the target device, which can shorten the time for obtaining the target service information and improve the efficiency of obtaining the target service information.
基于前述实施例,本申请实施例提供一种信息获取方法,参照图3所示,该方法包括以下步骤:Based on the foregoing embodiments, embodiments of the present application provide an information acquisition method. Referring to Figure 3, the method includes the following steps:
步骤301、信息获取设备接收目标接口对应的信息获取请求。Step 301: The information acquisition device receives the information acquisition request corresponding to the target interface.
其中,信息获取请求中携带有用于表征待获取业务的业务参数。The information acquisition request carries service parameters used to characterize the service to be acquired.
步骤302、信息获取设备将业务参数与目标信息库中的关键字进行匹配。Step 302: The information acquisition device matches the service parameters with keywords in the target information database.
需要说明的是,步骤302之后可以执行步骤303或者步骤304。It should be noted that step 303 or step 304 may be executed after step 302.
步骤303、在存在与业务参数匹配的目标关键字的情况下,信息获取设备从目标信息库中获取与目标关键字对应的目标关键信息,得到目标业务信息。Step 303: If there is a target keyword that matches the business parameters, the information acquisition device acquires the target key information corresponding to the target keyword from the target information database to obtain the target business information.
步骤304、在不存在与业务参数匹配的目标关键字,且目标接口的类型为目标类型的情况下,信息获取设备确定目标接口对应的通道当前的工作状态。Step 304: If there is no target keyword matching the service parameter and the type of the target interface is the target type, the information acquisition device determines the current working status of the channel corresponding to the target interface.
需要说明的是,步骤304之后可以执行步骤305~306,或者,步骤304之后也可以执行步骤307~309,或者,步骤304之后也可以执行步骤310~312。It should be noted that steps 305-306 may be executed after step 304, or steps 307-309 may be executed after step 304, or steps 310-312 may be executed after step 304.
步骤305、在当前的工作状态表征通道中存在至少两个第一目标通道处于空闲状态的情况下,信息获取设备确定目标请求方式为并行请求方式。Step 305: When there are at least two first target channels in the idle state in the current working status representation channel, the information acquisition device determines that the target request mode is the parallel request mode.
其中,第一目标通道可以指的是当前处于空闲状态的两个通道;空闲状态可以指的是当前通道为执行任何任务。Among them, the first target channel may refer to the two channels currently in the idle state; the idle state may refer to the current channel not performing any tasks.
在本申请实施例中,当信息获取设备监测到所有通道中存在两个处于空闲状态的第一目标通道时,或者信息获取设备监测到所有通道中存在两个以上处于空闲状态的第一目标通道时,确定该种情况下的目标请求方式为并行请求方式。In the embodiment of the present application, when the information acquisition device detects that there are two first target channels in an idle state among all channels, or the information acquisition device detects that there are more than two first target channels in an idle state among all channels. When, it is determined that the target request method in this case is the parallel request method.
步骤306、信息获取设备采用并行请求方式通过至少两个第一目标通道发送信息获取请求至目标设备中,以获取目标业务信息。Step 306: The information acquisition device uses a parallel request method to send an information acquisition request to the target device through at least two first target channels to obtain the target service information.
在本申请实施例中,在通道中至少存在两个第一目标通道处于空闲状态的情况下,可以采用并行请求方式发送信息获取请求至目标设备中,目标设备对信息获取请求进行解析得到目标业务信息,并发送目标业务信息至信息获取设备,即信息获取设备获取到目标业务信息;需要说明的是,可以采用并行请求方式中的异步并行请求方式通过至少两个第一目标通道发送信息获取请求至目标设备中,以获取目标业务信息;如此,不仅缩减了编排接口向目标设备发送信息获取请求的时长,且提高了目标设备的处理能力。In the embodiment of the present application, when there are at least two first target channels in the channel that are idle, the information acquisition request can be sent to the target device in a parallel request manner, and the target device parses the information acquisition request to obtain the target service information, and sends the target business information to the information acquisition device, that is, the information acquisition device acquires the target business information; it should be noted that the asynchronous parallel request method in the parallel request method can be used to send the information acquisition request through at least two first target channels. to the target device to obtain the target business information; in this way, it not only reduces the time for the orchestration interface to send the information acquisition request to the target device, but also improves the processing capability of the target device.
步骤307、在当前的工作状态表征通道中存在一个第二目标通道处于空闲状态的情况下,信息获取设备确定目标请求方式为串行请求方式。Step 307: When there is a second target channel in the idle state in the current working status representation channel, the information acquisition device determines that the target request mode is the serial request mode.
其中,第二目标通道可以指的是当前处于空闲状态的一个通道。The second target channel may refer to a channel that is currently idle.
在本申请实施例中,当信息获取设备监测到所有通道中仅存在一个处于空闲状态的第二目标通道时,确定该种情况下的目标请求方式为串行请求方式。In this embodiment of the present application, when the information acquisition device detects that there is only one second target channel in an idle state among all channels, it determines that the target request mode in this case is the serial request mode.
步骤308、信息获取设备采用串行请求方式通过第二目标通道发送信息获取请求中的目标获取请求至目标设备中。Step 308: The information acquisition device uses a serial request method to send the target acquisition request in the information acquisition request to the target device through the second target channel.
在本申请实施实施例中,在通道中存在一个处于空闲状态的第二目标通道的情况下,可以采用串行请求方式通过第二目标通道发送信息获取请求至目标设备中,目标设备对信息获取请求进行解析得到目标业务信息,并发送目标业务信息至信息获取设备,即信息获取设备获取到目标业务信息。In the embodiment of the present application, when there is a second target channel in an idle state in the channel, a serial request method can be used to send an information acquisition request to the target device through the second target channel, and the target device obtains the information. The request is parsed to obtain the target business information, and the target business information is sent to the information acquisition device, that is, the information acquisition device acquires the target business information.
步骤309、信息获取设备监测通道的运行状态,并在通道中存在处于空闲状态的第三目标通道时,采用串行请求方式通过第三目标通道发送信息获取请求中除目标获取请求外的请求至目标设备,以获取目标业务信息。Step 309: The information acquisition device monitors the running status of the channel, and when there is a third target channel in an idle state in the channel, uses the serial request method to send the information acquisition request except the target acquisition request through the third target channel to Target device to obtain target business information.
其中,第三目标通道可以是第二目标通道,第三目标通道也可以是除第二目标通道外的其他通道。The third target channel may be the second target channel, and the third target channel may also be other channels except the second target channel.
在本申请实施例中,信息获取设备可以持续监测通道的运行状态,在目标接口接收到除目标获取请求外的请求的情况下,若第二目标通道已经完成发送信息获取请求中的目标获取请求至目标设备的任务时,且其他通道均处于运行状态时,可以采用串行请求方式继续通过第二目标通道发送除目标获取请求外的请求至目标设备中,目标设备对信息获取请求进行解析得到目标业务信息,并发送目标业务信息至信息获取设备,即信息获取设备获取到目标业务信息;若第二目标通道还正在执行发送信息获取请求中的目标获取请求至目标设备的任务时,且其他通道中有处于空闲状态的第三目标通道时,此时可以采用串行请求方式通过第三目标通道发送除目标获取请求外的请求至目标设备中,目标设备对信息获取请求进行解析得到目标业务信息,并发送目标业务信息至信息获取设备,即信息获取设备获取到目标业务信息。In the embodiment of this application, the information acquisition device can continuously monitor the operating status of the channel. When the target interface receives a request other than the target acquisition request, if the second target channel has completed sending the target acquisition request in the information acquisition request, When completing the task to the target device and all other channels are in running state, the serial request method can be used to continue to send requests other than the target acquisition request to the target device through the second target channel. The target device parses the information acquisition request and obtains Target business information, and send the target business information to the information acquisition device, that is, the information acquisition device acquires the target business information; if the second target channel is still executing the task of sending the target acquisition request in the information acquisition request to the target device, and other When there is an idle third target channel in the channel, you can use the serial request method to send requests other than the target acquisition request to the target device through the third target channel. The target device parses the information acquisition request to obtain the target service. information, and sends the target business information to the information acquisition device, that is, the information acquisition device acquires the target business information.
步骤310、在当前的工作状态表征通道均处于运行状态的情况下,信息获取设备确定目标请求方式为串行请求方式。Step 310: When the current working status representation channels are all in running status, the information acquisition device determines that the target request mode is the serial request mode.
其中,运行状态可以指的是通道当前正在执行某一任务。Among them, the running status may refer to the channel currently executing a certain task.
在本申请实施例中,当信息获取设备监测到所有通道均处于运行状态(即表明所有通道均正在执行任务)时,确定该种情况下的目标请求方式为串行请求方式。In the embodiment of the present application, when the information acquisition device detects that all channels are in a running state (that is, indicating that all channels are executing tasks), it is determined that the target request method in this case is the serial request method.
步骤311、信息获取设备监测通道的运行状态。Step 311: The information acquisition device monitors the operating status of the channel.
在本申请实施例中,在通道均处于运行状态的情况下,可以采用信息获取设备中的监测模块来监测所有通道的运行状态。In the embodiment of the present application, when all channels are in a running state, the monitoring module in the information acquisition device can be used to monitor the running status of all channels.
步骤312、在通道中存在处于空闲状态的第四目标通道的情况下,信息获取设备采用串行请求方式通过第四目标通道发送信息获取请求至目标设备中,以获取目标业务信息。Step 312: When there is an idle fourth target channel in the channel, the information acquisition device uses a serial request method to send an information acquisition request to the target device through the fourth target channel to obtain the target service information.
在本申请实施例中,在所有通道均处于运行状态,即没有通道可以发送信息获取请求的情况下,此时信息获取请求需要进行等待,直到信息获取设备中的监测模块监测到存在处于空闲状态的第四目标通道时,此时可以采用串行请求方式通过第四目标通道发送信息获取请求至目标设备中,目标设备对信息获取请求进行解析得到目标业务信息,并发送目标业务信息至信息获取设备,即信息获取设备获取到目标业务信息。In the embodiment of this application, when all channels are in the running state, that is, no channel can send an information acquisition request, the information acquisition request needs to wait until the monitoring module in the information acquisition device detects that there is an idle state. When the fourth target channel is used, the serial request method can be used to send an information acquisition request to the target device through the fourth target channel. The target device parses the information acquisition request to obtain the target business information, and sends the target business information to the information acquisition The device, that is, the information acquisition device obtains the target business information.
在上述图3所示的实施例的基础上,该方法还可以包括以下步骤:Based on the above embodiment shown in Figure 3, the method may also include the following steps:
步骤313、信息获取设备确定目标业务信息是否存在异常。Step 313: The information acquisition device determines whether there is an abnormality in the target business information.
在本申请实施例中,可以通过判断目标业务信息中是否存在异常堆栈信息来确定目标业务信息是否存在异常,在确定目标业务信息中存在异常堆栈信息的情况下,则确定目标业务信息存在异常;在确定目标业务信息中不存在异常堆栈信息的情况下,则确定目标业务信息不存在异常。In the embodiment of the present application, it can be determined whether the target business information is abnormal by judging whether there is abnormal stack information in the target business information. If it is determined that the abnormal stack information is present in the target business information, it is determined that the target business information is abnormal; When it is determined that there is no exception stack information in the target business information, it is determined that there is no exception in the target business information.
步骤314、信息获取设备在确定目标业务信息不存在异常的情况下,基于业务参数将目标业务信息存储至目标信息库中。Step 314: When the information acquisition device determines that there is no abnormality in the target business information, it stores the target business information into the target information database based on the business parameters.
在本申请实施实施例中,在确定目标业务信息正常的情况下,可以按照业务参数与目标业务信息之间的对应的关系,将业务参数和目标业务信息存储至目标信息库中;需要说明的是,若编排接口中有6个可以采用并行请求方式发送信息获取请求的编排接口和2个与其他编排接口具有依赖关系的编排接口时,不仅要将信息获取请求对应的目标业务信息存储至目标信息库中,还要将与其他编排接口具有依赖关系的编排接口的入参信息也存储至目标信息库中。In the embodiments of this application, when it is determined that the target business information is normal, the business parameters and the target business information can be stored in the target information database according to the corresponding relationship between the business parameters and the target business information; what needs to be explained Yes, if there are 6 orchestration interfaces that can send information acquisition requests in parallel requests and 2 orchestration interfaces that have dependencies with other orchestration interfaces, not only the target business information corresponding to the information acquisition request must be stored in the target In the information base, the input parameter information of the orchestration interface that has dependencies with other orchestration interfaces is also stored in the target information database.
在本申请实施实施例中,在确定目标业务信息存在异常的情况下,不需要对存在异常的目标业务信息进行存储;如此,可以节省Redis缓存器中的内存空间。In the embodiments of this application, when it is determined that the target business information is abnormal, there is no need to store the abnormal target business information; in this way, the memory space in the Redis cache can be saved.
在本申请的其他实施例中,参照图4所示,以目标接口为编排接口为例,当有信息获取请求通过编排接口获取目标业务信息时,可以使用信息获取请求中的业务参数在目标信息库中查找是否存在与业务参数对应的关键字,如果目标信息库中存在与业务参数对应的关键字时,获取该关键字对应的目标关键信息作为目标业务信息;如果目标信息库中不存在与业务参数对应的关键字,此时需要判断当前通道(即线程池)的工作状态,如果线程池当前处于运行状态,则说明当前线程池繁忙,此时需要降级采用for循环的方式按照接口编排顺序以串行方式向目标设备发起信息获取请求,目标设备对信息获取请求进行解析,得到信息获取请求对应的目标业务信息;如果线程池当前处于空闲状态,则利用多线程技术,采用异步并行方式向目标设备发起信息获取请求,目标设备对信息获取请求进行解析,得到信息获取请求对应的目标业务信息。接着还需要对信息获取请求对应的目标业务信息进行判断,即判断目标业务信息中是否存在异常信息,在判断目标业务信息不存在异常信息(即目标业务信息正常)的情况下,需要根据信息获取请求与目标业务信息之间的对应关系,将目标业务信息存储至目标信息库中;在在判断目标业务信息存在异常的情况下,不需要对异常的目标业务信息进行存储,仅返回异常的目标业务信息即可。In other embodiments of the present application, as shown in Figure 4, taking the target interface as the orchestration interface as an example, when there is an information acquisition request to obtain target business information through the orchestration interface, the business parameters in the information acquisition request can be used to add the target information to the target information. Search whether there is a keyword corresponding to the business parameter in the database. If there is a keyword corresponding to the business parameter in the target information database, obtain the target key information corresponding to the keyword as the target business information; if there is no keyword corresponding to the business parameter in the target information database, Keywords corresponding to business parameters. At this time, you need to determine the working status of the current channel (i.e., thread pool). If the thread pool is currently running, it means that the current thread pool is busy. At this time, you need to downgrade using a for loop in accordance with the interface arrangement sequence. Initiate an information acquisition request to the target device in a serial manner. The target device parses the information acquisition request and obtains the target business information corresponding to the information acquisition request. If the thread pool is currently idle, multi-threading technology is used to send the information to the target device in an asynchronous and parallel manner. The target device initiates an information acquisition request, and the target device parses the information acquisition request and obtains the target business information corresponding to the information acquisition request. Then it is necessary to judge the target business information corresponding to the information acquisition request, that is, to judge whether there is abnormal information in the target business information. When it is judged that there is no abnormal information in the target business information (that is, the target business information is normal), it is necessary to obtain the information based on the information. The corresponding relationship between the request and the target business information is stored in the target information database; when it is determined that the target business information is abnormal, there is no need to store the abnormal target business information, and only the abnormal target is returned Just business information.
在本申请的其他实施例中,参照图5所示,以目标接口为普通单接口为例,当有信息获取请求通过普通单接口获取目标业务信息时,可以使用信息获取请求中的业务参数在目标信息库中查找是否存在与业务参数对应的关键字,如果目标信息库中存在与业务参数对应的关键字时,获取该关键字对应的目标关键信息作为目标业务信息;如果目标信息库中不存在与业务参数对应的关键字,此时普通单接口发送信息获取请求至目标设备,目标设备对信息获取请求进行解析,得到信息获取请求对应的目标业务信息。接着还需要对信息获取请求对应的目标业务信息进行判断,即判断目标业务信息中是否存在异常信息,在判断目标业务信息不存在异常信息(即目标业务信息正常)的情况下,需要根据信息获取请求与目标业务信息之间的对应关系,将目标业务信息存储至目标信息库中;在在判断目标业务信息存在异常的情况下,不需要对异常的目标业务信息进行存储,仅返回异常的目标业务信息即可。In other embodiments of the present application, as shown in Figure 5, taking the target interface as a common single interface as an example, when there is an information acquisition request to obtain target service information through a common single interface, the service parameters in the information acquisition request can be used to Search whether there are keywords corresponding to the business parameters in the target information database. If there are keywords corresponding to the business parameters in the target information database, obtain the target key information corresponding to the keywords as the target business information; if there is no keyword in the target information database, There are keywords corresponding to the service parameters. At this time, a common single interface sends an information acquisition request to the target device. The target device parses the information acquisition request and obtains the target business information corresponding to the information acquisition request. Then it is necessary to judge the target business information corresponding to the information acquisition request, that is, to judge whether there is abnormal information in the target business information. When it is judged that there is no abnormal information in the target business information (that is, the target business information is normal), it is necessary to obtain the information based on the information. The corresponding relationship between the request and the target business information is stored in the target information database; when it is determined that the target business information is abnormal, there is no need to store the abnormal target business information, and only the abnormal target is returned Just business information.
在本申请的其他实施例中,以目标接口为编排接口,且编排接口为用户综合信息查询接口,其编排接口包括6个可并行请求的子编排接口和2个有依赖关系的子编排接口,共需要请求8个子接口。通过编排接口获取目标业务信息的实现过程为:在第一次调用编排接口时,编排接口无缓存(即没有目标业务信息),从图6(a)中可以看出,此次通过编排接口获取目标业务信息共花费23248ms;具体的,先通过一定的规则预设目标信息库,并对其进行初始化,然后判断编排接口中是否存在缓存,若不存在,则如图6(a)中的②所示,编排接口发送信息获取请求至目标设备(此时后台会判断通道的工作状态,即判断线程池的状态),在线程池处于空闲的工作状态时,编排接口异步并行向目标设备发起了6个接口请求,如图6(a)中的③所示;在确定6个异步信息获取请求均返回目标业务信息以后,则向目标设备发起剩下的2个依赖接口的调用,其中依赖接口获取目标业务信息的过程可以参照上述图5所示,如图6(a)中的④所示。需要说明的是,在所有子编排接口都获取到目标业务信息以后,还需要把所有编排接口获取到的目标业务信息缓存到目标信息库(即Redis缓存器)中;接着当重新对该编排接口发起第二次信息获取请求时,从图6(b)中可以看出,此次通过编排接口获取目标业务信息共花费6ms。具体的,编排接口首先初始化目标信息库,然后判断目标信息库中是否存在与业务参数对应的参数,从图6(b)中①、②可以看出,当判断出目标信息库(即Redis缓存器)中存在与业务参数对应的参数时,则直接从目标信息库中取出信息获取请求对应的目标业务信息,并返回给调用方。In other embodiments of this application, the target interface is the orchestration interface, and the orchestration interface is the user comprehensive information query interface. The orchestration interface includes 6 sub-arrangement interfaces that can be requested in parallel and 2 sub-arrangement interfaces with dependencies. A total of 8 sub-interfaces need to be requested. The implementation process of obtaining target business information through the orchestration interface is as follows: when the orchestration interface is called for the first time, the orchestration interface has no cache (that is, there is no target business information). As can be seen from Figure 6(a), the acquisition through the orchestration interface this time It takes a total of 23248ms to obtain the target business information; specifically, first preset the target information database through certain rules and initialize it, and then determine whether there is a cache in the orchestration interface. If not, see ② in Figure 6(a) As shown in the figure, the orchestration interface sends an information acquisition request to the target device (at this time, the background will determine the working status of the channel, that is, the status of the thread pool). When the thread pool is in an idle working status, the orchestration interface initiates an asynchronous and parallel request to the target device. 6 interface requests, as shown in ③ in Figure 6(a); after it is determined that all 6 asynchronous information acquisition requests return the target business information, the remaining 2 dependent interface calls are initiated to the target device, among which the dependent interface The process of obtaining target business information can be referred to the above-mentioned Figure 5, as shown in ④ in Figure 6(a). It should be noted that after all sub-arrangement interfaces have obtained the target business information, the target business information obtained by all orchestration interfaces needs to be cached into the target information database (i.e. Redis cache); then when the orchestration interface is re-acquired When the second information acquisition request is initiated, it can be seen from Figure 6(b) that it takes a total of 6ms to obtain the target business information through the orchestration interface. Specifically, the orchestration interface first initializes the target information database, and then determines whether there are parameters corresponding to the business parameters in the target information database. From ① and ② in Figure 6(b), it can be seen that when the target information database (i.e. Redis cache) is determined When there are parameters corresponding to the business parameters in the server), the information is directly retrieved from the target information database to obtain the target business information corresponding to the request, and returned to the caller.
需要说明的是,本实施例中与其它实施例中相同步骤和相同内容的说明,可以参照其它实施例中的描述,此处不再赘述。It should be noted that for descriptions of the same steps and content in this embodiment as in other embodiments, reference may be made to the descriptions in other embodiments, and will not be described again here.
本申请实施例所提供的信息获取方法,当目标信息库中存在与信息获取请求中的业务参数匹配的参数时,可以直接从目标信息库中获取该参数对应的信息作为目标业务信息,而不需要从目标设备中获取目标业务信息,可以缩短获取目标业务信息的时长,且提高获取目标业务信息的效率。According to the information acquisition method provided by the embodiment of the present application, when there is a parameter matching the business parameter in the information acquisition request in the target information database, the information corresponding to the parameter can be directly obtained from the target information database as the target business information, instead of The target service information needs to be obtained from the target device, which can shorten the time for obtaining the target service information and improve the efficiency of obtaining the target service information.
基于前述实施例,本申请的实施例提供一种信息获取装置,该装置可以应用于图1~3对应的实施例提供的信息获取方法中,参照图7所示,该装置4可以包括:接收单元41、获取单元42和处理单元43,其中:Based on the foregoing embodiments, embodiments of the present application provide an information acquisition device, which can be applied to the information acquisition methods provided by the embodiments corresponding to Figures 1 to 3. Referring to Figure 7, the device 4 can include: receiving Unit 41, acquisition unit 42 and processing unit 43, wherein:
接收单元41,用于接收目标接口对应的信息获取请求;其中,信息获取请求中携带有用于表征待获取业务的业务参数;The receiving unit 41 is configured to receive an information acquisition request corresponding to the target interface; wherein the information acquisition request carries service parameters used to characterize the service to be obtained;
获取单元42,用于在目标信息库中具有与信息获取请求对应的目标业务信息的情况下,基于业务参数从目标信息库中获取目标业务信息;The acquisition unit 42 is configured to acquire the target business information from the target information database based on the business parameters when the target information database has target business information corresponding to the information acquisition request;
处理单元43,用于在目标信息库中不具有目标业务信息的情况下,基于目标接口的类型和信息获取请求获取目标业务信息。The processing unit 43 is configured to obtain the target business information based on the type of the target interface and the information acquisition request when the target business information does not exist in the target information database.
在本申请实施例中,获取单元42还用于执行以下步骤:In the embodiment of this application, the acquisition unit 42 is also used to perform the following steps:
将业务参数与目标信息库中的关键字进行匹配;Match business parameters with keywords in the target information database;
在存在与业务参数匹配的目标关键字的情况下,从目标信息库中获取与目标关键字对应的目标关键信息,得到目标业务信息。When there is a target keyword that matches the business parameters, the target key information corresponding to the target keyword is obtained from the target information database to obtain the target business information.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
在不存在与业务参数匹配的目标关键字,且目标接口的类型为目标类型的情况下,确定信息获取请求对应的目标请求方式;If there is no target keyword matching the business parameters and the type of the target interface is the target type, determine the target request method corresponding to the information acquisition request;
采用目标请求方式从目标设备中获取目标业务信息。Use the target request method to obtain target business information from the target device.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
确定目标接口对应的通道当前的工作状态;Determine the current working status of the channel corresponding to the target interface;
基于通道当前的工作状态确定目标请求方式。Determine the target request method based on the current working status of the channel.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
在当前的工作状态表征通道中至少存在至少两个第一目标通道处于空闲状态的情况下,确定目标请求方式为并行请求方式。When at least two first target channels are in an idle state in the current working status representation channel, it is determined that the target request mode is a parallel request mode.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
采用并行请求方式通过至少两个第一目标通道发送信息获取请求至目标设备中,以获取目标业务信息。Using a parallel request method, an information acquisition request is sent to the target device through at least two first target channels to obtain the target service information.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
在当前的工作状态表征通道中存在一个第二目标通道处于空闲状态的情况下,确定目标请求方式为串行请求方式。When there is a second target channel in the idle state in the current working status representation channel, it is determined that the target request mode is the serial request mode.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
在通道中存在一个第二目标通道处于空闲状态的情况下,采用串行请求方式通过第二目标通道发送信息获取请求中的目标获取请求至目标设备中;When there is a second target channel in the channel that is idle, use the serial request method to send the target acquisition request in the information acquisition request to the target device through the second target channel;
监测通道的运行状态,并在通道中存在处于空闲状态的第三目标通道时,采用串行请求方式通过第三目标通道发送信息获取请求中除目标获取请求外的请求至目标设备,以获取目标业务信息。Monitor the running status of the channel, and when there is a third target channel in an idle state in the channel, use the serial request method to send the information acquisition request except the target acquisition request to the target device through the third target channel to obtain the target business information.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
在当前的工作状态表征通道均处于运行状态的情况下,确定目标请求方式为串行请求方式。When the current working status indicates that all channels are in running status, determine that the target request method is the serial request method.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
在通道均处于运行状态的情况下,监测通道的运行状态;When the channels are all in operation, monitor the operation status of the channel;
在通道中存在处于空闲状态的第四目标通道的情况下,采用串行请求方式通过第四目标通道发送信息获取请求至目标设备中,以获取目标业务信息。When there is a fourth target channel in an idle state in the channel, the serial request method is used to send an information acquisition request to the target device through the fourth target channel to obtain the target service information.
在本申请实施例中,处理单元43还用于执行以下步骤:In the embodiment of this application, the processing unit 43 is also used to perform the following steps:
确定目标业务信息是否存在异常;Determine whether there are any abnormalities in the target business information;
在确定目标业务信息不存在异常的情况下,基于业务参数将目标业务信息存储至目标信息库中。When it is determined that there is no abnormality in the target business information, the target business information is stored in the target information database based on the business parameters.
需要说明的是,本实施例中各个单元所执行的步骤的具体实现过程,可以参照图1~3对应的实施例提供的信息获取方法中的实现过程,此处不再赘述。It should be noted that, for the specific implementation process of the steps performed by each unit in this embodiment, reference can be made to the implementation process in the information acquisition method provided by the corresponding embodiments in Figures 1 to 3, which will not be described again here.
本申请实施例所提供的信息获取装置,当目标信息库中存在与信息获取请求中的业务参数匹配的参数时,可以直接从目标信息库中获取该参数对应的信息作为目标业务信息,而不需要从目标设备中获取目标业务信息,可以缩短获取目标业务信息的时长,且提高获取目标业务信息的效率。The information acquisition device provided by the embodiment of the present application, when there is a parameter matching the service parameter in the information acquisition request in the target information database, the information corresponding to the parameter can be directly obtained from the target information database as the target business information, instead of The target service information needs to be obtained from the target device, which can shorten the time for obtaining the target service information and improve the efficiency of obtaining the target service information.
基于前述实施例,本申请的实施例提供一种信息获取设备,该设备可以应用于图1~3对应的实施例提供的信息获取方法,参照图8所示,该设备5可以包括处理器51、存储器52和通信总线53;Based on the foregoing embodiments, embodiments of the present application provide an information acquisition device, which can be applied to the information acquisition methods provided by the embodiments corresponding to Figures 1 to 3. Referring to Figure 8, the device 5 can include a processor 51 , memory 52 and communication bus 53;
通信总线53用于实现处理器51和存储器52之间的通信连接;The communication bus 53 is used to realize the communication connection between the processor 51 and the memory 52;
处理器51用于执行存储器52中存储的信息获取程序,以实现以下步骤:The processor 51 is used to execute the information acquisition program stored in the memory 52 to implement the following steps:
接收目标接口对应的信息获取请求;其中,信息获取请求中携带有用于表征待获取业务的业务参数;Receive an information acquisition request corresponding to the target interface; wherein the information acquisition request carries business parameters used to characterize the service to be acquired;
在目标信息库中具有与信息获取请求对应的目标业务信息的情况下,基于业务参数从目标信息库中获取目标业务信息;If there is target business information corresponding to the information acquisition request in the target information database, obtain the target business information from the target information database based on the business parameters;
在目标信息库中不具有目标业务信息的情况下,基于目标接口的类型和信息获取请求获取目标业务信息。If the target business information does not exist in the target information database, the target business information is obtained based on the type of the target interface and the information acquisition request.
在本申请的其他实施例中,处理器51用于执行存储器52中的在目标信息库中具有与信息获取请求对应的目标业务信息的情况下,基于业务参数从目标信息库中获取目标业务信息,以实现以下步骤:In other embodiments of the present application, the processor 51 is configured to execute in the memory 52 , if there is target business information corresponding to the information acquisition request in the target information database, obtain the target business information from the target information database based on the business parameters. , to achieve the following steps:
将业务参数与目标信息库中的关键字进行匹配;Match business parameters with keywords in the target information database;
在存在与业务参数匹配的目标关键字的情况下,从目标信息库中获取与目标关键字对应的目标关键信息,得到目标业务信息。When there is a target keyword that matches the business parameters, the target key information corresponding to the target keyword is obtained from the target information database to obtain the target business information.
在本申请的其他实施例中,处理器51用于执行存储器52中的在目标信息库中不具有目标业务信息的情况下,基于目标接口的类型和信息获取请求获取目标业务信息,以实现以下步骤:In other embodiments of the present application, the processor 51 is configured to obtain the target business information based on the type of the target interface and the information acquisition request in the memory 52 when there is no target business information in the target information database, so as to achieve the following step:
在不存在与业务参数匹配的目标关键字,且目标接口的类型为目标类型的情况下,确定信息获取请求对应的目标请求方式;If there is no target keyword matching the business parameters and the type of the target interface is the target type, determine the target request method corresponding to the information acquisition request;
采用目标请求方式从目标设备中获取目标业务信息。Use the target request method to obtain target business information from the target device.
在本申请的其他实施例中,处理器51用于执行存储器52中的确定信息获取请求对应的目标请求方式,以实现以下步骤:In other embodiments of the present application, the processor 51 is used to execute the target request mode corresponding to the determined information acquisition request in the memory 52 to implement the following steps:
确定目标接口对应的通道当前的工作状态;Determine the current working status of the channel corresponding to the target interface;
基于通道当前的工作状态确定目标请求方式。Determine the target request method based on the current working status of the channel.
在本申请的其他实施例中,处理器51用于执行存储器52中的基于通道当前的工作状态确定目标请求方式,以实现以下步骤:In other embodiments of the present application, the processor 51 is used to determine the target request mode based on the current working status of the channel in the memory 52 to implement the following steps:
在当前的工作状态表征通道中至少存在至少两个第一目标通道处于空闲状态的情况下,确定目标请求方式为并行请求方式。When at least two first target channels are in an idle state in the current working status representation channel, it is determined that the target request mode is a parallel request mode.
在本申请的其他实施例中,处理器51用于执行存储器52中的采用目标请求方式从目标设备中获取目标业务信息,以实现以下步骤:In other embodiments of the present application, the processor 51 is configured to execute the acquisition of target service information from the target device in the memory 52 using a target request method to implement the following steps:
采用并行请求方式通过至少两个第一目标通道发送信息获取请求至目标设备中,以获取目标业务信息。Using a parallel request method, an information acquisition request is sent to the target device through at least two first target channels to obtain the target service information.
在本申请的其他实施例中,处理器51用于执行存储器52中的基于通道当前的工作状态确定目标请求方式,以实现以下步骤:In other embodiments of the present application, the processor 51 is used to determine the target request mode based on the current working status of the channel in the memory 52 to implement the following steps:
在当前的工作状态表征通道中存在一个第二目标通道处于空闲状态的情况下,确定目标请求方式为串行请求方式。When there is a second target channel in the idle state in the current working status representation channel, it is determined that the target request mode is the serial request mode.
在本申请的其他实施例中,处理器51用于执行存储器52中的采用目标请求方式从目标设备中获取目标业务信息,以实现以下步骤:In other embodiments of the present application, the processor 51 is configured to execute the acquisition of target service information from the target device in the memory 52 using a target request method to implement the following steps:
在通道中存在一个第二目标通道处于空闲状态的情况下,采用串行请求方式通过第二目标通道发送信息获取请求中的目标获取请求至目标设备中;When there is a second target channel in the channel that is idle, use the serial request method to send the target acquisition request in the information acquisition request to the target device through the second target channel;
监测通道的运行状态,并在通道中存在处于空闲状态的第三目标通道时,采用串行请求方式通过第三目标通道发送信息获取请求中除目标获取请求外的请求至目标设备,以获取目标业务信息。Monitor the running status of the channel, and when there is a third target channel in an idle state in the channel, use the serial request method to send the information acquisition request except the target acquisition request to the target device through the third target channel to obtain the target business information.
在本申请的其他实施例中,处理器51用于执行存储器52中的基于通道当前的工作状态确定目标请求方式,以实现以下步骤:In other embodiments of the present application, the processor 51 is used to determine the target request mode based on the current working status of the channel in the memory 52 to implement the following steps:
在当前的工作状态表征通道均处于运行状态的情况下,确定目标请求方式为串行请求方式。When the current working status indicates that all channels are in running status, determine that the target request method is the serial request method.
在本申请的其他实施例中,处理器51用于执行存储器52中的采用目标请求方式从目标设备中获取目标业务信息,以实现以下步骤:In other embodiments of the present application, the processor 51 is configured to execute the acquisition of target service information from the target device in the memory 52 using a target request method to implement the following steps:
在通道均处于运行状态的情况下,监测通道的运行状态;When the channels are all in operation, monitor the operation status of the channel;
在通道中存在处于空闲状态的第四目标通道的情况下,采用串行请求方式通过第四目标通道发送信息获取请求至目标设备中,以获取目标业务信息。When there is a fourth target channel in an idle state in the channel, the serial request method is used to send an information acquisition request to the target device through the fourth target channel to obtain the target service information.
在本申请的其他实施例中,处理器51用于执行存储器52中的采用目标请求方式从目标设备中获取目标业务信息之后,以实现以下步骤:In other embodiments of the present application, the processor 51 is configured to execute the following steps in the memory 52 after obtaining the target service information from the target device using the target request method:
确定目标业务信息是否存在异常;Determine whether there are any abnormalities in the target business information;
在确定目标业务信息不存在异常的情况下,基于业务参数将目标业务信息存储至目标信息库中。When it is determined that there is no abnormality in the target business information, the target business information is stored in the target information database based on the business parameters.
需要说明的是,本实施例中处理器所执行的步骤的具体实现过程,可以参照图1~3对应的实施例提供的信息获取方法中的实现过程,此处不再赘述。It should be noted that, for the specific implementation process of the steps executed by the processor in this embodiment, reference can be made to the implementation process in the information acquisition method provided by the corresponding embodiments in Figures 1 to 3, which will not be described again here.
本申请实施例所提供的信息获取设备,当目标信息库中存在与信息获取请求中的业务参数匹配的参数时,可以直接从目标信息库中获取该参数对应的信息作为目标业务信息,而不需要从目标设备中获取目标业务信息,可以缩短获取目标业务信息的时长,且提高获取目标业务信息的效率。The information acquisition device provided by the embodiment of the present application, when there is a parameter matching the service parameter in the information acquisition request in the target information database, the information corresponding to the parameter can be directly obtained from the target information database as the target business information, instead of The target service information needs to be obtained from the target device, which can shorten the time for obtaining the target service information and improve the efficiency of obtaining the target service information.
基于前述实施例,本申请的实施例提供一种计算机可读存储介质,该计算机可读存储介质存储有一个或者多个程序,该一个或者多个程序可被一个或者多个处理器执行,以实现图1~3对应的实施例提供的信息获取方法的步骤。Based on the foregoing embodiments, embodiments of the present application provide a computer-readable storage medium that stores one or more programs, and the one or more programs can be executed by one or more processors to Implement the steps of the information acquisition method provided by the embodiments corresponding to Figures 1 to 3.
需要说明的是,上述计算机可读存储介质可以是只读存储器(Read Only Memory,ROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性随机存取存储器(Ferromagnetic Random Access Memory,FRAM)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(Compact Disc Read-Only Memory,CD-ROM)等存储器;也可以是包括上述存储器之一或任意组合的各种电子设备,如移动电话、计算机、平板设备、个人数字助理等。It should be noted that the above computer-readable storage medium may be a read-only memory (Read Only Memory, ROM), a programmable read-only memory (Programmable Read-Only Memory, PROM), an erasable programmable read-only memory (Erasable Programmable). Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Random Access Memory (Ferromagnetic Random Access Memory (FRAM), Flash Memory) , magnetic surface memory, optical disk, or Compact Disc Read-Only Memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above memories, such as mobile phones, computers, tablets devices, personal digital assistants, and more.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所描述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.
本申请是参照本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of the present application may be directly or indirectly used in other related technical fields. , are all equally included in the patent protection scope of this application.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211020790.0A CN116800822A (en) | 2022-08-24 | 2022-08-24 | Information acquisition method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211020790.0A CN116800822A (en) | 2022-08-24 | 2022-08-24 | Information acquisition method, device, equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116800822A true CN116800822A (en) | 2023-09-22 |
Family
ID=88033451
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211020790.0A Pending CN116800822A (en) | 2022-08-24 | 2022-08-24 | Information acquisition method, device, equipment and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116800822A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101131673A (en) * | 2006-08-22 | 2008-02-27 | 中兴通讯股份有限公司 | General caching method |
| US8209701B1 (en) * | 2007-09-27 | 2012-06-26 | Emc Corporation | Task management using multiple processing threads |
| CN111125175A (en) * | 2019-12-20 | 2020-05-08 | 北京奇艺世纪科技有限公司 | Service data query method and device, storage medium and electronic device |
| CN111367690A (en) * | 2020-03-03 | 2020-07-03 | 中国工商银行股份有限公司 | Method and device for supporting combined API service calling |
| WO2021208786A1 (en) * | 2020-04-13 | 2021-10-21 | 华为技术有限公司 | Thread management method and apparatus |
| CN113535419A (en) * | 2020-04-16 | 2021-10-22 | 北京沃东天骏信息技术有限公司 | Service arranging method and device |
-
2022
- 2022-08-24 CN CN202211020790.0A patent/CN116800822A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101131673A (en) * | 2006-08-22 | 2008-02-27 | 中兴通讯股份有限公司 | General caching method |
| US8209701B1 (en) * | 2007-09-27 | 2012-06-26 | Emc Corporation | Task management using multiple processing threads |
| CN111125175A (en) * | 2019-12-20 | 2020-05-08 | 北京奇艺世纪科技有限公司 | Service data query method and device, storage medium and electronic device |
| CN111367690A (en) * | 2020-03-03 | 2020-07-03 | 中国工商银行股份有限公司 | Method and device for supporting combined API service calling |
| WO2021208786A1 (en) * | 2020-04-13 | 2021-10-21 | 华为技术有限公司 | Thread management method and apparatus |
| CN113535419A (en) * | 2020-04-16 | 2021-10-22 | 北京沃东天骏信息技术有限公司 | Service arranging method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10430332B2 (en) | System and method for performance tuning of garbage collection algorithms | |
| CN110808877A (en) | Statistical analysis method and device based on interface response duration and computer equipment | |
| CN111475705A (en) | Method, device, device and storage medium for network service monitoring based on SQL query | |
| CN113238815B (en) | Interface access control method, device, equipment and storage medium | |
| CN113157411B (en) | Celery-based reliable configurable task system and device | |
| CN111242621A (en) | Transaction data storage method, device, equipment and storage medium | |
| CN111400142B (en) | Abnormal monitoring method, device and storage medium for virtual machine | |
| CN114090268B (en) | Container management method and container management system | |
| WO2024103583A1 (en) | Method and apparatus for changed bios options to take effect, nonvolatile readable storage medium, and electronic apparatus | |
| CN107632893B (en) | Message queue processing method and device | |
| CN116800822A (en) | Information acquisition method, device, equipment and computer readable storage medium | |
| US20030162559A1 (en) | Mobile communications terminal, information transmitting system and information receiving method | |
| WO2025124273A1 (en) | Security audit method for distributed database and related device | |
| CN114238411B (en) | Methods, devices, electronic equipment and storage media for processing transaction data | |
| CN110381143A (en) | Operation, which is submitted, executes method, apparatus, equipment and computer storage medium | |
| CN117093499A (en) | Control method and device for test resources, storage medium and electronic equipment | |
| CN112579250B (en) | Middleware management method and device and repair engine system | |
| CN110543349B (en) | Application starting acceleration method and device and computer readable storage medium | |
| CN115509458A (en) | Node information acquisition method, device, equipment and storage medium | |
| CN114237929A (en) | Method for exporting big data by Web server | |
| CN114153595A (en) | Request processing method, device, equipment and computer readable storage medium | |
| CN114780267B (en) | Interface calling method, device, equipment and storage medium | |
| CN117389841B (en) | Accelerator resource monitoring method, device, cluster equipment and storage medium | |
| CN116029288B (en) | Method, terminal and storage medium for supercomputer obtaining operation application | |
| CN116010665B (en) | Task-based batch search method, device, computer equipment and medium |
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 |