Strong real-time feature acquisition method, device, computer equipment and storage medium

Through the strong real-time feature acquisition method and feature query SDK, the problem of low efficiency of strong real-time feature acquisition in the strategy formulation of Internet financial platforms is solved, efficient and flexible feature value acquisition and policy adaptability are achieved, and system maintenance costs are reduced and improved. response speed.

CN118363586BActive Publication Date: 2024-10-01SHANGHAI SHUHE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410453949.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2024-10-01
Estimated Expiration
2044-04-16

AI Technical Summary

Technical Problem

In the existing technology, the strong real-time feature acquisition efficiency that Internet financial platforms rely on in policy formulation is inefficient and cannot adapt to the needs of frequent policy changes, resulting in high system maintenance costs and slow response speed.

Method used

Provides a strong real-time feature retrieval method to obtain the feature values ​​of strong real-time features through feature query SDK. The SDK records the strong real-time feature list as target features and executes the retrieval logic, including obtaining data source configuration information and data processing scripts. Process the interface parameter information to obtain characteristic values, and support policy makers to dynamically configure and manage strong real-time characteristic data sources.

Benefits of technology

It achieves efficient and flexible acquisition of feature values ​​of strong real-time features, adapts to frequent policy changes, reduces system maintenance costs and improves response speed, and enhances the flexibility and scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118363586B_ABST
    Figure CN118363586B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for obtaining strong real-time feature data. The method includes: the target system responds to a business call, obtains the call-related input parameter information and a strong real-time feature list; the feature query SDK records each strong real-time feature in the list as a target feature, and executes the data acquisition logic; the data acquisition logic includes: obtaining the data source configuration information and data processing script associated with the target feature; the data source configuration information includes the interface address information and interface input parameter configuration information of the data source interface associated with the target feature; extracting the interface input parameter information from the input parameter information according to the interface input parameter configuration information, calling the interface corresponding to the interface address information based on the interface input parameter information, and obtaining the interface output parameter information; using the data processing script to process the interface output parameter information to obtain the characteristic value of the target feature. The present application can efficiently and flexibly obtain the characteristic value of the strong real-time feature.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer computing, and in particular to a strong real-time feature acquisition method, device, computer equipment and storage medium. Background Art

[0002] In order to ensure the steady development of business, Internet financial platforms usually need to formulate various strategies, such as strategies related to specific businesses, risk control strategies, anti-fraud strategies, etc. Each strategy relies on many features. For some of these features, the strategy has high requirements for their values ​​and requires their values ​​to be consistent with related systems (such as business systems or other systems), otherwise the decision results may be wrong. Such features can be called strong real-time features. The values ​​of strong real-time features are currently mainly queried by manually calling the http interface. Manually calling the http interface means developing corresponding codes for obtaining feature values ​​for the features in advance. With the increase in business diversification and scenario complexity, the frequency of strategy changes is also accelerating, and the strong real-time features that the strategy relies on often change. If a new enhanced real-time feature is required in the strategy, then the corresponding code for obtaining the feature value needs to be developed. In the case of frequent strategy changes, it is necessary to frequently develop code for obtaining the value of the new feature. Therefore, the above-mentioned manual calling of the http interface is inefficient and lacks flexibility, and cannot meet the needs of strategy makers to frequently change strategies. Summary of the invention

[0003] In view of the above-mentioned deficiencies or shortcomings, the present application provides a method, apparatus, computer device and storage medium for acquiring strong real-time feature data. The embodiments of the present application can adapt to frequent changes in strategies and efficiently and flexibly acquire feature values ​​of strong real-time features.

[0004] The present application provides a strong real-time feature acquisition method according to a first aspect. In some embodiments, the method includes:

[0005] The target system responds to the business call, obtains the call-related input parameter information and strong real-time feature list, and passes it to the pre-introduced feature query SDK;

[0006] The feature query SDK records each strong real-time feature included in the strong real-time feature list as a target feature and executes the data acquisition logic;

[0007] The data acquisition logic includes:

[0008] Obtaining data source configuration information and data processing scripts associated with target features from the strong real-time feature system; the data source configuration information includes interface address information and interface input parameter configuration information of the data source interface associated with the target feature; the strong real-time feature system is used to manage multiple strong real-time feature data sources pre-configured based on multiple data source interface configurations, and data source configuration information and data processing scripts pre-configured for each strong real-time feature based on the strong real-time feature data sources associated with each strong real-time feature;

[0009] Extract interface input parameter information from the input parameter information according to the interface input parameter configuration information, call the interface corresponding to the interface address information based on the interface input parameter information, and obtain the interface output parameter information;

[0010] Use the data processing script to process the interface output parameter information and obtain the characteristic value of the target feature.

[0011] In some embodiments, obtaining data source configuration information and data processing script associated with a target feature from a strong real-time feature system includes:

[0012] Check whether the data source configuration information and data processing script associated with the target feature pre-pulled from the strong real-time feature system exists in the memory;

[0013] If it exists, obtain the data source configuration information and data processing script associated with the target feature from the memory;

[0014] If it does not exist, query the strong real-time feature system for the data source configuration information and data processing script associated with the target feature, and obtain the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system.

[0015] In some embodiments, after obtaining the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system, the method further includes:

[0016] The data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system are cached in memory.

[0017] In some embodiments, the interface input parameter configuration information includes parameter identifiers of one or more data source input parameters; accordingly, extracting the interface input parameter information from the input parameter information according to the interface input parameter configuration information includes:

[0018] The interface input parameter configuration information is extracted from the input parameter information, including the parameter value corresponding to the parameter identifier of each data source input parameter, to obtain the interface input parameter information.

[0019] In some embodiments, the data processing script associated with the target feature is a custom script written in advance based on the data acquisition requirements of the target feature and the interface output parameter configuration information of the data source interface related to the target feature.

[0020] In some embodiments, the data processing script is a groovy script; using the data processing script to process the interface output parameter information to obtain the feature value of the target feature includes:

[0021] Use the interface output parameter information as the RESPONSE variable;

[0022] Execute the groovy script associated with the target feature; when the groovy script is executed, it extracts parameter information related to the target feature from the interface output parameter information, and performs data processing based on the parameter information related to the target feature;

[0023] Get the output data of the groovy script associated with the target feature as the feature value of the target feature.

[0024] In some embodiments, after executing the groovy script associated with the target feature, the method further comprises:

[0025] Check whether the result of data processing is an object;

[0026] If yes, perform JSON serialization on the object, and use the JSON serialization result of the object as the output data of the groovy script associated with the target feature;

[0027] If not, the result of data processing is used as the output data of the groovy script associated with the target feature.

[0028] According to a second aspect, the present application provides a strong real-time feature data acquisition device. In some embodiments, the device includes:

[0029] The call response module is used to respond to business calls and obtain call-related input parameter information and a strong real-time feature list;

[0030] The feature data acquisition module is used to record each strong real-time feature included in the strong real-time feature list as a target feature and execute the data acquisition logic; the data acquisition logic includes:

[0031] Obtaining data source configuration information and data processing scripts associated with target features from the strong real-time feature system; the data source configuration information includes interface address information and interface input parameter configuration information of the data source interface associated with the target feature; the strong real-time feature system is used to manage multiple strong real-time feature data sources pre-configured based on multiple data source interface configurations, and data source configuration information and data processing scripts pre-configured for each strong real-time feature based on the strong real-time feature data sources associated with each strong real-time feature;

[0032] Extract interface input parameter information from the input parameter information according to the interface input parameter configuration information, call the interface corresponding to the interface address information based on the interface input parameter information, and obtain the interface output parameter information;

[0033] Use the data processing script to process the interface output parameter information and obtain the characteristic value of the target feature.

[0034] According to a third aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the strong real-time feature acquisition method provided in any of the above embodiments are implemented.

[0035] According to a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the strong real-time feature acquisition method provided in any of the above embodiments are implemented.

[0036] In the above-mentioned embodiment of the present application, the strong real-time feature system will uniformly manage the strong real-time feature data source corresponding to the data source interface, as well as the data source configuration information and data processing scripts associated with each strong real-time feature. When the policy changes and the strong real-time features in the policy also change, such as when a new enhanced real-time feature is needed, the policy designator only needs to configure the relevant strong real-time feature data source and strong real-time feature in the strong real-time feature system according to actual needs, and dynamically configure the configured strong real-time feature to the relevant policy, so that the target system that pre-introduces the feature query SDK provided by the strong real-time feature system can query the feature values ​​of each strong real-time feature in the policy related to the call through the feature query SDK when it is called. This embodiment can adapt to the situation of frequent changes in policies and efficiently and flexibly obtain the feature values ​​of strong real-time features. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flowchart of a strong real-time feature acquisition method provided by the present application according to one or more embodiments;

[0038] Figure 2 A flowchart corresponding to the data acquisition logic provided by the present application according to one or more embodiments;

[0039] Figure 3 A structural block diagram of a strong real-time feature data acquisition device provided by the present application according to one or more embodiments;

[0040] Figure 4 This is a diagram of the internal structure of a computer device provided by the present application according to one or more embodiments. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0042] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0043] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0044] There is no strong real-time feature system in the prior art. In the past, in order to implement the feature value of the strong real-time feature in the query strategy, the system deployed with the strategy needs developers to develop the corresponding code in the system project. The development content at least includes setting the unique identifier (key) of the newly added feature, the feature name, the feature implementation class, the feature query implementation method, etc. In the case of frequent changes in the strategy, each time the real-time feature is newly enhanced in the strategy, it is necessary to carry out the corresponding code development, release, deployment and other work. This frequent development work increases the cost and complexity of system maintenance, and also reduces the system's response speed to business changes, and cannot meet the increasingly high real-time requirements today. In addition, the code developed for the strong real-time feature also needs to show other systems that the strong real-time feature depends on. The data format of the interface used by the system to interact with other systems is also fixed. Once the interface or data format changes in the future, the system needs to be modified and adjusted. This fixed interface dependency will lead to the lack of flexibility and scalability of the system.

[0045] In order to solve the deficiencies or defects of the prior art, the present application provides a strong real-time feature acquisition method. In some embodiments, the method includes: Figure 1 The steps shown are described below using the method applied to the target system as an example.

[0046] S110: The target system responds to the service call, obtains the call-related input parameter information and the strong real-time feature list, and passes in the pre-introduced feature query SDK (Software Development Kit).

[0047] The target system can be any system that needs to obtain the feature value of the strong real-time feature, such as a business system, a decision system, a model system, etc. In some embodiments, one or more strategies are deployed in the target system, and other systems (which can be internal or external systems) can call (this type of call is referred to as a business call in this article) the target system to execute the corresponding strategy. The target system will respond to the business call and execute the strong real-time feature acquisition method provided in this embodiment to obtain the feature value of the strong real-time feature in the strategy related to the call. It should be noted that the target system needs to introduce the feature query SDK in advance, and the target system specifically obtains the feature value of the strong real-time feature in the relevant strategy through the feature query SDK.

[0048] In this embodiment, the feature query SDK is used to implement multiple functions. In some implementations, the feature query SDK has at least the following functions, namely, (1) calling the strong real-time feature system to pull the data source configuration information and data processing script associated with the strong real-time feature in the policy deployed in the target system from the strong real-time feature system; (2) calling the relevant data source interface according to the data source configuration information associated with the strong real-time feature to obtain query information related to the strong real-time feature; (3) running the data processing script associated with the strong real-time feature to process the query information related to the strong real-time feature, thereby obtaining the feature value of the strong real-time feature.

[0049] The Feature Query SDK is also a project. Developers develop the various functions they need to implement. After the development is completed, all the functions are packaged into a jar package, and then the jar package is introduced into the project of each target system. The target system can call the Feature Query SDK according to the needs to implement the functions it can achieve. The following will explain the various functions of the Feature Query SDK in detail.

[0050] The above-mentioned strong real-time feature system is a system that exists independently of all target systems, and is used to manage the strong real-time feature data source and the data source configuration information and data processing scripts associated with each strong real-time feature. The strong real-time feature system can provide policy makers with a corresponding interface to configure new strong real-time feature data sources and configure new strong real-time features. Understandably, policy makers can also delete or modify previously configured strong real-time feature data sources and configure new strong real-time features according to actual needs.

[0051] Specifically, the policy maker needs to configure the corresponding strong real-time feature data source in the strong real-time feature system for the data source interface related to each feature (usually referring to the strong real-time feature in the policy, but it can also be any feature in the policy) that the policy (usually all policies, or part of the policy) relies on. The above-mentioned data source interface represents the interface of the source of the feature value of the strong real-time feature, specifically referring to the interface in the internal system or external system that provides relevant data for the strong real-time feature (the relevant data can be directly the feature value or the data used to generate the feature value). When configuring the strong real-time feature data source, the information that needs to be configured includes but is not limited to the basic information of the data source interface, the interface address information, the interface input parameter configuration information and the interface output parameter configuration information. Among them, the basic information of the data source interface can be some descriptions about the data source interface, such as the interface name of the data source interface, the interface unique identifier, the source system (indicating which system the data source interface comes from), the source application (indicating which application in the system the data source interface comes from), etc. The interface address information of the data source interface refers to the interface address of the data source interface, for example, the API (Application Programming Interface, Application Programming Interface) address (specifically, it can be a URL, i.e., a uniform resource locator). Interface input parameter configuration information refers to the input parameter information of the data source interface, that is, the information that needs to be input when calling the data source interface. For example, it can be one or more parameters, such as uid (indicating the user's ID), accountNo (indicating the user's account number), etc. Interface output parameter configuration information refers to the output parameter information of the data source interface, that is, the information returned to the caller after the interface method of the data source interface is executed. For example, it can be an object including one or more parameters, such as accountNo (indicating the user's account number), adjustmenttype (indicating the adjustment type), applyReasonCode (indicating the number of the reason for applying for adjustment), and other parameters.

[0052] Configuring the data source interface as a strong real-time feature data source will help to uniformly manage all data source interfaces in the form of data sources in the future, and the subsequent policy makers will also need to configure the associated basic feature information, data source configuration information, and data processing scripts for each strong real-time feature in each policy. Among them, the basic feature information associated with the strong real-time feature is some descriptions about the strong real-time feature, which may include but is not limited to the feature name, feature unique identifier, and other information of the strong real-time feature. The data source configuration information associated with the strong real-time feature may include but is not limited to the strong real-time feature data source related to the strong real-time feature, and the assignment method of each input parameter of the strong real-time feature data source. For example, the interface input parameter configuration information of the configured strong real-time feature data source source_A is uid (indicating the user's ID) and accountNo (indicating the user's account number). The policy makers configure a strong real-time feature feature_A according to the requirements, and the strong real-time feature data source related to the feature is configured as source_A. The assignment methods of uid and accountNo are both configured as request variables (in addition to request variables, there can also be constants, built-in variables, no assignment, etc.). The data processing script associated with the strong real-time feature is used to process the output parameter information of the data source interface related to the strong real-time feature to obtain the feature value of the strong real-time feature. The script can be customized based on the data acquisition requirements of the strong real-time feature and the interface output parameter configuration information of the data source interface related to the strong real-time feature.

[0053] Among them, if the value of the strong real-time feature can be directly obtained from the output parameter information of the relevant data source interface, such as the value of the strong real-time feature is exactly equal to the value of a certain output parameter of the relevant data source interface, then there is no need to write a data processing script for the strong real-time feature.

[0054] If the value of the strong real-time feature cannot be directly obtained from the output parameter information of the relevant data source interface, then it is necessary to write a data processing script for the strong real-time feature.

[0055] For example, the strong real-time feature is "user age", and the output parameter information of the relevant data source interface is "user birthday". Obviously, the current value of "user birthday" cannot be directly set as the value of "user age". Then, after calling the data source interface and obtaining the current value of "user birthday" returned by the interface, it is necessary to calculate the value of "user age" based on the current date and the current value of "user birthday". The data processing script written for "user age" needs to be able to implement the above processing logic. Exemplarily, the script can be return(Date.now()-birthday), where "Date.now()" represents the current date and "birthday" represents the user's birthday.

[0056] For another example, the strong real-time feature is "user's current available credit limit", and the output parameter information of the relevant data source interface is "credit limit" and "borrowed credit limit". Therefore, after obtaining the above output parameter information, it is necessary to subtract the value of "borrowed credit limit" from the value of "credit limit" to obtain the value of "user's current available credit limit". Understandably, the data processing script written for "user's current available credit limit" needs to be able to implement the above processing logic.

[0057] In some embodiments, the data processing script can be a groovy script. Groovy is a powerful, agile, dynamic programming language based on the Java Virtual Machine (JVM). It is designed to improve the work efficiency of developers, simplify daily coding tasks, and integrate seamlessly with Java code. Using groovy to write scripts, when the data processing script needs to be modified, it can be dynamically modified. Compared with writing Java code to implement data processing logic, development is more convenient and more flexible.

[0058] After configuring the strong real-time feature, the policy maker can send relevant instructions to the strong real-time feature system to instruct the strong real-time feature system to launch the relevant strong real-time feature. After the strong real-time feature is successfully launched, it can be used. For example, the policy maker can set it to one or more policies that need to be changed as a policy-dependent feature according to actual needs. For example, the feature query SDK can query the data source configuration information and data processing script associated with the strong real-time feature from the strong real-time feature system.

[0059] S120: The feature query SDK records each strong real-time feature included in the strong real-time feature list as a target feature, and executes data acquisition logic.

[0060] When the target system is called, the target system will pass the input parameter information entered by other systems when calling the relevant interfaces of the target system, as well as the list of strong real-time features in the strategy to be executed in response to the call, to the feature query SDK. The feature query SDK can query the feature values ​​of multiple strong real-time features at the same time, for example, by opening up multiple threads through multi-threading technology, and different threads are used to query the feature values ​​of different strong real-time features. Since the operation process is similar when querying the feature values ​​of different strong real-time features, the following will take the query of the feature value of the target feature as an example to illustrate the feature query process.

[0061] The feature query SDK implements the above feature query process specifically through data acquisition logic. In some embodiments, the data acquisition logic may include: Figure 2 Steps shown:

[0062] S210: Acquire data source configuration information and data processing script associated with the target feature from the strong real-time feature system; the data source configuration information includes interface address information and interface input parameter configuration information of the data source interface associated with the target feature.

[0063] In some embodiments, the feature query SDK pulls data source configuration information and data processing scripts associated with the target feature from the strong real-time feature system.

[0064] In some embodiments, the operation of obtaining the data source configuration information and data processing script associated with the target feature from the strong real-time feature system can also be to query whether the data source configuration information and data processing script associated with the target feature that are pre-pulled from the strong real-time feature system exist in the memory; if so, obtain the data source configuration information and data processing script associated with the target feature from the memory; if not, query the strong real-time feature system for the data source configuration information and data processing script associated with the target feature, and obtain the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system. Accordingly, after obtaining the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system, the above method also includes: caching the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system into the memory.

[0065] In this embodiment, the strong real-time feature system provides a matching feature query SDK to each target system. After the target system introduces the feature query SDK, its interaction with the strong real-time feature system does not need to go through a network request. The target system can directly pull the data source configuration information and data processing scripts of the strong real-time feature from the strong real-time feature system locally through the API provided by the feature query SDK. Compared with the interaction between the strong real-time feature system and the target system through the network (for example, the target system interacts with the strong real-time feature system by calling the http interface), the query efficiency is better, the information query delay is lower, and the development process is simpler. When a new target system appears, it only needs to introduce the developed feature query SDK to obtain the interaction function with the strong real-time feature system and the ability to query the feature values ​​of the strong real-time feature without the need for redevelopment.

[0066] In addition, the feature query SDK can also cache the data source configuration information and data processing scripts of the strong real-time features pulled from the strong real-time feature system in the memory, so that the next time the data source configuration information and data processing scripts of the strong real-time features are needed, they can be obtained directly from the memory without having to be pulled from the strong real-time feature system, thereby achieving faster data acquisition speed.

[0067] S220: extracting interface input parameter information from the input parameter information according to the interface input parameter configuration information, calling the interface corresponding to the interface address information based on the interface input parameter information, and obtaining interface output parameter information.

[0068] The interface input parameter configuration information includes parameter identifiers of one or more data source input parameters; accordingly, the interface input parameter information is extracted from the input parameter information according to the interface input parameter configuration information, including: extracting the interface input parameter configuration information including the parameter value corresponding to the parameter identifier of each data source input parameter from the input parameter information to obtain the interface input parameter information.

[0069] The following example illustrates how to obtain interface output parameter information.

[0070] In some examples, assuming that the input parameter information includes "uid:id_123", "accountNo:no_123" and other information, the target feature is "user's current available credit limit", and the interface input parameter configuration information in the data source configuration information associated with "user's current available credit limit" is "uid" and "accountNo", where "uid" and "accountNo" are both data source input parameters (referring to the input parameters of the relevant data source interface), then the feature query SDK can extract "uid:id_123", "accountNo:no_123" from the input parameter information as interface input parameter information.

[0071] S230: Use the data processing script to process the interface output parameter information to obtain the feature value of the target feature.

[0072] As described above, the data processing script associated with the target feature is a script that is pre-customized based on the data acquisition requirements of the target feature and the interface output parameter configuration information of the data source interface related to the target feature. In some embodiments, the data processing script can be a groovy script. Accordingly, the data processing script is used to process the interface output parameter information to obtain the feature value of the target feature, including:

[0073] The interface output parameter information is used as the RESPONSE variable; the groovy script associated with the target feature is executed; when the groovy script is executed, the parameter information related to the target feature is extracted from the interface output parameter information, and data processing is performed based on the parameter information related to the target feature; the output data of the groovy script associated with the target feature is obtained as the characteristic value of the target feature.

[0074] The interface output parameter information will be saved in the Groovy built-in variable RESPONSE in the form of an object, and the groovy script associated with the target feature needs to be written in advance based on RESPONSE and use a return statement to output the final feature value.

[0075] When executing the groovy script associated with the target feature, the script will extract the parameter information related to the target feature from RESPONSE and perform data processing based on the parameter information related to the target feature. Specifically, the interface output parameter information includes the parameter values ​​of one or more parameters, but the script will only extract the parameter information related to the target feature, and the parameters related to the target feature are pre-written in the script.

[0076] The following example illustrates the operation of extracting parameter information related to target features and performing data processing.

[0077] In some examples, assuming that the current date is 2024.1.1, the target feature is "user age", and the data processing script associated with the target feature is "return(Date.now()-birthday)", "Date.now()" represents the current date, and "birthday" represents the user's birthday. If the data source interface related to the target feature is called, the interface output parameter information obtained is "user birthday: 2010-1-1" and "user name: Zhang San", then the feature query SDK obtains "user birthday: 2010-1-1" as the query information related to the target feature, and processes "user age" based on "user birthday: 2010-1-1", for example, calculates 2024-2010=14, and sets the feature value of "user age" to 14.

[0078] In some embodiments, after executing the groovy script associated with the target feature, the method further comprises:

[0079] Check whether the result of data processing is an object; if so, perform JSON serialization on the object and use the JSON serialization result of the object as the output data of the groovy script associated with the target feature; if not, use the result of data processing as the output data of the groovy script associated with the target feature.

[0080] Among them, if the return statement of the script returns an object, in order to facilitate subsequent transmission, storage or interaction with other systems, this embodiment will perform JSON (JavaScript Object Notation, JS object notation) serialization on the object. Specifically, the Groovy built-in JsonOutput class or a third-party library such as Gson can be used for serialization to convert the object into a standard JSON text format that is easier to transmit and process, so that other systems can easily understand and process the output data of the groovy script.

[0081] It should be noted that, with respect to the various steps included in the strong real-time feature acquisition method provided in any of the above embodiments, unless there is a clear description in this document, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of these steps may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0082] Based on the same inventive concept, the present application also provides a strong real-time feature acquisition device. In some embodiments, Figure 3 As shown, the strong real-time feature acquisition device includes the following modules:

[0083] A call response module 110 is used to respond to a service call and obtain call-related input parameter information and a strong real-time feature list;

[0084] The feature data acquisition module 120 is used to record each strong real-time feature included in the strong real-time feature list as a target feature and execute data acquisition logic; the data acquisition logic includes:

[0085] Obtaining data source configuration information and data processing scripts associated with target features from the strong real-time feature system; the data source configuration information includes interface address information and interface input parameter configuration information of the data source interface associated with the target feature; the strong real-time feature system is used to manage multiple strong real-time feature data sources pre-configured based on multiple data source interface configurations, and data source configuration information and data processing scripts pre-configured for each strong real-time feature based on the strong real-time feature data sources associated with each strong real-time feature;

[0086] Extract interface input parameter information from the input parameter information according to the interface input parameter configuration information, call the interface corresponding to the interface address information based on the interface input parameter information, and obtain the interface output parameter information;

[0087] Use the data processing script to process the interface output parameter information and obtain the characteristic value of the target feature.

[0088] In some embodiments, when the feature acquisition module 120 obtains the data source configuration information and data processing script associated with the target feature from the strong real-time feature system, it is used to:

[0089] Check whether the data source configuration information and data processing script associated with the target feature pre-pulled from the strong real-time feature system exists in the memory;

[0090] If it exists, obtain the data source configuration information and data processing script associated with the target feature from the memory;

[0091] If it does not exist, query the strong real-time feature system for the data source configuration information and data processing script associated with the target feature, and obtain the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system.

[0092] In some embodiments, after the feature acquisition module 120 obtains the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system, it is also used to cache the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system into the memory.

[0093] In some embodiments, the interface input parameter configuration information includes parameter identifiers of one or more data source input parameters; when the feature acquisition module 120 extracts the interface input parameter information from the input parameter information according to the interface input parameter configuration information, it is used to extract the interface input parameter configuration information from the input parameter information including the parameter value corresponding to the parameter identifier of each data source input parameter to obtain the interface input parameter information.

[0094] In some embodiments, the data processing script associated with the target feature is a custom script written in advance based on the data acquisition requirements of the target feature and the interface output parameter configuration information of the data source interface related to the target feature.

[0095] In some embodiments, the data processing script is a groovy script; the feature acquisition module 120 uses the data processing script to process the interface output parameter information and obtain the feature value of the target feature, which is used to:

[0096] Use the interface output parameter information as the RESPONSE variable;

[0097] Execute the groovy script associated with the target feature; when the groovy script is executed, it extracts parameter information related to the target feature from the interface output parameter information, and performs data processing based on the parameter information related to the target feature;

[0098] Get the output data of the groovy script associated with the target feature as the feature value of the target feature.

[0099] In some embodiments, after executing the groovy script associated with the target feature, the feature extraction module 120 is further used to:

[0100] Check whether the result of data processing is an object;

[0101] If yes, perform JSON serialization on the object, and use the JSON serialization result of the object as the output data of the groovy script associated with the target feature;

[0102] If not, the result of data processing is used as the output data of the groovy script associated with the target feature.

[0103] For the specific limitations of the strong real-time feature acquisition device, please refer to the limitations of the strong real-time feature acquisition method above, which will not be repeated here. Each module in the above-mentioned strong real-time feature acquisition device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0104] In some embodiments, the present application provides a computer device, whose internal structure diagram can be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as data source configuration information and data processing scripts associated with target features. The specific stored data can also be found in the definitions in the above method embodiments. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a strong real-time feature acquisition method is implemented.

[0105] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0106] This embodiment also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the strong real-time feature acquisition method provided in any of the above embodiments can be implemented.

[0107] In some embodiments, the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the strong real-time feature acquisition method provided in any of the above embodiments are implemented.

[0108] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0109] Those skilled in the art can understand that all or part of the processes in the above method embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0110] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0111] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A strong real-time feature acquisition method, characterized in that: The method comprises: The target system responds to the business call, obtains the input parameter information and strong real-time feature list related to the call, and passes it into the pre-introduced feature query SDK; the target system deploys one or more strategies; the strong real-time feature is a feature among the features that the strategy depends on, and the corresponding feature value needs to be consistent with the relevant business system; The feature query SDK records each strong real-time feature included in the strong real-time feature list as a target feature and executes data acquisition logic; The data acquisition logic includes: Acquire the data source configuration information and data processing script associated with the target feature from the strong real-time feature system; the data source configuration information includes the interface address information and interface input parameter configuration information of the data source interface associated with the target feature; the strong real-time feature system is used to manage multiple strong real-time feature data sources pre-configured based on multiple data source interface configurations, and the data source configuration information and data processing script pre-configured for each strong real-time feature based on the strong real-time feature data sources related to each strong real-time feature; Extracting interface input parameter information from the input parameter information according to the interface input parameter configuration information, calling the interface corresponding to the interface address information based on the interface input parameter information, and obtaining interface output parameter information; The data processing script is used to process the interface output parameter information to obtain the characteristic value of the target characteristic.

2. The method according to claim 1, characterized in that Obtaining data source configuration information and data processing script associated with the target feature from the strong real-time feature system, including: Query whether there is data source configuration information and data processing script associated with the target feature that are pre-pulled from the strong real-time feature system in the memory; If it exists, obtain the data source configuration information and data processing script associated with the target feature from the memory; If not, query the strong real-time feature system for the data source configuration information and data processing script associated with the target feature, and obtain the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system.

3. The method according to claim 2, characterized in that After obtaining the data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system, the method further includes: The data source configuration information and data processing script associated with the target feature returned by the strong real-time feature system are cached in the memory.

4. The method according to claim 1, characterized in that The interface input parameter configuration information includes parameter identifiers of one or more data source input parameters; Extracting interface input parameter information from the input parameter information according to the interface input parameter configuration information includes: The interface input parameter configuration information including the parameter value corresponding to the parameter identifier of each data source input parameter is extracted from the input parameter information to obtain the interface input parameter information.

5. The method according to claim 1, characterized in that The data processing script associated with the target feature is a script that is custom-written in advance based on the data acquisition requirements of the target feature and the interface output parameter configuration information of the data source interface related to the target feature.

6. The method according to claim 5, characterized in that The data processing script is a groovy script; Using the data processing script to process the interface output parameter information to obtain the characteristic value of the target characteristic includes: Use the interface output parameter information as the RESPONSE variable; Executing a groovy script associated with the target feature; when the groovy script is executed, it extracts parameter information related to the target feature from the interface output parameter information, and performs data processing based on the parameter information related to the target feature; The output data of the groovy script associated with the target feature is obtained as the feature value of the target feature.

7. The method according to claim 6, characterized in that After executing the groovy script associated with the target feature, the method further comprises: Detecting whether a result of the data processing is an object; If yes, perform JSON serialization on the object, and use the JSON serialization result of the object as output data of the groovy script associated with the target feature; If not, the result of the data processing is used as the output data of the groovy script associated with the target feature.

8. A strong real-time feature acquisition device, characterized in that: The device comprises: A call response module is used to respond to a business call and obtain the input parameter information and strong real-time feature list related to the call; the target system deploys one or more strategies; the strong real-time feature is a feature that the strategy depends on, and the corresponding feature value needs to be consistent with the relevant business system; The feature data acquisition module is used to record each strong real-time feature included in the strong real-time feature list as a target feature and execute data acquisition logic; the data acquisition logic includes: Acquire the data source configuration information and data processing script associated with the target feature from the strong real-time feature system; the data source configuration information includes the interface address information and interface input parameter configuration information of the data source interface associated with the target feature; the strong real-time feature system is used to manage multiple strong real-time feature data sources pre-configured based on multiple data source interface configurations, and the data source configuration information and data processing script pre-configured for each strong real-time feature based on the strong real-time feature data sources related to each strong real-time feature; Extracting interface input parameter information from the input parameter information according to the interface input parameter configuration information, calling the interface corresponding to the interface address information based on the interface input parameter information, and obtaining interface output parameter information; The data processing script is used to process the interface output parameter information to obtain the characteristic value of the target characteristic.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.