Query flow configuration method and device, equipment, medium and product
Patent Information
- Application Number
- CN202211370616.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2042-11-03
AI Technical Summary
[0002]现有的网络平台中具有各类型的在线服务,各类型的在线服务在为平台用户提供服务时会产生巨量的业务数据,例如,对于网络电商平台而言,平台会为买家用户提供商铺在线服务,买家用户在使用商铺在线服务上线其所需销售的商品时,上线的商品所对应的商品信息即为商铺在线服务所对应的业务数据,各平台会通过查询收集对应的业务数据,以分析其所提供的各类型的在线服务的服务情况及服务状态等,以进行平台的运营分析,大部分平台的管理人员在查询收集业务数据时需自行开发对应的查询流程需消耗大量的时间,且大部分的业务数据查询流程不尽相同,反复开发查询流程所对应的插件浪费了不必要的劳动成本
[0062]This application provides a highly flexible query process configuration service for the platform, improving the deployment speed of business data query processes configured by developers. The query process configuration service offers developers a variety of general-purpose reusable plugins, allowing them to deploy these plugins into the business data query process and saving development costs associated with repeatedly developing general-purpose plugins. Each reusable plugin can load custom functions edited by the developer to execute specific business logic, enabling developers to modify the reusable plugins according to their deployed business data query process, making them suitable for the process. Developers can also deploy newly developed plugins into the business data query process, further customizing it. Furthermore, the execution order of each plugin within the business data query process is orchestrated using context information. The system forms a plug-in execution flow chain in the business data query process. It can be seen that, in addition to providing reusable plug-ins to the platform to save development costs wasted on repeatedly developing general plug-ins, the reusable plug-ins' business plug-ins execute corresponding business logic through user-edited custom functions. This decouples each reusable plug-in from its specific business logic, making the reusable plug-ins highly customizable. Furthermore, users can customize the execution order of each plug-in to form a business data query process that meets their specific business scenarios. This supports plug-in process orchestration and flexible plug-in expansion. If a plug-in in the business data query process needs to be updated, the user only needs to update the corresponding custom function to update the plug-in, preventing disruption to the business data query process due to updates and supporting rapid iteration of the business data query process.
Smart Images

Figure CN115686674B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data query, and in particular to a query process configuration method, as well as the corresponding apparatus, equipment, non-volatile storage medium, and computer program product. Background Technology
[0002] Existing online platforms offer various types of online services, generating massive amounts of business data as they serve platform users. For example, e-commerce platforms provide online store services to buyers. When buyers list their desired products for sale using these services, the product information corresponding to the listed products constitutes the business data for the online store service. Platforms collect this business data through queries to analyze the service status and performance of their various online services, enabling operational analysis. However, most platform administrators need to develop their own query processes to collect this data, which consumes a significant amount of time. Furthermore, most business data query processes are not identical, and repeatedly developing plugins for these processes wastes unnecessary labor costs.
[0003] In view of the problems existing in the business data query of the existing network platform, the applicant has made corresponding explorations in order to solve the problem. Summary of the Invention
[0004] The purpose of this application is to provide a query process configuration method to meet user needs, and also relates to the corresponding apparatus, device, non-volatile storage medium and computer program product.
[0005] To achieve the objectives of this application, the following technical solution is adopted:
[0006] A query process configuration method proposed for the purposes of this application includes the following steps:
[0007] Obtain query configuration information pushed by the query terminal, which includes business characteristic information, plugin configuration information, custom function information and alarm configuration information;
[0008] Call the business verification module to verify whether the business feature information conforms to the preset business verification rules;
[0009] When the business feature information meets the business verification rules, the reuse plugin identifier or new configuration plugin contained in the plugin configuration information is obtained. Based on the context information contained in the plugin configuration information, the reuse plugin corresponding to the reuse plugin identifier or the new configuration plugin is chained together to generate the corresponding plugin execution flow chain.
[0010] Based on the custom function information, the plugin execution process chain is executed, one or more search engines are called to query the target business data stored in the corresponding database, and query result information containing each of the target business data is generated. In addition, one or more alarm modules are configured according to the alarm configuration information to call the alarm modules to monitor the execution process of the plugin execution process chain.
[0011] In a further embodiment, the step of obtaining the query configuration information pushed by the query terminal includes the following steps:
[0012] Obtain the platform business feature code and one or more detailed business feature codes from the business feature information editing control in the query process configuration page, and encapsulate the platform business feature code and each of the detailed business feature codes into business feature information;
[0013] Obtain the reuse plugin identifier or the newly configured new plugin corresponding to the reuse plugin selected in the plugin configuration control in the query process configuration page, and obtain the corresponding context information. Encapsulate the reuse plugin identifier, the newly configured plugin and the context information into plugin configuration information.
[0014] Retrieve information about custom functions edited by the function editing control in the query process configuration page;
[0015] Determine one or more alarm modules selected by the alarm configuration control in the query process configuration page, obtain the alarm module configuration information corresponding to each alarm module, and encapsulate the alarm module configuration information to generate alarm configuration information.
[0016] In a further embodiment, the step of calling the business verification module to verify whether the business feature information conforms to the preset business verification rules includes the following steps:
[0017] The obtained business feature information includes a platform business feature code and one or more detailed business feature codes;
[0018] Query whether the platform business feature code exists in the platform business feature code library. If it exists, obtain the detailed business feature code library corresponding to the platform business feature code.
[0019] The system checks whether each of the detailed business feature codes exists in the detailed business feature code library. If it does, the business feature information passes the business verification.
[0020] In a further embodiment, the step of obtaining the reused plugin identifier or the new configuration plugin contained in the plugin configuration information, and generating a corresponding plugin execution flow chain by concatenating the reused plugin identifier corresponding to the reused plugin identifier or the new configuration plugin based on the context information contained in the plugin configuration information, includes the following steps:
[0021] Obtain one or more reuse plugin identifiers contained in the plugin configuration information, and query the reuse plugins in the reuse plugin pool that correspond to each of the reuse query identifiers;
[0022] Retrieve the new configuration plugin contained in the plugin configuration information;
[0023] Based on the order of each plugin call identifier contained in the context information, the reused plugins or newly configured plugins are ordered sequentially to generate a plugin execution flow chain that sequentially connects the reused plugins or newly configured plugins.
[0024] In a further embodiment, the step of executing the plugin execution flow chain based on the custom function information, calling one or more search engines to query the target business data stored in the corresponding database, and generating query result information containing each of the target business data includes the following steps:
[0025] Identify the plugins corresponding to multiple function fields in the custom function information, and load each function field into the corresponding plugin in the plugin execution flow chain;
[0026] According to the order of each plugin in the plugin execution flow chain, each plugin is executed in sequence, wherein the plugin execution flow chain includes a data retrieval plugin and a result assembly plugin;
[0027] When the currently executing plugin is the data retrieval plugin, it will call one or more corresponding search engines to retrieve target business data from the corresponding database based on the function fields embedded in the data retrieval plugin.
[0028] The execution result assembly plugin encapsulates the result data containing the target business data and generates corresponding query result information.
[0029] In a further embodiment, the step of configuring one or more alarm modules according to the alarm configuration information to call the alarm modules to monitor the execution process of the plugin execution flow chain includes any one or more of the following steps:
[0030] The execution indicator reporting and alarm module obtains the execution indicators of each plugin in the plugin execution process chain, and encapsulates each execution indicator to generate indicator reporting information;
[0031] The execution rate limiting monitoring and alarm module listens to the business data acquisition traffic of the plugin execution process chain. When the business data acquisition traffic exceeds the traffic threshold configured in the alarm configuration information, it controls the amount of new business data acquired by the plugin execution process chain.
[0032] A query process configuration apparatus proposed for the purposes of this application includes:
[0033] The query configuration acquisition module is used to acquire query configuration information pushed by the query client. The query configuration information includes business feature information, plugin configuration information, custom function information, and alarm configuration information.
[0034] The business feature verification module is used to call the business verification module to verify whether the business feature information conforms to the preset business verification rules.
[0035] The execution flow generation module is used to obtain the reused plugin identifier or the new configuration plugin contained in the plugin configuration information when the business feature information meets the business verification rules, and generate a corresponding plugin execution flow chain based on the context information contained in the plugin configuration information by concatenating the reused plugin corresponding to the reused plugin identifier or the new configuration plugin.
[0036] The query process execution module is used to execute the plugin execution process chain based on the custom function information, call one or more search engines to query the target business data stored in the corresponding database, generate query result information containing each of the target business data, and configure one or more alarm modules according to the alarm configuration information to call the alarm modules to monitor the execution process of the plugin execution process chain.
[0037] In a further embodiment, the query configuration acquisition module includes:
[0038] The business feature generation submodule is used to obtain the platform business feature code and one or more detailed business feature codes from the business feature information editing control in the query process configuration page, and encapsulate the platform business feature code and each of the detailed business feature codes into business feature information.
[0039] The plugin configuration generation submodule is used to obtain the reusable plugin identifier or the newly configured new configuration plugin corresponding to the reusable plugin selected in the plugin configuration control in the query process configuration page, and to obtain the corresponding context information, and to encapsulate the reusable plugin identifier, the newly configured plugin and the context information into plugin configuration information.
[0040] The custom function generation submodule is used to obtain information about custom functions edited by the function editing control in the query process configuration page;
[0041] The alarm configuration generation submodule is used to determine one or more alarm modules selected by the alarm configuration control in the query process configuration page, obtain the alarm module configuration information corresponding to each alarm module, and encapsulate the alarm module configuration information to generate alarm configuration information.
[0042] In a further embodiment, the business feature verification module includes:
[0043] The feature code acquisition submodule is used to acquire the platform business feature code and one or more detailed business feature codes contained in the business feature information.
[0044] The platform business query submodule is used to query whether the platform business feature code exists in the platform business feature code library. If it exists, the detailed feature code library corresponding to the platform business feature code is obtained.
[0045] The detailed business query submodule is used to query whether each detailed business feature code exists in the detailed business feature code library. If it exists, the business feature information passes the business verification.
[0046] In a further embodiment, the execution flow generation module includes:
[0047] The reuse plugin acquisition submodule is used to acquire one or more reuse plugin identifiers contained in the plugin configuration information and query the reuse plugins in the reuse plugin pool that correspond to each of the reuse query identifiers.
[0048] The new configuration plugin acquisition submodule is used to acquire the new configuration plugins contained in the plugin configuration information.
[0049] The plugin execution chain generation submodule is used to sort the reusable plugins or newly configured plugins in order based on the order of the plugin call identifiers contained in the context information, so as to generate a plugin execution flow chain that sequentially connects the reusable plugins or newly configured plugins.
[0050] In a further embodiment, the query process execution module includes:
[0051] The function field embedding submodule is used to determine the plugins corresponding to multiple function fields in the custom function information, and load each function field into the corresponding plugin in the plugin execution flow chain;
[0052] The plugin execution submodule is used to execute each plugin in sequence according to the order of each plugin in the plugin execution process chain, wherein the plugin execution process chain includes a data retrieval plugin and a result assembly plugin.
[0053] The business data acquisition submodule is used to call one or more corresponding search engines to retrieve target business data from the corresponding database based on the function fields embedded in the data retrieval plugin when the currently executing plugin is the data retrieval plugin.
[0054] The query result generation submodule is used to encapsulate the result data containing the target business data through the execution result assembly plugin, and generate the corresponding query result information.
[0055] In a preferred embodiment, the query process execution module further includes:
[0056] The indicator reporting submodule is used to execute the indicator reporting alarm module, obtain the execution indicators of each plugin in the plugin execution process chain, and encapsulate each execution indicator to generate indicator reporting information;
[0057] The rate limiting and degradation submodule is used to execute the rate limiting monitoring and alarm module. It listens to the business data acquisition traffic of the plugin execution process chain. When the business data acquisition traffic exceeds the traffic threshold configured in the alarm configuration information, it controls the amount of new business data acquired by the plugin execution process chain.
[0058] To address the aforementioned technical problems, this application also provides a computer device, including a memory and a processor. The memory stores computer-readable instructions, which, when executed by the processor, cause the processor to perform the steps of the query process configuration method described above.
[0059] To address the aforementioned technical problems, this application also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the query process configuration method described above.
[0060] To address the aforementioned technical problems, this application also provides a computer program product, including a computer program and computer instructions. When the computer program and computer instructions are executed by a processor, the processor performs the steps of the query process configuration method described above.
[0061] Compared with existing technologies, the advantages of this application are as follows:
[0062] This application provides a highly flexible query process configuration service for the platform, improving the deployment speed of business data query processes configured by developers. The query process configuration service offers developers a variety of general-purpose reusable plugins, allowing them to deploy these plugins into the business data query process and saving development costs associated with repeatedly developing general-purpose plugins. Each reusable plugin can load custom functions edited by the developer to execute specific business logic, enabling developers to modify the reusable plugins according to their deployed business data query process, making them suitable for the process. Developers can also deploy newly developed plugins into the business data query process, further customizing it. Furthermore, the execution order of each plugin within the business data query process is orchestrated using context information. The system forms a plug-in execution flow chain in the business data query process. It can be seen that, in addition to providing reusable plug-ins to the platform to save development costs wasted on repeatedly developing general plug-ins, the reusable plug-ins' business plug-ins execute corresponding business logic through user-edited custom functions. This decouples each reusable plug-in from its specific business logic, making the reusable plug-ins highly customizable. Furthermore, users can customize the execution order of each plug-in to form a business data query process that meets their specific business scenarios. This supports plug-in process orchestration and flexible plug-in expansion. If a plug-in in the business data query process needs to be updated, the user only needs to update the corresponding custom function to update the plug-in, preventing disruption to the business data query process due to updates and supporting rapid iteration of the business data query process.
[0063] Secondly, when executing plugins in the chain based on user-defined functions, this application can call the corresponding alarm module according to the alarm configuration edited by the user, and report the execution indicators and flow control of each plugin to fully ensure the stability of the business data query process. Attached Figure Description
[0064] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0065] Figure 1 A typical network deployment architecture diagram related to the implementation of the technical solution of this application;
[0066] Figure 2 A flowchart illustrating a typical embodiment of the query process configuration method of this application;
[0067] Figure 3 This is a flowchart illustrating the specific implementation method for editing push query configuration information in this application;
[0068] Figure 4This is a flowchart illustrating the specific implementation method for verifying whether business feature information conforms to the business verification rules in this application.
[0069] Figure 5 This is a flowchart illustrating a specific implementation method for generating a plugin execution flow chain based on plugin configuration information in this application.
[0070] Figure 6 This is a flowchart illustrating a specific implementation of the plugin execution process chain based on the custom function information in this application.
[0071] Figure 7 This is a flowchart illustrating the specific implementation of the execution process of the alarm module monitoring plugin execution flow chain in this application;
[0072] Figure 8 A schematic block diagram of a typical embodiment of the query process configuration device for this application;
[0073] Figure 9 This is a basic structural block diagram of a computer device according to an embodiment of this application. Detailed Implementation
[0074] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0075] Those skilled in the art will understand that, unless explicitly stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application’s specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0076] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0077] Those skilled in the art will understand that the terms "client," "terminal," and "terminal device" as used herein include both devices that receive wireless signals, devices that only possess wireless signal receiver capabilities without transmission capabilities, and devices with receiving and transmitting hardware, devices that have receiving and transmitting hardware capable of bidirectional communication over a bidirectional communication link. Such devices may include: cellular or other communication devices such as personal computers or tablets, having single-line displays, multi-line displays, or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service) that can combine voice, data processing, fax, and / or data communication capabilities; PDA (Personal Digital Assistant) that may include a radio frequency receiver, pager, internet / intranet access, web browser, notepad, calendar, and / or GPS (Global Positioning System) receiver; and traditional laptops and / or handheld computers or other devices that have and / or include radio frequency receivers. As used herein, "client," "terminal," and "terminal device" can be portable, transportable, installed in a means of transportation (air, sea, and / or land), or suitable and / or configured to operate locally and / or in a distributed manner, operating in any other location on Earth and / or in space. "Client," "terminal," and "terminal device" as used herein can also be a communication terminal, an internet access terminal, or a music / video playback terminal, such as a PDA, a MID (Mobile Internet Device), and / or a mobile phone with music / video playback capabilities, or a smart TV, set-top box, etc.
[0078] The hardware referred to by the names "server," "client," and "work node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann architecture, such as a central processing unit (including an arithmetic logic unit and a control unit), memory, input devices, and output devices. The computer program is stored in its memory, and the central processing unit loads the program stored in the secondary storage into the main memory to run it, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.
[0079] It should be noted that the concept of "server" used in this application can also be extended to the case of server clusters. Based on the network deployment principles understood by those skilled in the art, the servers should be logically divided. Physically, these servers can be independent of each other but accessible through interfaces, or they can be integrated into a single physical computer or a computer cluster. Those skilled in the art should understand this flexibility and should not use it to constrain the implementation of the network deployment method in this application.
[0080] Please see Figure 1 The hardware infrastructure required for implementing the technical solutions of this application can be deployed according to the architecture shown in the figure. The server 80 mentioned in this application is deployed in the cloud and acts as an online server. It can further connect to relevant data servers and other servers providing related support, thereby forming a logically related service cluster to provide services to relevant terminal devices such as the smartphone 81 and personal computer 82 shown in the figure, or third-party servers (not shown). Both the smartphone and personal computer can access the Internet through known network access methods and establish a data communication link with the cloud server 80 to run terminal applications related to the services provided by the server.
[0081] For servers, the application is usually built as a service process, with corresponding program interfaces exposed for remote calls by applications running on various terminal devices. The relevant technical solutions in this application that are suitable for running on servers can be implemented in servers in this way.
[0082] The application mentioned refers to an application running on a server or terminal device. This application implements the relevant technical solutions of this application in a programmed manner. Its program code can be stored in a non-volatile storage medium that can be recognized by a computer in the form of computer-executable instructions, and is loaded into memory by the central processing unit for execution. The relevant device of this application is constructed by the operation of the application on the computer.
[0083] For servers, the application is usually built as a service process, with corresponding program interfaces exposed for remote calls by applications running on various terminal devices. The relevant technical solutions in this application that are suitable for running on servers can be implemented in servers in this way.
[0084] Those skilled in the art will understand that although the various methods in this application are described based on the same concept and thus present commonality among them, they can be performed independently unless otherwise specified. Similarly, the various embodiments disclosed in this application are all based on the same inventive concept; therefore, concepts expressed in the same way, as well as concepts that are appropriately changed for convenience but are expressed differently, should be understood equivalently.
[0085] Please see Figure 2 A query process configuration method according to this application, in a typical embodiment, includes the following steps:
[0086] Step S11: Obtain the query configuration information pushed by the query terminal. The query configuration information includes business characteristic information, plugin configuration information, custom function information, and alarm configuration information.
[0087] The query configuration information is typically pushed from the management terminal of the development user on the platform to the server. The server provides a service interface to the management terminal, enabling the management terminal to obtain the corresponding query process configuration information for reusable plugins, search engines, and alarm modules within the query process configuration service. The server also provides an extension plugin interface to the management terminal, allowing the management terminal to configure and deploy newly developed configuration plugins. Furthermore, the server provides an extension function interface to the management terminal, enabling the management terminal to configure and deploy its custom functions. These service interfaces, extension plugin interfaces, and extension function interfaces are generally deployed at the application layer for centralized management of the interfaces provided to the management terminal for configuring the query configuration information.
[0088] Specifically, the server typically provides a query process configuration page to the management terminal, allowing the management terminal to configure the query configuration information through this page. This query process configuration page is generally built upon the service interfaces, extension plugin interfaces, and extension function interfaces deployed in the application layer. Specifically, the management terminal obtains the platform business feature code and one or more detailed business feature codes from the business feature information editing control on the query process configuration page, encapsulates the platform business feature code and each of the detailed business feature codes into business feature information, and obtains the reuse plugin identifier corresponding to the selected reuse plugin or the newly configured new configuration plugin from the plugin configuration control on the query process configuration page. Furthermore, the system obtains the corresponding context information, encapsulates the reusable plugin identifier, the new configuration plugin, and the context information into plugin configuration information; obtains the custom function information edited by the function editing control in the query process configuration page; determines one or more alarm modules selected by the alarm configuration control in the query process configuration page, obtains the alarm module configuration information corresponding to each alarm module, encapsulates each alarm module configuration information to generate alarm configuration information, and then encapsulates the business feature information, plugin configuration information, custom function information, and alarm configuration information into the query configuration information and pushes it to the server so that the server can configure the corresponding business data query process according to the query configuration information.
[0089] Step S12: Invoke the business verification module to verify whether the business feature information conforms to the preset business verification rules.
[0090] The business feature information includes a platform business feature code and one or more detailed business feature codes set by the management terminal. For example, when the platform business feature code is a platform business feature code for querying product business data in an online e-commerce platform, the business feature information to which the platform business feature code belongs will include one or more detailed business feature codes for obtaining specific product categories or attributes, one or more detailed business feature codes for obtaining specific e-commerce stores, or one or more detailed business feature codes for obtaining business data of products sold in a specific region. The management terminal can customize and edit the platform business feature code and detailed business feature codes included in the business feature information to set the business scenarios corresponding to the configured business data query process and the business data to be queried and obtained.
[0091] When verifying the platform business feature code contained in the business feature information, the business verification module generally verifies whether the platform business feature code has been set and whether the business feature information contains the platform business feature code. This is to remind the developer user that they have not set the platform business feature code corresponding to their configured business data query process, so that the developer user can query their configured business data query process through the platform business feature code they set.
[0092] In one embodiment, the business verification module verifies whether the platform business feature code contained in the business feature information is a preset platform business feature code in the platform. The platform can store preset platform business feature codes to facilitate the management of various types of business data query processes in the platform. Specifically, the business verification module has a corresponding platform business feature code library, which stores multiple preset platform business feature codes. When verifying the platform business feature code contained in the business feature information, the module checks whether the platform business feature code exists in the platform business feature code library. If it exists, the platform business feature code passes the business verification. If it does not exist, the module pushes a platform business feature code non-existent message to the management terminal to prompt the development user on the management terminal.
[0093] In one embodiment, the business verification module verifies whether the format of the platform business feature code contained in the business feature information conforms to the platform's preset platform business feature code format rules, so that the platform can manage the platform business feature codes corresponding to each business data query process. If it conforms, the platform business feature code passes the business verification; if it does not conform, the platform business feature code format error information will be pushed to the management terminal to prompt the development user on the management terminal.
[0094] Since the detailed business feature codes are generally associated with the types of business data on the platform, when verifying the detailed business feature codes contained in the business feature information, the system will query the detailed business feature code library corresponding to the types of business data in the storage platform to see if one or more detailed business feature codes contained in the business feature information exist in the detailed business feature code library. If all of them exist, then each detailed business feature code contained in the business feature information passes the business verification. If any of the detailed business feature codes does not exist, then the business verification fails.
[0095] In one embodiment, when the business information feature code contained in the business feature information is data that must be set for setting up a business data query process, the system will verify whether the platform business feature code in the business feature information has a corresponding business information feature code. By obtaining the business detailed feature code library corresponding to the platform business feature code, the system will verify whether one or more business detailed feature codes contained in the business feature information exist in the business detailed feature code library. That is, different platform business feature codes have corresponding business information feature code libraries, so as to perform platform business feature code correspondence verification on one or more business detailed feature codes contained in the business feature information.
[0096] Step S13: When the business feature information meets the business verification rules, obtain the reuse plugin identifier or new configuration plugin contained in the plugin configuration information. Based on the context information contained in the plugin configuration information, concatenate the reuse plugin corresponding to the reuse plugin identifier or the new configuration plugin to generate a corresponding plugin execution flow chain.
[0097] The plugin configuration information includes a reused plugin identifier or a newly configured plugin, and includes the context information to characterize the relationship between each plugin in the plugin execution flow chain.
[0098] The reusable plugin identifier is used to characterize the reusable plugins called by the management end in the business data query process. That is, the reusable plugins used in the plugin execution process chain generated by the business data query process. The reusable plugins refer to the plugins already developed in the platform. Each of the reusable plugins can be reused by the management end to save the development cost consumed by repeatedly developing general plugins. The reusable plugins generally include data retrieval plugins for recalling business data, data sorting plugins for sorting business data, data completion plugins for completing business data, and result assembly plugins for assembling business data to generate query results, etc., which are common plugins usually used in the data query process. Each of the reusable plugins is generally stored in the reusable plugin pool along with its corresponding reusable plugin identifier, so that the server can obtain the target reusable plugin corresponding to the reusable plugin identifier from the reusable plugin pool according to the reusable plugin identifier contained in the plugin configuration information.
[0099] The newly configured plugins generally refer to plugins newly developed by the management side for the business data query process. By opening the extended plugin interface to the management side, the server enables the management side to encapsulate its newly developed configuration plugins into the plugin configuration information, so that the server can deploy the new configuration plugins to the business data query process.
[0100] The context information is used to characterize the execution order of the reused plugin or the newly configured plugin in the business data query process, so as to sort the reused plugin or the newly configured plugin according to the context information to generate the corresponding plugin execution flow chain. Each reused plugin or the newly configured plugin has a corresponding plugin identifier. The context information stores the order of each plugin identifier. Specifically, the server sorts each reused plugin or the newly configured plugin in order based on the order of each plugin call identifier contained in the context information, so as to generate the plugin execution flow chain of each reused plugin or the newly configured plugin in sequence.
[0101] Step S14: Based on the custom function information, execute the plugin execution process chain, call one or more search engines to query the target business data stored in the corresponding database, generate query result information containing each of the target business data, and configure one or more alarm modules according to the alarm configuration information to call the alarm modules to monitor the execution process of the plugin execution process chain.
[0102] The custom function information is used to control the execution of each reusable plugin or newly configured plugin in the plugin execution flow chain, or to execute the corresponding business logic when the plugin execution flow chain is reached. Specifically, the custom function information contains multiple function fields, each of which has a plugin interface representing its corresponding plugin. These function fields are loaded into the reusable plugin or newly configured plugin corresponding to its plugin interface to control the plugin execution logic of the corresponding reusable plugin or newly configured plugin. For example, when the plugin interface of the function field corresponds to the data retrieval plugin, the function field will be loaded into the data retrieval plugin to control the data retrieval... The plugin invokes one or more search engines to query and retrieve the target business data stored in the corresponding database. For example, the function field can be the search field corresponding to a certain business data and the database identifier of the database it is located in, and represent the search engine identifier or search engine interface of the search engine to be invoked, so as to invoke the search engine to query the corresponding business data from the corresponding database for business data retrieval; or, when the search field is the business data retrieved by the data retrieval module for logical calculation, such as when the retrieved business data is the price of a commodity, simple logical operations can be performed through the function field, without the need to develop new plugins for deployment to complete simple logical operations and waste computing resources.
[0103] The types of search engines mentioned generally include SQL syntax parsing service search engines, algorithm ranking service search engines, algorithm query word processing service search engines, or remote call service search engines.
[0104] Taking the plugin execution flow chain with the plugin sorting order as the data retrieval plugin, the data sorting plugin, the data completion plugin, and the result assembly plugin as an example, when executing the plugin execution flow chain, the plugin corresponding to each function field in the custom function information will be determined, and these function fields will be loaded into the data retrieval plugin, the data sorting plugin, the data completion plugin, or the result assembly plugin. After loading each function field, the data retrieval plugin will be run first. Through the function fields loaded in the data retrieval plugin, one or more corresponding search engines will be called to retrieve the corresponding target business data from one or more corresponding databases. After the target business data is retrieved through the data retrieval plugin, this target business data will be loaded into the data sorting plugin, and data sorting will be performed using this target business data. For example, when the target business data is product information, the data can be sorted according to the product price contained in the product information. After the data sorting of each target business data is completed, the target business data is loaded into the data completion plugin to complete each target business data. For example, when the target business data is product information, the product order information or product store information of the product information can be completed through the data completion plugin. After each target business data is completed through the data completion plugin, the result assembly plugin is executed to encapsulate the result data containing the target business data and generate corresponding query result information. The result data may contain completion business data for the target business data, and the target business data contained in the query result information will be sorted according to the sorting result of the data sorting plugin.
[0105] When executing the plugin execution process chain to query business data and generate corresponding query results, it is also necessary to monitor the plugin execution process chain and the corresponding business data query service with alarms to ensure the stable execution of the business data query process. Specifically, the server configures one or more alarm modules according to the alarm configuration information to call the alarm modules to monitor the execution process of the plugin execution process chain. For example, when the alarm module configured in the alarm configuration information is the indicator reporting alarm module, the execution indicators of each plugin in the plugin execution process chain will be obtained by executing the indicator reporting alarm module, and the results will be encapsulated. The system executes metrics to generate metric reporting information and pushes this information to the management terminal. The management terminal then analyzes the metric reporting information to determine the execution status of each plugin in the plugin execution process chain. Alternatively, when the alarm module configured in the alarm configuration information is a rate limiting monitoring alarm module, the system will execute the rate limiting monitoring alarm module to monitor the business data acquisition traffic of the plugin execution process chain. When the business data acquisition traffic exceeds the traffic threshold configured in the alarm configuration information, the system will control the amount of new business data acquired by the plugin execution process chain to prevent the server from crashing due to the concurrent processing of massive amounts of data.
[0106] As can be seen from the typical embodiments of this method, it provides the platform with a highly flexible query process configuration service to improve the deployment speed of business data query processes configured by developers on the platform. The query process configuration service provides developers with a variety of general-purpose reusable plugins, allowing them to deploy these plugins into the business data query process and saving the development costs associated with repeatedly developing general-purpose plugins. Furthermore, each reusable plugin can load custom functions edited by the developer to execute specific business logic, enabling developers to modify the reusable plugins according to their deployed business data query process, making them suitable for the process. Developers can also deploy newly developed plugins into the business data query process to further customize it, and the plugins within the business data query process are orchestrated using context information. The execution order forms a plug-in execution flow chain in the business data query process. It can be seen that, in addition to providing reusable plug-ins to the platform to save development costs wasted on repeatedly developing general plug-ins, the business plug-ins of the reusable plug-ins combine with user-edited custom functions to execute corresponding business logic, decoupling each reusable plug-in from its specific business logic. This makes the reusable plug-ins highly customizable, and users can customize the execution order of each plug-in to form a business data query process that meets their needs. It supports plug-in process orchestration and flexible plug-in expansion. Furthermore, if a plug-in in the business data query process needs to be updated, the user only needs to update the corresponding custom function to update the plug-in, preventing disruption of the business data query process due to updates and supporting rapid iteration of the business data query process.
[0107] Secondly, when executing plugins in the chain based on user-defined functions, this method can call the corresponding alarm module according to the alarm configuration edited by the user, and report the execution indicators and flow control of each plugin to fully ensure the stability of the business data query process.
[0108] The above typical embodiments and their variations fully disclose the implementation scheme of the query process configuration method of this application. However, various variations of the method can still be derived by changing and expanding some technical means. Other embodiments are briefly described below:
[0109] In one embodiment, please refer to Figure 3 The step of obtaining the query configuration information pushed by the query terminal includes the following steps:
[0110] Step S111: Obtain the platform business feature code and one or more detailed business feature codes from the business feature information editing control in the query process configuration page, and encapsulate the platform business feature code and each of the detailed business feature codes into business feature information:
[0111] The query process configuration page is displayed in the graphical user interface of the management terminal. Developers on the management terminal can configure the business feature information, plugin configuration information, custom function information and alarm configuration information through the query process configuration page, and encapsulate these information into the query configuration information and push it to the server to drive the server to alarm the corresponding business data query process configured by the query configuration information.
[0112] The aforementioned business feature information editing control is used to edit the platform business feature code and detailed business feature code. The detailed business feature editing control is displayed on the query process configuration page. After the development on the management end completes the platform business feature code and one or more business information feature codes through the business feature information editing control, the management end will obtain the platform business feature code and one or more of the business information feature codes from the business feature information editing control and encapsulate them to generate the business feature information containing the platform business feature code and one or more of the business information feature codes.
[0113] Step S112: Obtain the reuse plugin identifier or the newly configured new plugin corresponding to the reuse plugin selected in the plugin configuration control on the query process configuration page, and obtain the corresponding context information. Encapsulate the reuse plugin identifier, the newly configured plugin, and the context information into plugin configuration information:
[0114] The aforementioned plugin configuration control typically displays one or more reusable plugins existing in the query process configuration service. This allows developers on the management side to select one or more reusable plugins to edit the business data query process. Furthermore, because the query process configuration service provides an extended plugin interface to the management side, the query configuration control also includes a new configuration plugin editing control and a new configuration plugin upload control. This allows developers on the management side to deploy newly developed configuration plugins to the business data query process using these controls.
[0115] The plugin configuration control has a context information editing control, which allows developers on the management side to edit the corresponding context information and define the execution order of multiple reusable plugins or newly configured plugins in the plugin execution flow chain.
[0116] The management terminal obtains the reuse plugin identifier of the selected reuse plugin or the newly configured new plugin from the plugin configuration control, and obtains the corresponding context information. It then encapsulates the reuse plugin identifier, the newly configured plugin, and the context information into plugin configuration information.
[0117] Step S113: Obtain the information of the custom function edited by the function editing control in the query process configuration page:
[0118] The function editing control is also displayed on the query process configuration page, so that developers on the management side can edit the custom function information through the function editing control.
[0119] Step S114: Determine one or more alarm modules selected by the alarm configuration control in the query process configuration page, obtain the alarm module configuration information corresponding to each alarm module, and encapsulate the alarm module configuration information to generate alarm configuration information:
[0120] The alarm configuration control is also displayed on the query process configuration page. The alarm configuration control will display one or more alarm modules that exist in the query process configuration service, so that the development user on the management side can select the corresponding alarm module through the alarm configuration control and edit the alarm module configuration information corresponding to the selected alarm module. The management side encapsulates these alarm module configuration information into the alarm configuration information.
[0121] In this embodiment, platform developers can edit the business feature information, plugin configuration information, custom function information, and alarm configuration information contained in the query configuration information through the query process configuration page. By providing developers with a concise and clear business data query process configuration service, the efficiency of business data query process configuration for developers is improved.
[0122] In one embodiment, please refer to Figure 4 The step of calling the business verification module to verify whether the business feature information conforms to the preset business verification rules includes the following steps:
[0123] Step S121: Obtain the platform business feature code and one or more detailed business feature codes included in the business feature information:
[0124] The platform business feature code is used to characterize the business scenario corresponding to the business data query process corresponding to the business feature information. Correspondingly, the business information feature code is generally used to characterize the data type required by the business data query process corresponding to the business feature information.
[0125] Step S122: Query whether the platform business feature code exists in the platform business feature code database. If it exists, obtain the detailed business feature code database corresponding to the platform business feature code.
[0126] The business verification module will verify whether the platform business feature code contained in the business feature information conforms to the platform's preset platform business feature code format rules, so that the platform can manage the platform business feature codes corresponding to each business data query process. If it conforms, the platform business feature code passes the business verification. If it does not conform, the platform business feature code format error information will be pushed to the management terminal to prompt the development user on the management terminal.
[0127] Step S123: Query the detailed service feature code database to see if each of the detailed service feature codes exists. If it exists, the service feature information passes the service verification.
[0128] Since the detailed business feature codes are generally associated with the types of business data on the platform, when verifying the detailed business feature codes contained in the business feature information, the system will query the detailed business feature code library corresponding to the types of business data in the storage platform to see if one or more detailed business feature codes contained in the business feature information exist in the detailed business feature code library. If all of them exist, then each detailed business feature code contained in the business feature information passes the business verification. If any of the detailed business feature codes does not exist, then the business verification fails.
[0129] In one embodiment, when the business information feature code contained in the business feature information is data that must be set for setting up a business data query process, the system will verify whether the platform business feature code in the business feature information has a corresponding business information feature code. By obtaining the business detailed feature code library corresponding to the platform business feature code, the system will verify whether one or more business detailed feature codes contained in the business feature information exist in the business detailed feature code library. That is, different platform business feature codes have corresponding business information feature code libraries, so as to perform platform business feature code correspondence verification on one or more business detailed feature codes contained in the business feature information.
[0130] In this embodiment, the legality of the business data query process corresponding to the query configuration information is verified by checking the business feature information, and whether the business scenario of the corresponding business data query process is a relevant business in the platform, so as to ensure that the constructed business data query process can be effectively executed.
[0131] In one embodiment, please refer to Figure 5 The step of obtaining the reused plugin identifier or new configuration plugin contained in the plugin configuration information, and generating the corresponding plugin execution flow chain by concatenating the reused plugin identifier corresponding to the reused plugin identifier or the new configuration plugin based on the context information contained in the plugin configuration information, includes the following steps:
[0132] Step S131: Obtain one or more reuse plugin identifiers contained in the plugin configuration information, and query the reuse plugins in the reuse plugin pool corresponding to each reuse query identifier:
[0133] The reusable plugin identifier is used to characterize the reusable plugins called by the management end in the business data query process. That is, the reusable plugins used in the plugin execution process chain generated by the business data query process. The reusable plugins refer to the plugins already developed in the platform. Each of the reusable plugins can be reused by the management end to save the development cost consumed by repeatedly developing general plugins. The reusable plugins generally include data retrieval plugins for recalling business data, data sorting plugins for sorting business data, data completion plugins for completing business data, and result assembly plugins for assembling business data to generate query results, etc., which are common plugins usually used in the data query process. Each of the reusable plugins is generally stored in the reusable plugin pool along with its corresponding reusable plugin identifier, so that the server can obtain the target reusable plugin corresponding to the reusable plugin identifier from the reusable plugin pool according to the reusable plugin identifier contained in the plugin configuration information.
[0134] Step S132: Obtain the new configuration plugin contained in the plugin configuration information:
[0135] The newly configured plugins generally refer to plugins newly developed by the management side for the business data query process. By opening the extended plugin interface to the management side, the server enables the management side to encapsulate its newly developed configuration plugins into the plugin configuration information, so that the server can deploy the new configuration plugins to the business data query process.
[0136] Step S133: Based on the order of the plugin call identifiers contained in the context information, sort the reused plugins or newly configured plugins in sequence to generate a plugin execution flow chain in which the reused plugins or newly configured plugins are sequentially linked:
[0137] The context information is used to characterize the execution order of the reused plugin or the new configuration plugin in the business data query process, so as to sort the reused plugin or the new configuration plugin according to the context information to generate the corresponding plugin execution process chain. Each reused plugin or the new configuration plugin has a corresponding plugin identifier, and the context information stores the order of each plugin identifier.
[0138] In this embodiment, the business data query service stores various types of reusable plugins in the platform. Developers only need to configure or edit the corresponding reusable plugin identifier to call the corresponding reusable plugin and deploy it into the business data query process. There is no need for repeated development. Newly developed and configured plugins can also be deployed into the business data query process. The execution order of each plugin in the business data query process is arranged by the context information to determine the execution order of each plugin in the business data query process, so that the business data can run effectively.
[0139] In one embodiment, please refer to Figure 6 The step of executing the plugin execution flow chain based on the custom function information, calling one or more search engines to query the target business data stored in the corresponding database, and generating query result information containing each of the target business data includes the following steps:
[0140] Step S141: Determine the plugins corresponding to the multiple function fields in the custom function information, and load each function field into the corresponding plugin in the plugin execution flow chain:
[0141] The custom function information is used to control the execution of each reusable plugin or newly configured plugin in the plugin execution flow chain, or to execute the corresponding business logic when the plugin execution flow chain is reached. Specifically, the custom function information contains multiple function fields, each of which has a plugin interface representing its corresponding plugin. These function fields are loaded into the reusable plugin or newly configured plugin corresponding to its plugin interface to control the plugin execution logic of the corresponding reusable plugin or newly configured plugin. For example, when the search field is business data recalled by the data recall module, such as when the recalled business data is a product price, simple logical operations can be performed through the function fields without developing new plugins for deployment to complete simple logical operations and wasting computing resources.
[0142] Step S142: Execute each plugin in sequence according to the order of the plugins in the plugin execution flow chain. The plugin execution flow chain includes a data retrieval plugin and a result assembly plugin.
[0143] Taking the plugin execution process chain with the plugin sorting order as the data retrieval plugin, the data sorting plugin, the data completion plugin, and the result assembly plugin as an example, when executing the plugin execution process chain, the plugin corresponding to each function field in the custom function information will be determined, and these function fields will be loaded into the data retrieval plugin, the data sorting plugin, the data completion plugin, or the result assembly plugin. After loading is completed, the data retrieval plugin, the data sorting plugin, the data completion plugin, and the result assembly plugin will be executed in sequence.
[0144] Step S143: When the currently executing plugin is the data retrieval plugin, based on the function fields embedded in the data retrieval plugin, one or more corresponding search engines will be called to retrieve the target business data from the corresponding database.
[0145] When the plugin interface of the function field corresponds to the data retrieval plugin, the function field will be loaded into the data retrieval plugin. When the data retrieval plugin is executed, the data retrieval scenario calls one or more search engines to query and retrieve the target business data stored in the corresponding database. For example, the function field can be the search field corresponding to a certain business data and the database identifier of the database it is located in, and represent the search engine identifier or search engine interface of the search engine to be called, so as to call the search engine to query the corresponding business data from the corresponding database for target business data retrieval. For example, when the search engine corresponding to the search engine identifier or search engine interface is a remote call search engine, and the corresponding database identifier is a product information database, and the corresponding business detailed feature code represents sports products, the data retrieval plugin will call the remote call search engine, driving the search engine to retrieve product information of the product type as sports products from the search product information database as target business data for retrieval.
[0146] Step S144: Using the execution result assembly plugin, the result data containing the target business data is encapsulated to generate corresponding query result information.
[0147] The result assembly plugin is typically deployed at the end of the plugin execution flow chain. It is executed last to assemble the target business data retrieved by the data retrieval plugin after processing by other plugins, generating corresponding query results. For example, after the data retrieval plugin retrieves the target business data, it loads this data into the data sorting plugin for sorting. For instance, when the target business data is product information, it can be sorted based on the product price. After sorting each target business data item, it is loaded into the data completion plugin for completion. For example, when the target business data is product information, the data completion plugin can complete the product order information or store information. After completing each target business data item, the result assembly plugin is executed to encapsulate the result data containing the target business data, generating corresponding query results.
[0148] In this embodiment, the execution flow chain of the plugin is executed based on the custom function information, which decouples each plugin from the execution logic in the plugin execution flow chain, makes each plugin in the plugin execution flow chain reusable, and makes each plugin easily applicable to various business data query processes.
[0149] In one embodiment, please refer to Figure 7 The step of configuring one or more alarm modules according to the alarm configuration information, and calling the alarm modules to monitor the execution process of the plugin execution flow chain, includes any one or more of the following steps:
[0150] Step S141': Execute the indicator reporting and alarm module, obtain the execution indicators of each plugin in the plugin execution process chain, and encapsulate each execution indicator to generate indicator reporting information:
[0151] When executing the plugin execution process chain to query business data and generate corresponding query results, it is also necessary to monitor the plugin execution process chain and the corresponding business data query service with alarms to ensure the stable execution of the business data query process. Specifically, the server configures one or more alarm modules according to the alarm configuration information to call the alarm modules to monitor the execution process of the plugin execution process chain.
[0152] The aforementioned indicator reporting and alarm module is used to monitor and acquire the execution indicators of each plugin in the plugin execution process chain. The execution indicators refer to the sorting speed of the data sorting plugin when sorting business data, the amount of data recalled and the recall speed of the data recall plugin, the amount of data acquired and the data acquired by the data completion plugin, and the business data assembly speed of the result assembly plugin, etc. Of course, it can also collect the memory and computing power usage of each plugin during execution. Then, the indicator reporting and alarm module will encapsulate the execution indicators generated by each plugin, generate indicator reporting information containing each execution indicator, and push the indicator reporting information to the management terminal so that the management terminal can analyze the indicator reporting information to determine the execution status of each plugin in the plugin execution process chain.
[0153] Step S142': Execute the rate limiting monitoring and alarm module to monitor the business data acquisition traffic of the plugin execution process chain. When the business data acquisition traffic exceeds the traffic threshold configured in the alarm configuration information, control the amount of new business data acquired by the plugin execution process chain.
[0154] The rate limiting monitoring and alarm module acquires traffic by listening to the business data obtained by the plugin execution process chain. When the traffic acquired by the business data exceeds the traffic threshold configured in the alarm configuration information, the module controls the amount of new business data acquired by the plugin execution process chain. This prevents the server from crashing due to the concurrent processing of a massive amount of data. For example, when the plugin listening at the rate limiting interface alarm gate is the data recall plugin, the module acquires the recall data traffic of the data recall plugin and determines whether the recall data traffic exceeds the traffic threshold. If it does, the module limits the recall data traffic of the data recall plugin to the rate-limited traffic configured in the alarm configuration information to control the amount of data recalled by the data recall plugin.
[0155] In this embodiment, an alarm module is configured and deployed to monitor the business data query process, and to report indicators or limit the traffic of the business data query process that is being executed, so as to ensure that the business data query process can run stably.
[0156] Furthermore, by functionalizing the various steps in the methods disclosed in the above embodiments, a query process configuration device of this application can be constructed. Following this approach, please refer to... Figure 8 In one typical embodiment, the device includes: a query configuration acquisition module 11, used to acquire query configuration information pushed by a query terminal, the query configuration information including business feature information, plugin configuration information, custom function information, and alarm configuration information; a business feature verification module 12, used to call a business verification module to verify whether the business feature information conforms to preset business verification rules; an execution flow generation module 13, used to acquire a reused plugin identifier or a new configuration plugin contained in the plugin configuration information when the business feature information conforms to the business verification rules, and based on the context information contained in the plugin configuration information, concatenate the reused plugin corresponding to the reused plugin identifier or the new configuration plugin to generate a corresponding plugin execution flow chain; and a query flow execution module 14, used to execute the plugin execution flow chain based on the custom function information, call one or more search engines to query the target business data stored in the corresponding database, generate query result information containing each of the target business data, and configure one or more alarm modules according to the alarm configuration information to call the alarm modules to monitor the execution process of the plugin execution flow chain.
[0157] In one embodiment, the query configuration acquisition module 11 includes: a business feature generation submodule, used to acquire platform business feature codes and one or more detailed business feature codes from the business feature information editing control in the query process configuration page, and encapsulate the platform business feature codes and each of the detailed business feature codes into business feature information; a plugin configuration generation submodule, used to acquire the reuse plugin identifier or newly configured new configuration plugin corresponding to the reuse plugin selected in the plugin configuration control in the query process configuration page, and acquire the corresponding context information, and encapsulate the reuse plugin identifier, new configuration plugin, and context information into plugin configuration information; a custom function generation submodule, used to acquire custom function information edited by the function editing control in the query process configuration page; and an alarm configuration generation submodule, used to determine one or more alarm modules selected by the alarm configuration control in the query process configuration page, acquire alarm module configuration information corresponding to each of the alarm modules, and encapsulate each of the alarm module configuration information to generate alarm configuration information.
[0158] In one embodiment, the business feature verification module 12 includes: a feature code acquisition submodule, used to acquire platform business feature codes and one or more detailed business feature codes included in the business feature information; a platform business query submodule, used to query whether the platform business feature code exists in the platform business feature code library, and if it exists, to acquire the detailed business feature code library corresponding to the platform business feature code; and a detailed business query submodule, used to query whether each of the detailed business feature codes exists in the detailed business feature code library, and if it exists, the business feature information passes the business verification.
[0159] In one embodiment, the execution flow generation module 13 includes: a reused plugin acquisition submodule, used to acquire one or more reused plugin identifiers contained in the plugin configuration information, and query the reused plugins in the reused plugin pool corresponding to each of the reused query identifiers; a new configuration plugin acquisition submodule, used to acquire new configuration plugins contained in the plugin configuration information; and a plugin execution chain generation submodule, used to sort each of the reused plugins or new configuration plugins in order based on the order of each plugin call identifier contained in the context information, so as to generate a plugin execution flow chain that sequentially connects each of the reused plugins or new configuration plugins.
[0160] In one embodiment, the query process execution module 14 includes: a function field embedding submodule, used to determine the plugins corresponding to multiple function fields in the custom function information, and load each function field into the corresponding plugin in the plugin execution process chain; a plugin execution submodule, used to execute each plugin in sequence according to the order of each plugin in the plugin execution process chain, wherein the plugin execution process chain includes a data retrieval plugin and a result assembly plugin; a business data acquisition submodule, used to, when the currently executing plugin is the data retrieval plugin, call one or more corresponding search engines to retrieve target business data from the corresponding database based on the function fields embedded in the data retrieval plugin; and a query result generation submodule, used to encapsulate the result data containing the target business data through the execution result assembly plugin, and generate corresponding query result information.
[0161] In another embodiment, the query process execution module 14 further includes: an indicator reporting submodule, used to execute the indicator reporting alarm module, obtain the execution indicators of each plugin in the plugin execution process chain, and encapsulate each execution indicator to generate indicator reporting information; and a rate limiting and degradation submodule, used to execute the rate limiting monitoring alarm module, monitor the business data acquisition traffic of the plugin execution process chain, and control the amount of new business data acquired by the plugin execution process chain when the business data acquisition traffic exceeds the traffic threshold configured in the alarm configuration information.
[0162] To address the aforementioned technical problems, embodiments of this application also provide a computer device for running a computer program implemented according to the query process configuration method. Please refer to [link / reference] for details. Figure 9 , Figure 9 This is a basic structural block diagram of the computer device in this embodiment.
[0163] like Figure 9 The diagram shows the internal structure of a computer device. The computer device includes a processor, non-volatile storage medium, memory, and a network interface connected via a system bus. The non-volatile storage medium stores the operating system, a database, and computer-readable instructions. The database may store control information sequences. When the computer-readable instructions are executed by the processor, they enable the processor to implement a query flow configuration method. The processor provides computing and control capabilities, supporting the operation of the entire computer device. The memory stores computer-readable instructions, which, when executed by the processor, enable the processor to execute a query flow configuration method. The network interface of the computer device is used for communication with a terminal. Those skilled in the art will understand that… Figure 9The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0164] In this embodiment, the processor executes the specific functions of each module / submodule in the query process configuration device of this application, and the memory stores the program code and various types of data required to execute the above modules. The network interface is used for data transmission between the user terminal and the server. In this embodiment, the memory stores the program code and data required to execute all modules / submodules in the query process configuration device, and the server can call the server's program code and data to execute the functions of all submodules.
[0165] This application also provides a non-volatile storage medium in which the query flow configuration method is written as a computer program and stored in the storage medium in the form of computer-readable instructions. When the computer-readable instructions are executed by one or more processors, it means that the program is running in the computer, thereby causing one or more processors to perform the steps of the query flow configuration method of any of the above embodiments.
[0166] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).
[0167] In summary, this application provides the platform with a simple query process configuration service, enabling rapid deployment of business data query process scenarios in conjunction with the framework.
[0168] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0169] Those skilled in the art will understand that the steps, measures, and solutions in the various operations, methods, and processes discussed in this application can be alternated, modified, combined, or deleted. Furthermore, other steps, measures, and solutions in the various operations, methods, and processes discussed in this application can also be alternated, modified, rearranged, decomposed, combined, or deleted. Furthermore, steps, measures, and solutions in the prior art that are similar to those disclosed in this application can also be alternated, modified, rearranged, decomposed, combined, or deleted.
[0170] The above description is only a partial embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A query process configuration method, characterized in that, Includes the following steps: Obtain query configuration information pushed by the query terminal, which includes business characteristic information, plugin configuration information, custom function information and alarm configuration information; Call the business verification module to verify whether the business feature information conforms to the preset business verification rules; When the business feature information meets the business verification rules, the reuse plugin identifier or new configuration plugin contained in the plugin configuration information is obtained. Based on the context information contained in the plugin configuration information, the reuse plugin corresponding to the reuse plugin identifier or the new configuration plugin is chained together to generate the corresponding plugin execution flow chain. Based on the custom function information, each plugin in the plugin execution process chain is controlled. According to the function fields in the custom function information, the corresponding business logic is executed to call one or more search engines to query the target business data stored in the corresponding database. The execution of each plugin generates query result information containing the target business data. According to the alarm configuration information, one or more alarm modules are configured to call the alarm modules to monitor the execution process of the plugin execution process chain.
2. The method according to claim 1, characterized in that, The step of obtaining the query configuration information pushed by the query client includes the following steps: Obtain the platform business feature code and one or more detailed business feature codes from the business feature information editing control in the query process configuration page, and encapsulate the platform business feature code and each of the detailed business feature codes into business feature information; Obtain the reuse plugin identifier or the newly configured new plugin corresponding to the reuse plugin selected in the plugin configuration control in the query process configuration page, and obtain the corresponding context information. Encapsulate the reuse plugin identifier, the newly configured plugin and the context information into plugin configuration information. Retrieve information about custom functions edited by the function editing control in the query process configuration page; Determine one or more alarm modules selected by the alarm configuration control in the query process configuration page, obtain the alarm module configuration information corresponding to each alarm module, and encapsulate the alarm module configuration information to generate alarm configuration information.
3. The method according to claim 1, characterized in that, The step of calling the business verification module to verify whether the business feature information conforms to the preset business verification rules includes the following steps: The obtained business feature information includes a platform business feature code and one or more detailed business feature codes; Query whether the platform business feature code exists in the platform business feature code library. If it exists, obtain the detailed business feature code library corresponding to the platform business feature code. The system checks whether each of the detailed business feature codes exists in the detailed business feature code library. If it does, the business feature information passes the business verification.
4. The method according to claim 1, characterized in that, The step of obtaining the reused plugin identifier or new configuration plugin contained in the plugin configuration information, and generating a corresponding plugin execution flow chain by concatenating the reused plugin identifier corresponding to the reused plugin identifier or the new configuration plugin based on the context information contained in the plugin configuration information, includes the following steps: Obtain one or more reuse plugin identifiers contained in the plugin configuration information, and query the reuse plugins in the reuse plugin pool that correspond to each of the reuse plugin identifiers; Retrieve the new configuration plugin contained in the plugin configuration information; Based on the order of each plugin call identifier contained in the context information, the reused plugins or newly configured plugins are ordered sequentially to generate a plugin execution flow chain that sequentially connects the reused plugins or newly configured plugins.
5. The method according to claim 1, characterized in that, The step of executing the plugin execution flow chain based on the custom function information, calling one or more search engines to query the target business data stored in the corresponding database, and generating query result information containing each of the target business data includes the following steps: Identify the plugins corresponding to multiple function fields in the custom function information, and load each function field into the corresponding plugin in the plugin execution flow chain; According to the order of each plugin in the plugin execution process chain, each plugin is executed in sequence, wherein the plugin execution process chain includes a data retrieval plugin and a result assembly plugin; When the currently executing plugin is the data retrieval plugin, it will call one or more corresponding search engines to retrieve target business data from the corresponding database based on the function fields embedded in the data retrieval plugin. The execution result assembly plugin encapsulates the result data containing the target business data and generates corresponding query result information.
6. The method according to claim 1, characterized in that, The step of configuring one or more alarm modules according to the alarm configuration information, and calling the alarm modules to monitor the execution process of the plugin execution flow chain, includes any one or more of the following steps: The execution indicator reporting and alarm module obtains the execution indicators of each plugin in the plugin execution process chain, and encapsulates each execution indicator to generate indicator reporting information; The execution rate limiting monitoring and alarm module listens to the business data acquisition traffic of the plugin execution process chain. When the business data acquisition traffic exceeds the traffic threshold configured in the alarm configuration information, it controls the amount of new business data acquired by the plugin execution process chain.
7. A query process configuration device, characterized in that, include: The query configuration acquisition module is used to acquire query configuration information pushed by the query client. The query configuration information includes business feature information, plugin configuration information, custom function information, and alarm configuration information. The business feature verification module is used to call the business verification module to verify whether the business feature information conforms to the preset business verification rules. The execution flow generation module is used to obtain the reused plugin identifier or the new configuration plugin contained in the plugin configuration information when the business feature information meets the business verification rules, and generate a corresponding plugin execution flow chain based on the context information contained in the plugin configuration information by concatenating the reused plugin corresponding to the reused plugin identifier or the new configuration plugin. The query process execution module is used to control each plugin in the plugin execution process chain based on the custom function information, execute the corresponding business logic according to the function fields in the custom function information, call one or more search engines to query the target business data stored in the corresponding database, and generate query result information containing each target business data through the execution of each plugin. It also configures one or more alarm modules according to the alarm configuration information to call the alarm modules to monitor the execution process of the plugin execution process chain.
8. An electronic device comprising a central processing unit and a memory, characterized in that, The central processing unit is used to invoke and run a computer program stored in the memory to perform the steps of the method as described in any one of claims 1 to 6.
9. A non-volatile storage medium, characterized in that, It stores, in the form of computer-readable instructions, a computer program implemented according to any one of claims 1 to 6, which, when invoked by a computer, performs the steps included in the method.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Query page generating device and method
CN102541529A
Method, device and equipment for realizing custom business process and medium
CN114240358A