API request processing method and device, computer equipment and storage medium

By preloading and querying the API request processing method of the cache system on the open banking platform, the problem of prolonged API response time and increased server pressure is solved, the API response speed and customer experience are improved, and resource utilization and operating costs are optimized. .

CN118819901APending Publication Date: 2024-10-22PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411005807.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing API technology faces problems such as extended response time and increased server pressure under the open banking model, which affects financial enterprise business growth and service quality.

Method used

Predict relevant popular data based on the target customer's historical data and preload it into the cache system. When responding to API requests, listen and query the cache system. If the target data exists, it will be returned directly. If it does not exist, it will query and update the backend service. Caching system.

Benefits of technology

Significantly improves API response speed and customer experience, reduces the load on back-end services, improves resource utilization and overall performance, and reduces operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819901A_ABST
    Figure CN118819901A_ABST
Patent Text Reader

Abstract

The invention discloses an API request processing method and device, computer equipment and a storage medium, and relates to the technical field of data processing.The method comprises the steps that related hot data is predicted based on historical data of a target customer, and the hot data is preloaded to a cache system; responding to an API request initiated by the target client, and monitoring the API request; querying whether target data required by the API request exists in the hot data of the cache system based on a monitoring result of the API request; and when the target data exists in the cache system, obtaining the target data in the cache system and returning the target data to the target customer. Through the API request processing method disclosed by the invention, the API response speed and the customer experience can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an API request processing method, device, computer equipment and non-volatile computer-readable storage medium. Background Art

[0002] At present, with the rapid development of financial technology, the open banking model has gradually become an important direction for financial service innovation. The open banking model is to transform the bank into a platform, allowing third-party developers and partners to access the bank's data and services through API (Application Programming Interface). In this model, API is the key interface connecting different financial service providers and third-party developers, and its efficient performance directly affects customer experience and data security. However, with the rapid development of the open banking ecosystem, the existing API technology faces problems such as extended response time and increased server pressure, which restrict the rapid growth of financial enterprises' business and the improvement of service quality.

[0003] Based on this, how to provide an API request processing method, apparatus, computer device and non-volatile computer-readable storage medium to effectively improve API response speed and customer experience is a problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide an API request processing method, apparatus, computer equipment and non-volatile computer-readable storage medium that can be used in financial technology or other related fields, aiming to solve the problem of how to effectively improve API response speed and customer experience.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A method for processing an API request, comprising:

[0007] Predict relevant hot data based on historical data of target customers, and preload the hot data into a cache system;

[0008] Respond to the API request initiated by the target customer and monitor the API request;

[0009] Based on the monitoring result of the API request, query whether the target data required by the API request exists in the popular data of the cache system;

[0010] When the target data exists in the cache system, the target data in the cache system is acquired and returned to the target client.

[0011] In a further technical solution, the API request processing method, wherein after querying whether the target data required by the API request exists in the hot data of the cache system based on the monitoring result of the API request, further comprises:

[0012] When the target data does not exist in the cache system, a query request is initiated to a backend service, so that the backend service returns the target data based on the query request.

[0013] In a further technical solution, the API request processing method, wherein when the target data does not exist in the cache system, a query request is initiated to a backend service so that the backend service returns the target data based on the query request, further comprises:

[0014] The target data returned by the backend service based on the query request is received, and the target data is returned to the target client.

[0015] In a further technical solution, the API request processing method, wherein after receiving the target data returned by the backend service based on the query request and returning the target data to the target client, further comprises:

[0016] The target data is stored in the cache system to update the cache system.

[0017] In a further technical solution, the API request processing method, wherein the related hot data is predicted based on the historical data of the target customer and the hot data is preloaded into the cache system, comprises:

[0018] Pre-build data prediction models;

[0019] Taking the historical data of the target customers as input, outputting the relevant hot data through the data prediction model;

[0020] The hot data is preloaded into the cache system.

[0021] In a further technical solution, the API request processing method, wherein the pre-built data prediction model comprises:

[0022] Collect a number of customer-related data prediction samples, perform preprocessing and feature extraction on the data prediction samples, and generate corresponding training sets, validation sets, and test sets;

[0023] Constructing an artificial intelligence model, training the artificial intelligence model according to the training set, and verifying and testing the artificial intelligence model according to the verification set and the test set, respectively;

[0024] The verification results and test results of the artificial intelligence model are obtained, and when it is detected that the verification results and the test results meet the preset requirements, a corresponding data prediction model is generated.

[0025] In a further technical solution, the API request processing method, wherein the historical data of the target customer is used as input, and the relevant hot data is output through the data prediction model, wherein:

[0026] The historical data includes personal information, account information, behavioral data, and external factors;

[0027] The popular data includes financial service data and financial product data.

[0028] An API request processing device, comprising:

[0029] A preloading module, used to predict relevant hot data based on historical data of target customers, and preload the hot data into a cache system;

[0030] A monitoring module, used to respond to the API request initiated by the target customer and monitor the API request;

[0031] A query module, used for querying whether the target data required by the API request exists in the popular data of the cache system based on the monitoring result of the API request;

[0032] The data return module is used to obtain the target data in the cache system and return it to the target client when the target data exists in the cache system.

[0033] A computer device, wherein the computer device comprises at least one processor; and

[0034] a memory communicatively connected to the at least one processor; wherein,

[0035] The memory stores a computer program that can be executed by the at least one processor. When the computer program is executed by the at least one processor, the API request processing method as described in any one of the above items can be implemented.

[0036] A non-volatile computer-readable storage medium stores a computer program, wherein the computer program, when executed by at least one processor, can implement any of the above-mentioned API request processing methods.

[0037] Compared with the prior art, the present invention provides an API request processing method, device, computer equipment and non-volatile computer-readable storage medium, wherein the method includes: predicting relevant hot data based on the historical data of the target customer, and preloading the hot data into the cache system; responding to the API request initiated by the target customer, and monitoring the API request; based on the monitoring result of the API request, querying whether the hot data of the cache system contains the target data required by the API request; when the target data exists in the cache system, obtaining the target data in the cache system and returning it to the target customer. In this way, the method of the present invention can effectively improve the API response speed and customer experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A flowchart of an API request processing method provided by an embodiment of the present invention.

[0040] Figure 2 A schematic diagram of functional modules of an API request processing device provided in an embodiment of the present invention.

[0041] Figure 3 A schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0043] In the description of the present invention, the terms "include", "including", "have", "contain", etc. are all open terms, which mean including but not limited to. The descriptions with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present application, and the order of steps therein is not limited and can be appropriately adjusted as needed.

[0044] Various non-limiting embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0045] At present, with the rapid development of financial technology, the open banking model has gradually become an important direction for financial service innovation. The open banking model is to transform the bank into a platform, allowing third-party developers and partners to access the bank's data and services through API (Application Programming Interface). In this model, API is the key interface connecting different financial service providers and third-party developers, and its efficient performance directly affects customer experience and data security. However, with the rapid development of the open banking ecosystem, the existing API technology faces problems such as extended response time and increased server pressure, which restrict the rapid growth of financial enterprises' business and the improvement of service quality.

[0046] Based on this, how to provide an API request processing method, apparatus, computer equipment and non-volatile computer-readable storage medium to effectively improve the API response speed and customer experience of the open banking platform is a problem that needs to be urgently solved by technical personnel in this field.

[0047] Therefore, to solve the above problem, please refer to Figure 1 The embodiment of the present invention provides an API request processing method, which is applied to an open banking platform, wherein the method comprises the steps of:

[0048] S100, predicting relevant hot data based on historical data of target customers, and preloading the hot data into a cache system;

[0049] S200, responding to the API request initiated by the target customer and monitoring the API request;

[0050] S300, based on the monitoring result of the API request, query whether the target data required by the API request exists in the popular data of the cache system;

[0051] S400: When the target data exists in the cache system, the target data in the cache system is obtained and returned to the target client.

[0052] Furthermore, the API request processing method, wherein the step S100, predicting relevant hot data based on historical data of target customers and preloading the hot data into a cache system, comprises:

[0053] Pre-build data prediction models;

[0054] Taking the historical data of the target customers as input, outputting the relevant hot data through the data prediction model;

[0055] The hot data is preloaded into the cache system.

[0056] Furthermore, in the API request processing method, the pre-building of the data prediction model comprises:

[0057] Collect a number of customer-related data prediction samples, perform preprocessing and feature extraction on the data prediction samples, and generate corresponding training sets, validation sets, and test sets;

[0058] Constructing an artificial intelligence model, training the artificial intelligence model according to the training set, and verifying and testing the artificial intelligence model according to the verification set and the test set, respectively;

[0059] The verification results and test results of the artificial intelligence model are obtained, and when it is detected that the verification results and the test results meet the preset requirements, a corresponding data prediction model is generated.

[0060] Furthermore, in the API request processing method, the historical data of the target customer is used as input, and the relevant hot data is output through the data prediction model, wherein:

[0061] The historical data includes personal information, account information, behavioral data, and external factors;

[0062] The popular data includes financial service data and financial product data.

[0063] In the specific implementation, in this embodiment, the following is a description of the specific steps for the generation process of the data prediction model:

[0064] Step S1: Data Collection

[0065] Purpose: To collect customer-related data based on the open banking platform, which will be used for predictive analysis;

[0066] Content: may include customer information, transaction history, account query frequency, login time, customer behavior patterns, market interest rate changes, etc.;

[0067] Step S2: Data preprocessing

[0068] 1. Data cleaning: remove or fill missing values, handle outliers and duplicate records;

[0069] 2. Data transformation: Convert text or categorical data into numerical data, such as using label encoding or one-hot encoding;

[0070] 3. Data standardization: scaling the data to a uniform scale, such as between 0 and 1 or with zero mean and unit variance;

[0071] Step S3: Feature extraction

[0072] 1. Feature selection: Select features from the original data that have a significant impact on the prediction target;

[0073] 2. Feature engineering: create new features or transform existing features to improve the predictive power of the model; Step S4: Dataset division

[0074] 1. Training set: Use most of the data as the training set for model training;

[0075] 2. Validation set: A portion of the remaining data is divided as a validation set for preliminary validation of the model;

[0076] 3. Test set: reserve a portion of the data as the test set for the final evaluation of the model’s performance;

[0077] Step S5: Model construction

[0078] 1. Model selection: Choose an appropriate AI model based on the nature of the prediction task (e.g., classification, regression, clustering);

[0079] 2. Parameter initialization: Initialize model parameters to prepare for training;

[0080] Step S6: Model training

[0081] 1. Training process: Use the training set data to train the model and adjust the model parameters to minimize the prediction error;

[0082] Step S7: Model verification and testing

[0083] 1. Validation process: Use validation set data to validate the model and adjust model parameters to avoid overfitting;

[0084] 2. Testing process: Use the test set data to conduct a final test on the model to evaluate the generalization ability of the model;

[0085] Step S8: Model evaluation

[0086] 1. Evaluation indicators: Select appropriate evaluation indicators according to business needs, such as accuracy, recall, F1 score, mean square error, etc.;

[0087] 2. Result analysis: Analyze the verification results and test results to determine whether the model meets the preset performance requirements;

[0088] Step S9: Model optimization

[0089] 1. Parameter tuning: Based on the validation and testing results, further adjust the model parameters using techniques such as cross validation and grid search;

[0090] 2. Model selection: You may need to try different models or algorithms to find the best solution; Step S10: Model deployment

[0091] 1. Generate a prediction model: When the model meets all preset requirements, generate the final data prediction model;

[0092] 2. Model deployment: Deploy the trained model to the production environment for actual data prediction tasks;

[0093] Step S11: Monitoring and maintenance

[0094] 1. Performance monitoring: Continuously monitor the performance of the model in actual applications to ensure its prediction accuracy;

[0095] 2. Model update: Regularly retrain the model to adapt to new data and market changes;

[0096] Through the above steps, it can be ensured that the generated data prediction model is both accurate and reliable, and can provide strong data support for financial decision-making;

[0097] Furthermore, based on the generated data prediction model, the historical data of the target customer is used as input, the relevant hot data is output through the data prediction model, and the hot data is preloaded into the cache system to reduce the frequent access to the backend service and improve the response speed and performance of the API; the detailed steps of the specific process are as follows:

[0098] Step S1: Prepare historical data

[0099] 1. Personal information: including the customer's name, age, gender, contact information, etc.;

[0100] 2. Account information: including account type, account balance, account status, historical transaction records, etc.;

[0101] 3. Behavioral data: including login frequency, transaction type, transaction time, preference settings, etc.;

[0102] 4. External factors: including market interest rates, economic indices, policy changes, etc.;

[0103] Step S2: Data preprocessing

[0104] 1. Data cleaning: process missing values ​​and outliers to ensure data quality;

[0105] 2. Data conversion: convert non-numeric data into numeric data, such as using label encoding or one-hot encoding;

[0106] 3. Data standardization: scaling the data to a uniform scale, such as between 0 and 1 or with zero mean and unit variance;

[0107] Step S3: Use the data to predict the model

[0108] 1. Input historical data: input the preprocessed historical data into the data prediction model;

[0109] 2. Model prediction: The model analyzes historical data and predicts related hot data;

[0110] Step S4: Determine hot data

[0111] Financial services data: may include loan services, payment services, investment consulting, etc.;

[0112] Financial product data: may include stocks, bonds, funds, insurance products, etc.;

[0113] Step S5: Preload popular data into the cache system

[0114] 1. Cache strategy: Select an appropriate cache strategy based on prediction results and business needs;

[0115] 2. Data loading: pre-load the predicted popular data into the cache system, such as memory cache, distributed cache server, etc.;

[0116] Step S6: Cache management

[0117] 1. Cache update: Regularly and dynamically update the data in the cache to ensure the freshness and accuracy of the data;

[0118] 2. Cache expiration: Set a reasonable cache expiration strategy, such as time-based expiration or content-based expiration;

[0119] Step S7: Performance monitoring

[0120] 1. Monitor cache hit rate: Monitor the hit rate of popular data in the cache system and evaluate the effectiveness of the preloading strategy;

[0121] 2. Monitor performance: Monitor the performance of the open banking platform to ensure that the pre-loaded strategy does not negatively impact the performance of the open banking platform;

[0122] Step S8: Optimization and adjustment

[0123] 1. Model optimization: According to the actual application effect, continuously optimize the data prediction model to improve the prediction accuracy;

[0124] 2. Policy adjustment: Dynamically adjust preloading strategy and cache management strategy based on monitoring results and business needs;

[0125] Step S9: Security and Compliance

[0126] 1. Data security: Ensure that the security and privacy of customer data are protected during the preloading and caching process;

[0127] 2. Compliance: comply with relevant data protection regulations and financial industry compliance requirements;

[0128] Through the above steps, it can be ensured that on the open banking platform, target customers can quickly access the financial services and products they are most likely to need, thereby improving the target customers' experience and satisfaction; at the same time, through intelligent prediction and preloading strategies, the resource utilization of the open banking platform can be optimized, and the response speed and stability of the service can be improved.

[0129] Further, the API request processing method, wherein the step S200, responds to the API request initiated by the target customer and monitors the API request;

[0130] In the specific implementation, in this embodiment, responding to the API request initiated by the target customer and monitoring the API request is an important step to ensure service quality and optimize customer experience. The detailed steps of the specific process are as follows:

[0131] Step S1: Receive API request

[0132] Receiving mechanism: ensures that API requests from target customers can be received, either through an API gateway or directly through an application programming interface;

[0133] Step S2: Request verification

[0134] Verification content: Check the validity of API requests, including request format, permission verification, data integrity, etc.

[0135] Step S3: Listen for API requests

[0136] 1. Monitoring mechanism: Implement a monitoring mechanism to monitor and record the details of API requests;

[0137] 2. Record content: record the timestamp, request type, request parameters, source IP and other information of the request;

[0138] Step S4: Request processing

[0139] Business logic: Execute corresponding business logic processing according to the content of API request, such as data query, calculation or calling other services;

[0140] Step S5: Query cache

[0141] 1. Cache check: Before processing an API request, check whether the data required by the request exists in the cache system;

[0142] 2. Cache strategy: decide whether to provide data from the cache based on the cache strategy;

[0143] Step S6: Data provision

[0144] Data source: Provide data from the cache system or backend service based on the cache check result;

[0145] Data consistency: Ensure that the provided data is up-to-date and consistent with the backend data source;

[0146] Step S7: Respond to API request

[0147] 1. Response content: Build the API response, including necessary data and status information;

[0148] 2. Response time: Optimize response time to ensure quick response to customer requests;

[0149] Step S8: Monitoring and logging

[0150] 1. Performance monitoring: monitor API response time and the load of the open banking platform to ensure the performance of the open banking platform;

[0151] 2. Logging: Record detailed API request and response logs to facilitate problem tracking and performance analysis;

[0152] Step S9: Security and Compliance

[0153] 1. Security measures: Implement security measures, such as API encryption and access control, to protect the security of data transmission;

[0154] 2. Compliance check: Ensure that API request processing complies with relevant laws, regulations and industry standards;

[0155] Step S10: Exception handling

[0156] 1. Error handling: Errors that may occur during request processing, such as database query failure, service unavailability, etc.;

[0157] 2. Abnormal feedback: Feedback error information to customers and provide corresponding solutions or contact information;

[0158] Step S11: Optimization and adjustment

[0159] 1. Performance optimization: Optimize the API request processing flow and the performance of the open banking platform based on monitoring results and log analysis;

[0160] 2. Policy adjustment: Adjust cache strategy and resource allocation to cope with different loads and requirements;

[0161] Through the above steps, we can ensure that API requests are effectively responded to and processed. At the same time, through the monitoring mechanism, we can continuously optimize the performance and customer experience of the open banking platform.

[0162] Further, the API request processing method, wherein the step S300, based on the monitoring result of the API request, queries whether the target data required by the API request exists in the popular data of the cache system;

[0163] Further, in the API request processing method, in step S400, when the target data exists in the cache system, the target data in the cache system is obtained and returned to the target client;

[0164] Furthermore, the API request processing method, wherein, after querying the hot data of the cache system based on the monitoring result of the API request whether there is the target data required by the API request, further comprises:

[0165] When the target data does not exist in the cache system, a query request is initiated to a backend service, so that the backend service returns the target data based on the query request.

[0166] Furthermore, the API request processing method, wherein when the target data does not exist in the cache system, a query request is initiated to a backend service so that the backend service returns the target data based on the query request, further comprises:

[0167] The target data returned by the backend service based on the query request is received, and the target data is returned to the target client.

[0168] Furthermore, the API request processing method, wherein after receiving the target data returned by the backend service based on the query request and returning the target data to the target client, further comprises:

[0169] The target data is stored in the cache system to update the cache system.

[0170] In the specific implementation, in this embodiment, the hot data in the cache system is queried based on the monitoring result of the API request to query whether the target data required by the API request exists in the hot data of the cache system. The processing steps of the specific process are as follows:

[0171] Step S1: Listen for API requests

[0172] Monitoring: Monitor the API requests from target customers and record key information such as request type, request parameters, request time, etc.

[0173] Step S2: Analyze monitoring results

[0174] Extract information: Extract specific data identifiers required for API requests from monitoring results, such as customer ID, query keywords, and other information;

[0175] Step S3: Query the cache system

[0176] Cache check: Based on the extracted information, check whether the corresponding target data exists in the cache system;

[0177] Step S4: Verify cache data

[0178] Data consistency: Verify whether the target data in the cache system is consistent with the original data source to ensure the accuracy and real-time performance of the target data;

[0179] Step S5: Process cache hit

[0180] 1. Return data: If the cache hits, that is, the required target data exists in the cache system, it is directly read from the cache system and returned to the requester;

[0181] 2. Reduce latency: Cache hits can significantly reduce data access latency and improve response speed; Step S6: Process cache misses

[0182] 1. Backend service query: If the cache misses, that is, the required target data does not exist in the cache system, a query request needs to be initiated to the backend service;

[0183] 2. Data loading: After obtaining the target data from the backend service, store the target data in the cache system and update the cache system as needed so that it can be hit the next time the request is made;

[0184] Step S7: Update cache strategy

[0185] Dynamic adjustment: Dynamically adjust the cache strategy based on the monitoring results of API requests and cache hits, such as adjusting the cache size, update frequency, etc.

[0186] Step S8: Recording and analysis

[0187] Logging: records the processing of all API requests, including cache hits and misses;

[0188] Performance analysis: Analyze the performance of the cache system and identify bottlenecks and optimization points;

[0189] Step S9: Security and Privacy Protection

[0190] Data security: Ensure that the data in the cache meets security standards to prevent data leakage;

[0191] Privacy compliance: comply with relevant data protection regulations and ensure the privacy of customer data;

[0192] Step S10: Exception handling

[0193] Error handling: handle errors that may occur when querying the cache system and backend services to ensure the stability of the open banking platform;

[0194] Customer feedback: Provide customers with clear error messages and solutions when errors occur;

[0195] Step S11: Continuous Optimization

[0196] Performance monitoring: Continuously monitor the performance of the open banking platform to ensure the efficiency of the cache system and API request processing;

[0197] Strategy optimization: Continuously optimize cache strategies and open banking platform configurations based on monitoring results and customer feedback;

[0198] Through the above steps, we can ensure that we can respond to and process API requests efficiently and quickly, ensure the consistency and accuracy of data, and improve customer experience. At the same time, through the intelligent caching mechanism, we can improve the efficiency and response speed of data processing and reduce the load on backend services.

[0199] It can be seen from the above method embodiments that the API request processing method provided by the present invention at least includes: predicting relevant hot data based on the historical data of the target customer, and preloading the hot data into the cache system; responding to the API request initiated by the target customer, and monitoring the API request; based on the monitoring result of the API request, querying whether the hot data of the cache system contains the target data required by the API request; when the target data exists in the cache system, obtaining the target data in the cache system and returning it to the target customer; etc. In this way, the API request processing method provided by the present invention can effectively improve the API response speed and customer experience.

[0200] Specifically, the API request processing method provided by the present invention, when applied to an open banking platform, can at least achieve the following beneficial technical effects:

[0201] 1. Through intelligent caching and data preloading, popular data can be loaded into the cache system in advance, thereby reducing frequent access to backend services and greatly improving the response speed and performance of the API; intelligent caching technology can more effectively utilize memory resources, store popular data, reduce the load on backend services, reduce server resource consumption, and improve data access efficiency, thereby improving the resource utilization and overall performance of the open banking platform;

[0202] 2. It can keep the open banking API in a leading position in terms of performance, customer experience and stability, and enhance the competitiveness of products in the market; at the same time, by reducing the load of back-end services, it can reduce the cost of using server resources and the consumption of data transmission, thereby reducing operating costs;

[0203] 3. It can significantly improve customer experience. Customers can obtain the required data faster, accelerate API response speed and data acquisition efficiency, and enhance customer satisfaction with the service.

[0204] It should be understood that, although the present application provides method operation steps as described in the embodiments or flowcharts, more or less operation steps may be included based on conventional or non-creative labor, and these operation steps are not necessarily performed in sequence according to the embodiment or flowchart. The order of steps listed in the embodiment or flowchart is only one way of executing the order of many steps, and does not represent the only execution order. It should be noted that there is not necessarily a certain order between the above steps. A person of ordinary skill in the art can understand from the description of the embodiment of the present invention that in different embodiments, the above steps may have different execution orders, that is, they may be executed in parallel, or they may be executed in exchange, etc. Moreover, at least a part of the steps in the embodiment or flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but may be executed in turn, alternately or synchronously with other steps or at least a part of the sub-steps or stages of other steps.

[0205] Based on the above method embodiment, please refer to Figure 2 Another embodiment of the present invention further provides an API request processing device, which is applied to an open banking platform, wherein the device includes:

[0206] A preloading module 11 is used to predict relevant hot data based on historical data of target customers, and preload the hot data into a cache system;

[0207] A monitoring module 12, used to respond to the API request initiated by the target customer and monitor the API request;

[0208] A query module 13, configured to query whether the target data required by the API request exists in the popular data of the cache system based on the monitoring result of the API request;

[0209] The data returning module 14 is used to obtain the target data in the cache system and return it to the target client when the target data exists in the cache system.

[0210] The specific implementation method is shown in the above method embodiment, which will not be described again here.

[0211] It can be seen from the above device embodiments that the API request processing device provided by the present invention at least includes: predicting related hot data based on historical data of target customers, and preloading the hot data into the cache system; responding to API requests initiated by the target customers, and monitoring the API requests; based on the monitoring results of the API requests, querying whether the hot data of the cache system contains the target data required by the API request; when the target data exists in the cache system, obtaining the target data in the cache system and returning it to the target customer; etc. In this way, the API request processing device provided by the present invention can effectively improve the API response speed and customer experience.

[0212] Specifically, the API request processing device provided by the present invention, when applied to an open banking platform, can at least achieve the following beneficial technical effects:

[0213] 1. Through intelligent caching and data preloading, popular data can be loaded into the cache system in advance, thereby reducing frequent access to backend services and greatly improving the response speed and performance of the API; intelligent caching technology can more effectively utilize memory resources, store popular data, reduce the load on backend services, reduce server resource consumption, and improve data access efficiency, thereby improving the resource utilization and overall performance of the open banking platform;

[0214] 2. It can keep the open banking API in a leading position in terms of performance, customer experience and stability, and enhance the competitiveness of products in the market; at the same time, by reducing the load of back-end services, it can reduce the cost of using server resources and the consumption of data transmission, thereby reducing operating costs;

[0215] 3. It can significantly improve customer experience. Customers can obtain the required data faster, accelerate API response speed and data acquisition efficiency, and enhance customer satisfaction with the service.

[0216] Based on the above method embodiment, please refer to Figure 3 Another embodiment of the present invention further provides a computer device, wherein the computer device 10 comprises:

[0217] memory 120 and one or more processors 110, Figure 3 A processor 110 is used as an example for the description. The processor 110 and the memory 120 may be connected via a communication bus or other means. Figure 3 The example of connecting via a communication bus is taken as an example.

[0218] The processor 110 is used to complete various control logics of the computer device 10. It can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components. In addition, the processor 110 can also be any traditional processor, microprocessor or state machine. The processor 110 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP, or any other such configuration.

[0219] The memory 120 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the computer program corresponding to the API request processing method in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the computer device 10 by running the non-volatile software programs, instructions and units stored in the memory 120, that is, implementing the API request processing method in the above method embodiment.

[0220] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an application required for operating the device or at least one function; the data storage area may store data created according to the use of the computer device 10, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely arranged relative to the processor 110, and these remote memories may be connected to the computer device 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0221] The computer device 10, wherein one or more units are stored in the memory 120, when executed by one or more processors 110, can implement the API request processing method in any of the above method embodiments, for example, can implement the above described Figure 1 The method comprises steps S100 to S400.

[0222] The specific implementation method is shown in the above method embodiment, which will not be described again here.

[0223] It can be seen from the above computer device embodiments that the computer device provided by the present invention can at least achieve: predicting related hot data based on historical data of target customers, and preloading the hot data into the cache system; responding to API requests initiated by the target customers, and monitoring the API requests; based on the monitoring results of the API requests, querying whether the hot data of the cache system contains the target data required by the API request; when the target data exists in the cache system, obtaining the target data in the cache system and returning it to the target customer; etc. In this way, the computer device of the present invention can effectively improve the API response speed and customer experience.

[0224] Specifically, the computer device provided by the present invention, when applied to the open banking platform, can at least achieve the following beneficial technical effects:

[0225] 1. Through intelligent caching and data preloading, popular data can be loaded into the cache system in advance, thereby reducing frequent access to backend services and greatly improving the response speed and performance of the API; intelligent caching technology can more effectively utilize memory resources, store popular data, reduce the load on backend services, reduce server resource consumption, and improve data access efficiency, thereby improving the resource utilization and overall performance of the open banking platform;

[0226] 2. It can keep the open banking API in a leading position in terms of performance, customer experience and stability, and enhance the competitiveness of products in the market; at the same time, by reducing the load of back-end services, it can reduce the cost of using server resources and the consumption of data transmission, thereby reducing operating costs;

[0227] 3. It can significantly improve customer experience. Customers can obtain the required data faster, accelerate API response speed and data acquisition efficiency, and enhance customer satisfaction with the service.

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

[0229] Based on the above method embodiments, another embodiment of the present invention further provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by at least one processor, the API request processing method in any of the above method embodiments can be implemented, for example, the above described Figure 1The method comprises steps S100 to S400.

[0230] The specific implementation method is shown in the above method embodiment, which will not be described again here.

[0231] From the above non-volatile computer-readable storage medium embodiments, it can be known that the non-volatile computer-readable storage medium provided by the present invention can at least achieve: predicting related hot data based on historical data of target customers, and preloading the hot data into the cache system; responding to API requests initiated by the target customers, and monitoring the API requests; based on the monitoring results of the API requests, querying whether the hot data of the cache system contains the target data required by the API request; when the target data exists in the cache system, obtaining the target data in the cache system and returning it to the target customer; etc. In this way, the non-volatile computer-readable storage medium of the present invention can effectively improve the API response speed and customer experience.

[0232] Specifically, the non-volatile computer-readable storage medium provided by the present invention, when applied to an open banking platform, can at least achieve the following beneficial technical effects:

[0233] 1. Through intelligent caching and data preloading, popular data can be loaded into the cache system in advance, thereby reducing frequent access to backend services and greatly improving the response speed and performance of the API; intelligent caching technology can more effectively utilize memory resources, store popular data, reduce the load on backend services, reduce server resource consumption, and improve data access efficiency, thereby improving the resource utilization and overall performance of the open banking platform;

[0234] 2. It can keep the open banking API in a leading position in terms of performance, customer experience and stability, and enhance the competitiveness of products in the market; at the same time, by reducing the load of back-end services, it can reduce the cost of using server resources and the consumption of data transmission, thereby reducing operating costs;

[0235] 3. It can significantly improve customer experience. Customers can obtain the required data faster, accelerate API response speed and data acquisition efficiency, and enhance customer satisfaction with the service.

[0236] As an example, the non-volatile storage medium can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable ROM (EEPROM), or a flash memory. Volatile memory can include a random access memory (RAM) as an external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms such as synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synch link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environment described herein are intended to include one or more of these and / or any other suitable types of memory.

[0237] Based on the above method embodiments, another embodiment of the present invention further provides a computer program product, the computer program product includes a computer program stored on a non-volatile computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a processor, the API request processing method in any of the above method embodiments can be implemented, for example, the above described Figure 1 The method comprises steps S100 to S400.

[0238] The specific implementation method is shown in the above method embodiment, which will not be described again here.

[0239] The embodiments described above are merely illustrative, in which the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0240] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can exist in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0241] Conditional language such as "can," "can," "might," or "may," unless specifically stated otherwise or otherwise understood within the context as used, is generally intended to convey, among other things, that a particular embodiment can include (while other embodiments do not) a particular feature, element, and / or operation. Thus, such conditional language is also generally intended to imply that a feature, element, and / or operation is required for one or more embodiments anyway or that one or more embodiments must include logic for determining, with or without input or prompting, whether such features, elements, and / or operations are included or will be performed in any particular embodiment.

[0242] What has been described herein, in this specification and in the drawings includes examples that can provide an API request processing method, apparatus, computer equipment, and non-volatile computer-readable storage medium. Of course, it is not possible to describe every conceivable combination of elements and / or methods for the purpose of describing the various features of the present disclosure, but it can be recognized that many other combinations and permutations of the disclosed features are possible. Therefore, it is obvious that various modifications can be made to the present disclosure without departing from the scope or spirit of the present disclosure, but all these various modifications should belong to the scope of protection of the claims attached to the present invention. In addition, or in an alternative, other embodiments of the present disclosure may be obvious from consideration of the present specification and drawings and from the practice of the present disclosure as presented herein. It is intended that the examples presented in this specification and the drawings are considered to be illustrative and not restrictive in all respects. Although specific terms are used herein, they are used in a general and descriptive sense and are not used for limiting purposes.

Claims

1. A method for processing an API request, characterized in that: include: Predict relevant hot data based on historical data of target customers, and preload the hot data into a cache system; Respond to the API request initiated by the target customer and monitor the API request; Based on the monitoring result of the API request, query whether the target data required by the API request exists in the popular data of the cache system; When the target data exists in the cache system, the target data in the cache system is acquired and returned to the target client.

2. The API request processing method according to claim 1, characterized in that: After querying whether the hot data of the cache system contains the target data required by the API request based on the monitoring result of the API request, the method further includes: When the target data does not exist in the cache system, a query request is initiated to a backend service, so that the backend service returns the target data based on the query request.

3. The API request processing method according to claim 2, characterized in that: When the target data does not exist in the cache system, a query request is initiated to a backend service so that the backend service returns the target data based on the query request, and further includes: The target data returned by the backend service based on the query request is received, and the target data is returned to the target client.

4. The API request processing method according to claim 3, characterized in that: After receiving the target data returned by the backend service based on the query request and returning the target data to the target client, the method further includes: The target data is stored in the cache system to update the cache system.

5. The API request processing method according to any one of claims 1 to 4, characterized in that: The predicting of relevant hot data based on historical data of target customers and preloading the hot data into a cache system includes: Pre-build data prediction models; Taking the historical data of the target customers as input, outputting the relevant hot data through the data prediction model; The hot data is preloaded into the cache system.

6. The API request processing method according to claim 5, characterized in that: The pre-built data prediction model includes: Collect a number of customer-related data prediction samples, perform preprocessing and feature extraction on the data prediction samples, and generate corresponding training sets, validation sets, and test sets; Constructing an artificial intelligence model, training the artificial intelligence model according to the training set, and verifying and testing the artificial intelligence model according to the verification set and the test set, respectively; The verification results and test results of the artificial intelligence model are obtained, and when it is detected that the verification results and the test results meet the preset requirements, a corresponding data prediction model is generated.

7. The API request processing method according to claim 6, characterized in that: The target customer's historical data is used as input, and the relevant hot data is output through the data prediction model, wherein: The historical data includes personal information, account information, behavioral data, and external factors; The popular data includes financial service data and financial product data.

8. An API request processing device, characterized in that: include: A preloading module, used to predict relevant hot data based on historical data of target customers, and preload the hot data into a cache system; A monitoring module, used to respond to the API request initiated by the target customer and monitor the API request; A query module, used for querying whether the target data required by the API request exists in the popular data of the cache system based on the monitoring result of the API request; The data returning module is used to obtain the target data in the cache system and return it to the target client when the target data exists in the cache system.

9. A computer device, characterized in that: The computer device comprises at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. When the computer program is executed by the at least one processor, the API request processing method according to any one of claims 1 to 7 can be implemented.

10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by at least one processor, the API request processing method according to any one of claims 1 to 7 can be implemented.