WO2020098075A1 - 金融数据处理方法、装置、设备和存储介质 - Google Patents

金融数据处理方法、装置、设备和存储介质 Download PDF

Info

Publication number
WO2020098075A1
WO2020098075A1 PCT/CN2018/122835 CN2018122835W WO2020098075A1 WO 2020098075 A1 WO2020098075 A1 WO 2020098075A1 CN 2018122835 W CN2018122835 W CN 2018122835W WO 2020098075 A1 WO2020098075 A1 WO 2020098075A1
Authority
WO
WIPO (PCT)
Prior art keywords
processing
financial data
preset
processor
state parameter
Prior art date
Application number
PCT/CN2018/122835
Other languages
English (en)
French (fr)
Inventor
宋斌
祁亚欣
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020098075A1 publication Critical patent/WO2020098075A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5017Task decomposition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation

Definitions

  • This application relates to the field of data processing, and in particular to financial data processing methods, devices, equipment, and storage media.
  • the main purpose of the present application is to provide a financial data processing method, device, equipment and storage medium, and aims to improve the efficiency of financial data processing by increasing the utilization rate of processing resources of the processor.
  • the present application provides a financial data processing method, which includes the following steps:
  • Each of the processing subtasks is executed by the preset processor to obtain processing subresults corresponding to the processing subtasks, and the processing subresults are aggregated to form a processing result.
  • the present application also provides a financial data processing device, the financial data processing device includes:
  • a request receiving module used to receive a financial data processing request and obtain processing items corresponding to the financial data processing request and a set of financial data to be processed;
  • the utilization calculation module is used to obtain the current state parameter of the preset processor and calculate the current processing resource utilization rate of the preset processor according to the current state parameter;
  • a task dividing module configured to divide and combine the processing items and the financial data set to generate processing subtasks when the processing resource utilization rate is less than a preset utilization threshold value
  • the task execution module is configured to execute each of the processing subtasks through the preset processor, obtain processing subresults corresponding to the processing subtasks, and aggregate the processing subresults to form a processing result.
  • the present application also provides a financial data processing device
  • the financial data processing device includes a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, wherein:
  • this application also provides a computer storage medium
  • Computer-readable instructions are stored on the computer storage medium. When the computer-readable instructions are executed by the processor, the steps of the financial data processing method described above are implemented.
  • a server receives a financial data processing request, obtains processing items corresponding to the financial data processing request, and a set of financial data to be processed; obtains preset processing The current state parameter of the processor, and calculate the current processing resource utilization rate of the preset processor according to the current state parameter; when the processing resource utilization rate is less than the preset utilization threshold value, the processing items and the The financial data set is divided and combined to generate processing subtasks; the processing subtasks are executed by the preset processor to obtain processing subresults corresponding to the processing subtasks, and the processing subresults are aggregated to form process result.
  • the server obtains the state parameters of the processor, and judges whether the financial The data is divided and processed. If the financial data in the financial data set needs to be divided, the financial data in the financial data set is divided to generate processing subtasks, and each of the processing subtasks is executed by a preset processor to fully Use the processing resources of the processor in the server to improve the utilization rate of the processing resources of the processor and improve the efficiency of financial data processing.
  • FIG. 1 is a schematic structural diagram of a device for a hardware operating environment involved in an embodiment of the present application
  • FIG. 2 is a schematic flowchart of the first embodiment of the financial data processing method of the present application.
  • FIG. 3 is a schematic diagram of functional modules of an embodiment of the financial data processing device of the present application.
  • FIG. 1 is a server (also called a financial data processing device) of a hardware operating environment involved in an embodiment of the present application, wherein the financial data processing device may be composed of a separate financial data processing device, or may be composed of Other devices are combined with financial data processing devices to form the structure diagram.
  • server also called a financial data processing device
  • the financial data processing device may be composed of a separate financial data processing device, or may be composed of Other devices are combined with financial data processing devices to form the structure diagram.
  • the server in the embodiment of the present application refers to a computer that manages resources and provides services to users, and is generally divided into a file server, a database server, and an application-readable instruction server.
  • a computer or computer system running the above software is also called a server.
  • the server may include a processor 1001, such as a central processor (Central Processing Unit, CPU), network interface 1004, user interface 1003, memory 1005, communication bus 1002, chipset, disk system, network and other hardware.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as wireless fidelity WIreless-FIdelity, WIFI interface).
  • the memory 1005 may be a high-speed random access memory (random access memory, RAM), can also be a stable memory (non-volatile memory), such as disk storage.
  • the memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
  • the server may also include a camera, RF (Radio Frequency (radio frequency) circuit, sensor, audio circuit, WiFi module; input unit, display screen, touch screen; network interface can be selected in addition to the wireless interface in addition to WiFi, Bluetooth, probe, etc.
  • RF Radio Frequency (radio frequency) circuit
  • sensor Sensor
  • audio circuit WiFi module
  • WiFi module input unit
  • display screen touch screen
  • network interface can be selected in addition to the wireless interface in addition to WiFi, Bluetooth, probe, etc.
  • FIG. 1 does not constitute a limitation on the server, and may include more or less components than shown, or combine some components, or arrange different components.
  • the computer software product is stored in a storage medium (storage medium: also called computer storage medium, computer medium, readable medium, readable storage medium, computer readable storage medium, or directly called medium, etc., storage medium It may be a non-volatile readable storage medium, such as RAM, magnetic disk, or optical disk, including several instructions to make a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the application
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and computer-readable instructions.
  • the network interface 1004 is mainly used to connect to a back-end database and perform data communication with the back-end database;
  • the user interface 1003 is mainly used to connect to a client (client, also called a user terminal or terminal, an embodiment of this application
  • client also called a user terminal or terminal
  • the terminal can be a fixed terminal or a mobile terminal, such as a smart air conditioner with a networking function, a smart light, a smart power supply, a smart speaker, a self-driving car, a PC, a smartphone, a tablet computer, an e-book reader, a portable computer, etc.
  • This embodiment proposes a financial data processing method.
  • the financial data processing method in this embodiment is applied to the server shown in FIG. 1.
  • the financial data processing method includes:
  • Step S10 Receive a financial data processing request, and obtain processing items corresponding to the financial data processing request and a set of financial data to be processed.
  • the server receives the financial data processing request, where the financial data processing request can be triggered in different ways, for example, the user clicks on the terminal screen Press the "Process" button to trigger the financial data processing request; or the user sends a voice command through the terminal to trigger the financial data processing request.
  • the terminal sends the financial data processing request to the server.
  • the server receives the financial data processing request and obtains the corresponding financial data processing request.
  • Processing items and financial data sets to be processed; among them, the processing items in the invention include processing steps, processing time, etc .; financial data sets can contain different types of financial data, such as credit data, financial business data; financial data sets It can also contain one or more financial data of the same type, for example, credit data of different customers.
  • Step S20 Obtain the current state parameter of the preset processor, and calculate the current processing resource utilization rate of the preset processor according to the current state parameter.
  • the server After the server obtains the processing items and the financial data set to be processed, the server obtains the current state parameters of the preset processor to determine the processing method of the financial data according to the current state parameters, that is, the server determines the preset processing of the user's financial data processing
  • the processor in this application may be one or more.
  • a processor is used as an example for illustration.
  • the server obtains the performance parameters of the processor (the performance parameters include the core structure (for example, CPU core Number), main frequency, external frequency, frequency multiplier, interface, cache, multimedia instruction set, manufacturing process, voltage, packaging form, integer unit and floating point unit, etc.) and performance parameters corresponding to the current state parameters (current state parameters include: The current working temperature of the processor, the efficiency of the processor at the time, etc.), the server calculates the processing resource utilization rate of the processor according to the obtained current state parameters (processing resource utilization rate refers to the actual resource usage of the processor and the total amount of processor resources Ratio).
  • the performance parameters include the core structure (for example, CPU core Number), main frequency, external frequency, frequency multiplier, interface, cache, multimedia instruction set, manufacturing process, voltage, packaging form, integer unit and floating point unit, etc.
  • performance parameters corresponding to the current state parameters current state parameters include: The current working temperature of the processor, the efficiency of the processor at the time, etc.
  • the server calculates the processing resource utilization rate of the processor according to the obtained current state parameters (process
  • the server queries the preset state parameter table (the correspondence relationship between performance parameters and state parameters is preset in the preset state parameter table), the server obtains the maximum state parameter corresponding to each performance parameter in the preset state parameter table, and then, the server Performing a ratio operation between the maximum state parameter and the current state parameter to obtain the processing resource utilization rate of the processor.
  • step S20 in this embodiment includes:
  • Step a1 Obtain the current state parameter of the preset processor, and query the preset state parameter table to obtain the maximum state parameter corresponding to the current state parameter;
  • Step b1 Perform a ratio operation between the current state parameter and the corresponding maximum state parameter to obtain a state ratio of the preset processor
  • Step c1 When the number of the state ratios is at least two, perform a weighted average of the state ratios to obtain the current processing resource utilization rate of the preset processor.
  • the server obtains the current state parameters of the preset processor and queries the preset state parameter table, and the server obtains the maximum state parameters corresponding to each current state parameter in the preset state parameter table; then, the server compares the current state parameters with the respective maximum state parameters
  • the ratio calculation of the state parameters is performed to obtain the state ratio of the preset processor.
  • the server performs weighted average of each state ratio to obtain the current processing resource of the preset processor Utilization.
  • the number of cores in the current state parameter obtained by the server is 8 cores and the main frequency is 1
  • the CPU usage rate of GHZ is 60%
  • the CPU temperature is 65 degrees Celsius
  • the server queries the preset state parameter table and the number of cores is 8 core frequency 1 GHZ.
  • the maximum CPU usage rate is 90%
  • the maximum CPU temperature is 85 degrees Celsius.
  • the server calculates the ratio between the current state parameter and the corresponding maximum state parameter to obtain the preset processor state ratio.
  • the 30% temperature is 65 degrees Celsius / cpu temperature is 85 degrees Celsius.
  • the weights corresponding to each state ratio in this embodiment can be flexibly set according to specific scenarios.
  • Step S30 When the processing resource utilization rate is less than a preset utilization threshold value, divide and combine the processing items and the financial data set to generate a processing subtask.
  • the server After obtaining the processing resource utilization rate, the server compares the processing resource utilization rate with the preset utilization threshold value, where the preset utilization threshold value refers to the pre-set processing resource utilization rate in the best state of the processor, such as, The pre-utilization threshold can be set to 80%; when the processing resource utilization is less than the preset utilization threshold, that is, the server determines that the current processor resource utilization can also be increased, the server can
  • the data is divided for multi-threaded parallel processing, specifically:
  • Step a2 When the processing resource utilization rate is less than the preset utilization threshold, divide the processing items to form corresponding processing steps, and divide the financial data in the financial data set to obtain a financial data sub-collection ;
  • Step b2 Encapsulate the financial data subset and the corresponding processing step to form a processing subtask.
  • the server determines that the processing resource utilization rate of the processor is high, and the server does not divide the processing items and financial data collection tasks, and directly divides the financial data collection.
  • the financial data in is processed as a whole.
  • the server may increase the processing rate of the processor resource to improve the processing efficiency, specifically , The server actively increases the number of processor threads, so that the processor runs a larger number of threads to increase the processor's resource processing rate.
  • the server divides the processing items to form corresponding processing steps, and divides the financial data in the financial data set to obtain a financial data sub-set, and then, the server performs the financial data sub-set and the corresponding processing step Encapsulate, form a processing subtask, divide the processing subtask into multiple threads, and process the processing subtask in parallel.
  • the server when the server divides the processing items and sets the financial data, it also involves the rationality of the division. That is, in this embodiment, the processing items and the financial data set are divided and combined.
  • the server determines whether the division is reasonable according to the processing time of the processing subtask, that is, the server compares the processing time of the task corresponding to the processing subtask with the standard processing time; if the processing time of the task corresponding to the processing subtask is less than It is equal to the standard processing time, that is, the server determines that the processing subtasks are reasonably divided, and then does not continue the task division of the processing subtasks, and directly creates a thread to process the processing subtasks. If the processing time of the task corresponding to the processing subtask is greater than the standard processing time, the server determines that the processing subtask is unreasonably divided, and the server may further divide the processing subtask to make full use of the processor thread.
  • step S40 each of the processing subtasks is executed by the preset processor to obtain processing subresults corresponding to the processing subtasks, and the processing subresults are aggregated to form a processing result.
  • the preset processor executes each of the processing subtasks, that is, the server configures the size of the thread pool during the multi-thread execution of the processor according to the number of processing subtasks; and creates a thread pool according to the configured size of the thread pool, Wherein, a processing thread is created in the thread pool and a new thread context is initialized; in order to use multiple threads to process in parallel, each processing subtask obtains a processing subresult corresponding to each processing subtask, and The processing sub-results are aggregated to form a processing result.
  • the server is also provided with a main thread that combines task scheduling and multi-thread management for processing sub-tasks, so that multi-thread processing is more flexible. Specifically:
  • Step a3 Obtain the current task of each thread, divide the processing subtasks according to the current task of each thread, so that the tasks processed by each thread are balanced;
  • Step b3 Obtain the processing sub-results processed by each thread, and aggregate the processing sub-results to form a processing result.
  • the main thread of the preset processor obtains the current task of each thread, and divides the processing subtasks according to the current task of each thread, for example, the current number of threads is 4, one of which is the main thread ,
  • the other three are sub-threads that execute processing sub-results.
  • the first thread queue corresponding to the three sub-threads contains 4 tasks
  • the second thread queue contains 10 tasks
  • the third thread queue contains 6 tasks.
  • the current processing The number of subtasks is 25, the main thread divides the first thread queue into 11 processing subtasks, the main thread divides the second thread queue into 5 processing subtasks; the main thread divides the third thread queue into 9 processing subtasks, The tasks processed by each thread are balanced; finally, the server obtains the processing sub-results processed by each thread, and aggregates the processing sub-results to form a processing result.
  • the server obtains the state parameters of the processor, and determines whether the To divide the financial data in the financial data set, if it is necessary to divide the financial data in the financial data set, divide the financial data in the financial data set to generate processing subtasks, and execute each of the processing subtasks through a preset processor, In order to make full use of the processing resources of the processor in the server, improve the utilization rate of the processing resources of the processor, and improve the efficiency of financial data processing.
  • the financial data processing method includes:
  • Step S50 Obtain the data amount of the financial data in the financial data set, and compare the data amount with the preset processing threshold.
  • the server obtains the data volume of the financial data contained in the financial data set, and then the server compares the data volume with a preset processing threshold, where the preset processing threshold refers to a preset data volume critical value of the financial data.
  • the financial data in the financial data set is not divided, and the financial data in the financial data set is taken as a whole for financial data deal with.
  • Step S60 When the amount of data exceeds the preset processing threshold, obtain a processing time corresponding to the processing item.
  • the server determines that the amount of financial data to be processed is large, and then, the server obtains the processing time corresponding to the processing item, and the server compares the processing time with the preset processing Compare the time (the preset processing time refers to the preset maximum processing time).
  • Step S70 When the processing time is greater than the preset processing time, perform the steps of acquiring the current state parameter of the preset processor and calculating the current processing resource utilization rate of the preset processor according to the current state parameter.
  • step S20 When the processing time is greater than the preset processing time, that is, the server determines that the processing time corresponding to the financial data processing request is longer, the server performs step S20 in the first embodiment: acquiring the current state parameter of the preset processor, and according to the The current state parameter calculates the current processing resource utilization rate of the preset processor.
  • the server obtains the financial data set corresponding to the financial data processing request, and the data amount of the financial data in the financial data set, and determines whether to divide the financial data in the financial data set according to the data amount of the financial data.
  • the service needs to divide and process the financial data in the financial data collection, making the financial data processing more intelligent.
  • This embodiment is a step after step S20 in the first embodiment, that is, when the processing resource utilization rate of the processor is greater than or equal to a preset utilization threshold, the financial data processing method includes:
  • Step S80 When the utilization rate of the processing resource is greater than or equal to a preset utilization threshold, encapsulate the processing item and the financial data set to form a processing task.
  • the processing resource utilization rate is greater than or equal to the preset utilization threshold, that is, the processor's current processing resource utilization rate is high, the financial data is not divided, and the processing items and the financial data set are directly packaged Form a processing task.
  • Step S90 Obtain the current task of each thread, and calculate the processing time of the corresponding thread according to the current task.
  • the server obtains the current task of each thread, that is, the processor in this embodiment has multiple threads, but the processor's current processing resource utilization rate is high, the server does not divide the task, and the server calculates the corresponding thread according to the current task Processing time to divide the processing task to the target thread with the shortest processing time for processing.
  • Step S100 Divide the processing task into a target thread with the shortest processing time, and execute the target thread to obtain a processing result.
  • the server divides the processing task into the target thread with the shortest processing time, and executes the target thread to obtain the processing result, so as to prevent the problem of lag in financial data processing.
  • a fourth embodiment of the financial data processing method of the present application may be a combination of one or more of the foregoing embodiments, and the financial data processing method described in this embodiment include:
  • Step S110 when receiving the processing result, compare the processing result with a preset standard processing result
  • the server After the execution of the financial data processing request is completed, the processing result corresponding to the financial data processing request is obtained, the server receives the processing result, and the server compares the processing result with a preset standard processing result to determine whether the financial data processing request Correct, where the preset standard processing result refers to the preset financial data standard processing result.
  • Step S120 When the processing result matches the preset standard processing result, associate the processing result with the processing items and financial data set corresponding to the financial data processing request for user query;
  • the server associates the processing result with the processing item corresponding to the financial data processing request and the financial data set for user query .
  • Step S130 when the processing result does not match the preset standard processing result, data rollback is performed.
  • the server can control the data to be rolled back.
  • the processing result is stored in association with each other to facilitate query.
  • it can also be performed Data rollback to ensure data security.
  • an embodiment of the present application also provides a financial data processing device, and the financial data processing device includes:
  • the request receiving module 10 is configured to receive a financial data processing request and obtain processing items corresponding to the financial data processing request and a set of financial data to be processed;
  • the utilization calculation module 20 is configured to obtain the current state parameter of the preset processor and calculate the current processing resource utilization rate of the preset processor according to the current state parameter;
  • the task division module 30 is configured to divide and combine the processing items and the financial data set to generate processing subtasks when the processing resource utilization rate is less than a preset utilization threshold.
  • the task execution module 40 is configured to execute each of the processing subtasks through the preset processor, obtain processing subresults corresponding to the processing subtasks, and aggregate the processing subresults to form a processing result.
  • the utilization calculation module 20 includes:
  • An obtaining unit configured to obtain the current state parameter of the preset processor and query the preset state parameter table to obtain the maximum state parameter corresponding to the current state parameter;
  • a ratio calculation unit configured to perform a ratio operation between the current state parameter and the corresponding maximum state parameter to obtain a state ratio of the preset processor
  • the weighting calculation unit is configured to perform weighted averaging on each of the state ratios when the number of the state ratios is at least two to obtain the current processing resource utilization rate of the preset processor.
  • the task division module 30 includes:
  • a dividing unit configured to divide the processing items to form corresponding processing steps when the utilization rate of the processing resource is less than a preset utilization threshold, and divide the financial data in the financial data set to obtain financial data Sub-collection
  • a task forming unit is used to encapsulate the financial data subset and the corresponding processing steps to form a processing subtask.
  • the task execution module 40 includes:
  • An obtaining unit configured to obtain the current task of each thread, and divide the processing subtasks according to the current task of each thread, so that the tasks processed by each thread are balanced;
  • the result generating unit is configured to obtain processing sub-results processed by each thread, and aggregate the processing sub-results to form a processing result.
  • the financial data processing device includes:
  • a data volume statistics module configured to obtain the data volume of the financial data in the financial data set, and compare the data volume with the preset processing threshold;
  • a time obtaining module configured to obtain a processing time corresponding to the processing item when the data amount exceeds the preset processing threshold
  • the execution utilization calculation module 20 obtains the current state parameter of the preset processor, and calculates the current processing resource utilization rate of the preset processor according to the current state parameter step.
  • the financial data processing device includes:
  • a task encapsulation module used to encapsulate the processing items and the financial data set to form a processing task when the processing resource utilization rate is greater than or equal to a preset utilization threshold
  • the time calculation module is used to obtain the current task of each thread and calculate the processing time of the corresponding thread according to the current task;
  • the task processing module is configured to divide the processing task into a target thread with the shortest processing time, and execute the target thread to obtain a processing result.
  • the financial data processing device includes:
  • a result comparison module used to compare the processing result with a preset standard processing result when receiving the processing result
  • the associated saving module is used to associate and save the processing result with the processing item and financial data set corresponding to the financial data processing request when the processing result matches the preset standard processing result, for the user to query;
  • the data regression module is used to roll back the data when the processing result does not match the preset standard processing result.
  • embodiments of the present application also provide a computer storage medium.
  • Computer-readable instructions are stored on the computer storage medium, and when the computer-readable instructions are executed by the processor, the operations in the financial data processing method provided in the foregoing embodiments are implemented.
  • the description is relatively simple, and the relevant part can be referred to the description of the method embodiment.
  • the device embodiments described above are only schematic, and the units described as separate components may or may not be physically separated. A part or all of the modules in the application may be selected according to actual needs to achieve the purpose of the solution of the present application. Those of ordinary skill in the art can understand and implement without paying creative labor.
  • the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM / RAM as described above) , Magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to perform the method described in each embodiment of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一种金融数据处理方法、装置、设备和存储介质。该方法包括以下步骤:接收金融数据处理请求,获取金融数据处理请求对应的处理事项和待处理的金融数据集合(S10);获取预设处理器(1001)的当前状态参数,并根据当前状态参数计算预设处理器(1001)当前的处理资源利用率(S20);在处理资源利用率小于预设利用率阈值时,将处理事项和金融数据集合进行划分并组合,生成处理子任务(S30);通过预设处理器(1001)执行各处理子任务,得到各处理子任务对应的处理子结果,将处理子结果进行汇总形成处理结果(S40)。该方法根据处理器(1001)的状态参数确定处理方式,通过提高处理器(1001)的处理资源利用率,来提高金融数据处理效率。

Description

金融数据处理方法、装置、设备和存储介质
本申请要求于2018年11月12日提交中国专利局、申请号为201811342371.2发明名称为“金融数据处理方法、装置、设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及数据处理领域,尤其涉及金融数据处理方法、装置、设备和存储介质。
背景技术
随着社会的发展,金融行业日益发展,金融数据爆炸式增长,金融数据的数据处理量也越来越大。
为了加快金融数据处理,当前金融数据处理通常设置多台服务器,采用分布式数据处理方式,即,在接收到客户端请求时,通过一台中间服务器来给客服端分配目标服务器,进行金融数据处理,但是,这样的金融数据处理方法,单个服务器并没有被充分利用,并不可以保证金融数据的处理效率。
发明内容
本申请的主要目的在于提供一种金融数据处理方法、装置、设备和存储介质,旨在通过提高处理器的处理资源利用率,来提高金融数据处理效率。
为实现上述目的,本申请提供金融数据处理方法,所述金融数据处理方法包括以下步骤:
接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合;
获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率;
在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务;
通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
此外,为实现上述目的,本申请还提供一种金融数据处理装置,所述金融数据处理装置包括:
请求接收模块,用于接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合;
利用率计算模块,用于获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率;
任务划分模块,用于在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务;
任务执行模块,用于通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
此外,为实现上述目的,本申请还提供一种金融数据处理设备;
所述金融数据处理设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,其中:
所述计算机可读指令被所述处理器执行时实现如上所述的金融数据处理方法的步骤。
此外,为实现上述目的,本申请还提供计算机存储介质;
所述计算机存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如上述的金融数据处理方法的步骤。
本申请实施例提出的一种金融数据处理方法、装置、设备和存储介质,服务器接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合;获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率;在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务;通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。本申请中在接收到金融数据处理请求时,获取金融数据处理请求对应的金融数据集合,然后,服务器获取处理器的状态参数,并根据处理器的状态参数,判断是否对金融数据集合中的金融数据进行划分处理,若需要对金融数据集合中的金融数据进行划分,则将金融数据集合中的金融数据进行划分,生成处理子任务,通过预设处理器执行各所述处理子任务,以充分利用服务器中处理器的处理资源,提高处理器的处理资源利用率,提高金融数据处理效率。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的装置结构示意图;
图2为本申请金融数据处理方法第一实施例的流程示意图;
图3为本申请金融数据处理装置一实施例的功能模块示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的服务器(又叫金融数据处理设备,其中,金融数据处理设备可以是由单独的金融数据处理装置构成,也可以是由其他装置与金融数据处理装置组合形成)结构示意图。
本申请实施例服务器指一个管理资源并为用户提供服务的计算机,通常分为文件服务器、数据库服务器和应用可读指令服务器。运行以上软件的计算机或计算机系统也被称为服务器。相对于普通PC(personal computer)个人计算机来说,服务器在稳定性、安全性、性能等方面都要求较高;如图1所示,该服务器可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),网络接口1004,用户接口1003,存储器1005,通信总线1002、芯片组、磁盘系统、网络等硬件等。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真WIreless-FIdelity,WIFI接口)。存储器1005可以是高速随机存取存储器(random access memory,RAM),也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
可选地,服务器还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块;输入单元,比显示屏,触摸屏;网络接口可选除无线接口中除WiFi外,蓝牙、探针等。本领域技术人员可以理解,图1中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,该计算机软件产品存储在一个存储介质(存储介质:又叫计算机存储介质、计算机介质、可读介质、可读存储介质、计算机可读存储介质或者直接叫介质等,存储介质可以是非易失性可读存储介质,如RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及计算机可读指令。
在图1所示的服务器中,网络接口1004主要用于连接后台数据库,与后台数据库进行数据通信;用户接口1003主要用于连接客户端(客户端,又叫用户端或终端,本申请实施例终端可以固定终端也可以是移动终端,如,带联网功能的智能空调、智能电灯、智能电源、智能音箱、自动驾驶汽车、PC、智能手机、平板电脑、电子书阅读器、便携计算机等,终端中包含传感器比如光传感器、运动传感器以及其他传感器,在此不再赘述),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的计算机可读指令,并执行本申请以下实施例提供的金融数据处理方法中的步骤。
本实施例提出一种金融数据处理方法。
本实施例中的金融数据处理方法,应用于如图1所示的服务器。
参照图2,本申请金融数据处理方法的第一实施例中,所述金融数据处理方法包括:
步骤S10,接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合。
服务器接收金融数据处理请求,其中,金融数据处理请求可以通过不同的方式触发,例如,用户在终端屏幕上点击 “处理”按键,触发金融数据处理请求;或者用户通过终端发送语音指令,触发金融数据处理请求,终端将金融数据处理请求发送至服务器,服务器接收金融数据处理请求,并获取金融数据处理请求对应的处理事项和待处理的金融数据集合;其中,发明中的处理事项包括处理步骤、处理时间等;金融数据集合中可以包含不同类型的金融数据,例如,信贷数据、金融业务数据;金融数据集合中还可以包含同一类型的一个或者多个金融数据,例如,不同客户的信贷数据。
步骤S20,获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率。
在服务器获取到处理事项和待处理的金融数据集合之后,服务器获取预设处理器的当前状态参数,以根据当前状态参数确定金融数据的处理方式,即,服务器确定用户金融数据处理的预设处理器,本申请中的处理器可以是一个或者多个,为了方便理解,本实施了中以一个处理器为例进行说明,服务器获取处理器的性能参数(性能参数包括内核结构(例如,cpu核心数),主频,外频,倍频,接口,缓存,多媒体指令集,制造工艺,电压,封装形式,整数单元和浮点单元等)和性能参数对应的当前状态参数(当前状态参数包括:处理器当前工作温度、处理器当时使用效率等),服务器根据获取的当前状态参数,计算处理器的处理资源利用率(处理资源利用率是指处理器的实际资源使用量与处理器资源总量的比值)。
即,服务器查询预设状态参数表(预设状态参数表中预先设置了性能参数与状态参数对应关系),服务器获取预设状态参数表中各所述性能参数对应的最大状态参数,然后,服务器将所述最大状态参数与所述当前状态参数进行比值运算,得到所述处理器的处理资源利用率。
需要说明的是,在当前状态参数的数量不止一个时,本实施例中步骤S20,包括:
步骤a1,获取预设处理器的当前状态参数,并查询预设状态参数表,获取所述当前状态参数对应的最大状态参数;
步骤b1,将所述当前状态参数与对应的所述最大状态参数进行比值运算,得到所述预设处理器的状态比值;
步骤c1,在所述状态比值的数量为至少两个时,将各所述状态比值进行加权平均,得到所述预设处理器当前的处理资源利用率。
即,服务器获取预设处理器的当前状态参数,并查询预设状态参数表,服务器获取预设状态参数表中各个当前状态参数对应的最大状态参数;然后,服务器将当前状态参数与各自的最大状态参数进行比值运算,得到预设处理器的状态比值,在所述状态比值的数量为至少两个时,服务器将各所述状态比值进行加权平均,得到所述预设处理器当前的处理资源利用率。
例如,服务器获取的当前状态参数中核心数8核主频1 GHZ的cpu使用率60%,cpu温度65摄氏度,服务器查询预设状态参数表,获取到核心数8核主频1 GHZ 的cpu最大使用率90%,cpu温度最高温度为85摄氏度,服务器将所述当前状态参数与对应的所述最大状态参数进行比值运算,得到预设处理器的状态比值,然后,服务器将各所述状态比值进行加权平均,得到所述预设处理器当前的处理资源利用率,例如,预设处理器的处理资源利用率=(权重70%×使用率60%/cpu使用率90%+权重30%温度65摄氏度/cpu温度85摄氏度。其中,本实施例的中各个状态比值对应权重可以根据具体场景灵活设置。
步骤S30,在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务。
在得到处理资源利用率之后,服务器将处理资源利用率与预设利用率阈值进行比较,其中,预设利用率阈值是指预先设置的处理器最佳状态下的处理资源利用率,如,将预利用率阈值可以设置为80%;在所述处理资源利用率小于预设利用率阈值时,即,服务器确定当前处理器的资源利用率还可以进行提高,服务器可以对金融数据集合中的金融数据进行划分,以进行多线程并行处理,具体地:
步骤a2,在所述处理资源利用率小于预设利用率阈值时,对所述处理事项进行划分形成对应的处理步骤,并将所述金融数据集合中的金融数据进行划分,得到金融数据子集合;
步骤b2,将所述金融数据子集合和对应的所述处理步骤进行封装,形成处理子任务。
即,在所述处理器的处理资源利用率大于或等于预设利用率阈值,服务器判定处理器的处理资源利用率偏高,服务器不对处理事项和金融数据集合进行任务划分,直接对金融数据集合中的金融数据进行整体处理。
在所述处理器的处理资源利用率小于预设利用率阈值时,即,服务器判定处理器的处理资源利用率偏低,服务器可以通过增加处理器的资源处理率,来提高处理效率,具体地,服务器主动增加处理器的线程数量,使处理器的上运行较大数量的线程,以增加处理器的资源处理率。
即,服务器将处理事项进行划分形成对应的处理步骤,并将所述金融数据集合中的金融数据进行划分,得到金融数据子集合,然后,服务器将金融数据子集合和对应的所述处理步骤进行封装,形成处理子任务,并将处理子任务划分为多个线程,并行地对处理子任务进行处理。
需要补充说明的是,本实施例中服务器划分处理事项和将金融数据集合时,还涉及到划分的合理性问题,即,本实施例中将处理事项和所述金融数据集合进行划分并组合,得到处理子任务,服务器根据处理子任务的任务处理时间来判断划分是否合理,即,服务器则将处理子任务对应的任务处理时间与标准处理时间进行比较;若处理子任务对应的任务处理时间小于等于标准处理时间,即,服务器确定处理子任务划分合理,则不对处理子任务进行继续的任务划分,直接创建线程处理处理子任务。若处理子任务对应的任务处理时间大于标准处理时间,则服务器确定处理子任务划分不合理,服务器还可以将该处理子任务进行继续的划分,以充分利用处理器的线程。
步骤S40,通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
通过预设处理器执行各所述处理子任务,即,服务器根据处理子任务的数量,对处理器多线程执行过程中的线程池大小进行配置;并根据配置的线程池大小来创建线程池,其中,在线程池中创建处理线程并且对新线程上下文环境进行初始化;以利用多个线程并行地处理,各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
需要补充说明的是,服务器还设置有对处理子任务进行任务调度和多线程管理组合的主线程,以多实现线程处理更加灵活,具体地:
步骤a3,获取每一个线程的当前任务,按所述每一个线程的当前任务进行划分各所述处理子任务,使得每一个线程处理的任务均衡;
步骤b3,获取每一个线程处理的处理子结果,将所述处理子结果进行汇总形成处理结果。
即,预设处理器的主线程获取每一个线程的当前任务,按所述每一个线程的当前任务进行划分各所述处理子任务,例如,当前的线程数量为4个,其中一个为主线程,另外3个为执行处理子结果的子线程,3个子线程对应的第一线程队列中包含4个任务、第二线程队列中包含10个任务和第三线程队列中包含6个任务,当前处理子任务的数量为25个,主线程为第一线程队列划分11个处理子任务,主线程为第二线程队列划分5个处理子任务;主线程为第三线程队列划分9个处理子任务,使得每一个线程处理的任务均衡;最后,服务器获取每一个线程处理的处理子结果,将所述处理子结果进行汇总形成处理结果。
在本实施例中在接收到金融数据处理请求时,获取金融数据处理请求对应的金融数据集合,然后,服务器获取处理器的状态参数,并根据处理器的状态参数,判断是否对金融数据集合中的金融数据进行划分处理,若需要对金融数据集合中的金融数据进行划分,则将金融数据集合中的金融数据进行划分,生成处理子任务,通过预设处理器执行各所述处理子任务,以充分利用服务器中处理器的处理资源,提高处理器的处理资源利用率,提高金融数据处理效率。
进一步地,在本申请第一实施例的基础上,提出了本申请金融数据处理方法的第二实施例。
本实施例是第一实施例中步骤S10之后的步骤,所述金融数据处理方法包括:
步骤S50,获取所述金融数据集合中金融数据的数据量,将所述数据量与所述预设处理阈值进行比较。
服务器获取所述金融数据集合中包含的金融数据的数据量,然后,服务器将数据量与预设处理阈值进行比较,其中,预设处理阈值是指预先设置的金融数据的数据量临界值。
在金融数据的数据量不超过所述预设处理阈值时,即,金融数据较少,则不对金融数据集合中的金融数据进行划分,而将金融数据集合中的金融数据作为一个整体进行金融数据处理。
步骤S60,在所述数据量超过所述预设处理阈值时,获取所述处理事项对应的处理时间。
在所述数据量超过所述预设处理阈值时,即,服务器确定待处理的金融数据的数据量较大,然后,服务器获取所述处理事项对应的处理时间,服务器将处理时间与预设处理时间(预设处理时间是指预先设置的出处理时间最大值)进行比较。
步骤S70,在所述处理时间大于预设处理时间时,执行获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率的步骤。
在所述处理时间大于预设处理时间时,即,服务器确定金融数据处理请求对应的处理时间较长,服务器执行第一实施例中步骤S20:获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率。
在本实施例中服务器获取金融数据处理请求对应的金融数据集合,及金融数据集合中金融数据的数据量,根据金融数据的数据量,判断是否对金融数据集合中的金融数据划分,在金融数据的数据量较大时,服务去需要对金融数据集合中的金融数据进行划分处理,使得金融数据处理更加智能。
进一步地,在上述实施例的基础上,提出了本申请金融数据处理方法的第三实施例。
本实施例是第一实施例中步骤S20之后的步骤,即,在处理器的处理资源利用率大于或等于预设利用率阈值时,所述金融数据处理方法,包括:
步骤S80,在所述处理资源利用率大于或等于预设利用率阈值时,将所述处理事项和所述金融数据集合封装形成处理任务。
在所述处理资源利用率大于或等于预设利用率阈值时,即,处理器当前的处理资源利用率较高,不对金融数据进行划分,而直接将所述处理事项和所述金融数据集合封装形成处理任务。
步骤S90,获取每一个线程的当前任务,并按所述当前任务计算对应线程的处理时间。
服务器获取每一个线程的当前任务,即,本实施例中的处理器存在多个线程,但是处理器当前的处理资源利用率较高,服务器不进行任务划分,服务器按所述当前任务计算对应线程的处理时间,以将处理任务划分至处理时间最短的目标线程进行处理。
步骤S100,将所述处理任务划分至处理时间最短的目标线程,并执行所述目标线程得到处理结果。
在本实施例中在不进行任务划分时,服务器将所述处理任务划分至处理时间最短的目标线程,并执行所述目标线程得到处理结果,以防止金融数据处理滞后的问题。
进一步地,在上述实施例的基础上,本申请金融数据处理方法的第四实施例,本实施例可以以上述实施例中的一个或者多个结合,在本实施例中所述金融数据处理方法包括:
步骤S110,在接收到所述处理结果时,将所述处理结果与预设标准处理结果进行比对;
在金融数据处理请求执行完成后,得到金融数据处理请求对应的处理结果,服务器接收到所述处理结果,服务器将所述处理结果与预设标准处理结果进行比对,以判断金融数据处理请求是否正确,其中,预设标准处理结果是指预先设置的金融数据标准处理结果。
步骤S120,在所述处理结果与预设标准处理结果匹配时,将所述处理结果与所述金融数据处理请求对应的处理事项和金融数据集合进行关联保存,以供用户查询;
在所述处理结果与预设标准处理结果匹配时,即,金融数据处理正确,服务器将所述处理结果与所述金融数据处理请求对应的处理事项和金融数据集合进行关联保存,以供用户查询。
步骤S130,在所述处理结果与预设标准处理结果不匹配时,将进行数据回滚。
在所述处理结果与预设标准处理结果不匹配时,服务器可以控制数据回滚,在本实施例中将处理结果进行关联保存,可以方便查询,此外,若出现数据处理异常时,还可以进行数据回滚,保证数据的安全性。
此外,参照图3,本申请实施例还提出一种金融数据处理装置,所述金融数据处理装置包括:
请求接收模块10,用于接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合;
利用率计算模块20,用于获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率;
任务划分模块30,用于在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务;
任务执行模块40,用于通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
可选地,所述利用率计算模块20,包括:
获取单元,用于获取预设处理器的当前状态参数,并查询预设状态参数表,获取所述当前状态参数对应的最大状态参数;
比值计算单元,用于将所述当前状态参数与对应的所述最大状态参数进行比值运算,得到所述预设处理器的状态比值;
加权计算单元,用于在所述状态比值的数量为至少两个时,将各所述状态比值进行加权平均,得到所述预设处理器当前的处理资源利用率。
可选地,任务划分模块30,包括:
划分单元,用于在所述处理资源利用率小于预设利用率阈值时,对所述处理事项进行划分形成对应的处理步骤,并将所述金融数据集合中的金融数据进行划分,得到金融数据子集合;
任务形成单元,用于将所述金融数据子集合和对应的所述处理步骤进行封装,形成处理子任务。
可选地,所述任务执行模块40,包括:
获取单元,用于获取每一个线程的当前任务,按所述每一个线程的当前任务进行划分各所述处理子任务,使得每一个线程处理的任务均衡;
结果生成单元,用于获取每一个线程处理的处理子结果,将所述处理子结果进行汇总形成处理结果。
可选地,所述金融数据处理装置,包括:
数据量统计模块,用于获取所述金融数据集合中金融数据的数据量,将所述数据量与所述预设处理阈值进行比较;
时间获取模块,用于在所述数据量超过所述预设处理阈值时,获取所述处理事项对应的处理时间;
在所述处理时间大于预设处理时间时,执行利用率计算模块20中获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率的步骤。
可选地,所述金融数据处理装置,包括:
任务封装模块,用于在所述处理资源利用率大于或等于预设利用率阈值时,将所述处理事项和所述金融数据集合封装形成处理任务;
时间计算模块,用于获取每一个线程的当前任务,并按所述当前任务计算对应线程的处理时间;
任务处理模块,用于将所述处理任务划分至处理时间最短的目标线程,并执行所述目标线程得到处理结果。
可选地,所述金融数据处理装置,包括:
结果比对模块,用于在接收到所述处理结果时,将所述处理结果与预设标准处理结果进行比对;
关联保存模块,用于在所述处理结果与预设标准处理结果匹配时,将所述处理结果与所述金融数据处理请求对应的处理事项和金融数据集合进行关联保存,以供用户查询;
数据回归模块,用于在所述处理结果与预设标准处理结果不匹配时,将进行数据回滚。
其中,金融数据处理装置的各个功能模块实现的步骤可参照本申请金融数据处理方法的各个实施例,此处不再赘述。
此外,本申请实施例还提出一种计算机存储介质。
所述计算机存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述实施例提供的金融数据处理方法中的操作。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体/操作/对象与另一个实体/操作/对象区分开来,而不一定要求或者暗示这些实体/操作/对象之间存在任何这种实际的关系或者顺序;术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的。可以根据实际的需要选择中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种金融数据处理方法,其特征在于,所述金融数据处理方法包括以下步骤:
    接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合;
    获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率;
    在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务;
    通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
  2. 如权利要求1所述的金融数据处理方法,其特征在于,所述获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率的步骤,包括:
    获取预设处理器的当前状态参数,并查询预设状态参数表,获取所述当前状态参数对应的最大状态参数;
    将所述当前状态参数与对应的所述最大状态参数进行比值运算,得到所述预设处理器的状态比值;
    在所述状态比值的数量为至少两个时,将各所述状态比值进行加权平均,得到所述预设处理器当前的处理资源利用率。
  3. 如权利要求1所述的金融数据处理方法,其特征在于,所述在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务的步骤,包括:
    在所述处理资源利用率小于预设利用率阈值时,对所述处理事项进行划分形成对应的处理步骤,并将所述金融数据集合中的金融数据进行划分,得到金融数据子集合;
    将所述金融数据子集合和对应的所述处理步骤进行封装,形成处理子任务。
  4. 如权利要求1所述的金融数据处理方法,其特征在于,所述通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果的步骤,包括:
    获取每一个线程的当前任务,按所述每一个线程的当前任务进行划分各所述处理子任务,使得每一个线程处理的任务均衡;
    获取每一个线程处理的处理子结果,将所述处理子结果进行汇总形成处理结果。
  5. 如权利要求1所述的金融数据处理方法,其特征在于,所述接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合的步骤之后,包括:
    获取所述金融数据集合中金融数据的数据量,将所述数据量与所述预设处理阈值进行比较;
    在所述数据量超过所述预设处理阈值时,获取所述处理事项对应的处理时间;
    在所述处理时间大于预设处理时间时,执行获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率的步骤。
  6. 如权利要求1所述的金融数据处理方法,其特征在于,所述获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率的步骤之后,包括:
    在所述处理资源利用率大于或等于预设利用率阈值时,将所述处理事项和所述金融数据集合封装形成处理任务;
    获取每一个线程的当前任务,并按所述当前任务计算对应线程的处理时间;
    将所述处理任务划分至处理时间最短的目标线程,并执行所述目标线程得到处理结果。
  7. 如权利要求1所述的金融数据处理方法,其特征在于,所述通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果的步骤之后,包括:
    在接收到所述处理结果时,将所述处理结果与预设标准处理结果进行比对;
    在所述处理结果与预设标准处理结果匹配时,将所述处理结果与所述金融数据处理请求对应的处理事项和金融数据集合进行关联保存,以供用户查询;
    在所述处理结果与预设标准处理结果不匹配时,将进行数据回滚。
  8. 一种金融数据处理装置,其特征在于,所述金融数据处理装置包括:
    请求接收模块,用于接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合;
    利用率计算模块,用于获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率;
    任务划分模块,用于在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务;
    任务执行模块,用于通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
  9. 如权利要求8所述的金融数据处理装置,其特征在于,所述利用率计算模块,包括:
    获取单元,用于获取预设处理器的当前状态参数,并查询预设状态参数表,获取所述当前状态参数对应的最大状态参数;
    比值计算单元,用于将所述当前状态参数与对应的所述最大状态参数进行比值运算,得到所述预设处理器的状态比值;
    加权计算单元,用于在所述状态比值的数量为至少两个时,将各所述状态比值进行加权平均,得到所述预设处理器当前的处理资源利用率。
  10. 如权利要求8所述的金融数据处理装置,其特征在于,任务划分模块,包括:
    划分单元,用于在所述处理资源利用率小于预设利用率阈值时,对所述处理事项进行划分形成对应的处理步骤,并将所述金融数据集合中的金融数据进行划分,得到金融数据子集合;
    任务形成单元,用于将所述金融数据子集合和对应的所述处理步骤进行封装,形成处理子任务。
  11. 如权利要求8所述的金融数据处理装置,其特征在于,所述任务执行模块,包括:
    获取单元,用于获取每一个线程的当前任务,按所述每一个线程的当前任务进行划分各所述处理子任务,使得每一个线程处理的任务均衡;
    结果生成单元,用于获取每一个线程处理的处理子结果,将所述处理子结果进行汇总形成处理结果。
  12. 如权利要求8所述的金融数据处理装置,其特征在于,所述金融数据处理装置,包括:
    数据量统计模块,用于获取所述金融数据集合中金融数据的数据量,将所述数据量与所述预设处理阈值进行比较;
    时间获取模块,用于在所述数据量超过所述预设处理阈值时,获取所述处理事项对应的处理时间;
    在所述处理时间大于预设处理时间时,执行利用率计算模块20中获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率的步骤。
  13. 如权利要求8所述的金融数据处理装置,其特征在于,所述金融数据处理装置,包括:
    任务封装模块,用于在所述处理资源利用率大于或等于预设利用率阈值时,将所述处理事项和所述金融数据集合封装形成处理任务;
    时间计算模块,用于获取每一个线程的当前任务,并按所述当前任务计算对应线程的处理时间;
    任务处理模块,用于将所述处理任务划分至处理时间最短的目标线程,并执行所述目标线程得到处理结果。
  14. 如权利要求8所述的金融数据处理装置,其特征在于,所述金融数据处理装置,包括:
    结果比对模块,用于在接收到所述处理结果时,将所述处理结果与预设标准处理结果进行比对;
    关联保存模块,用于在所述处理结果与预设标准处理结果匹配时,将所述处理结果与所述金融数据处理请求对应的处理事项和金融数据集合进行关联保存,以供用户查询;
    数据回归模块,用于在所述处理结果与预设标准处理结果不匹配时,将进行数据回滚。
  15. 一种金融数据处理设备,其特征在于,所述金融数据处理设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,其中:
    所述计算机可读指令被所述处理器执行时实现以下步骤:
    接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合;
    获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率;
    在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务;
    通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
  16. 如权利要求15所述的金融数据处理设备,其特征在于,所述计算机可读指令被所述处理器执行:所述获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率的步骤,包括:
    获取预设处理器的当前状态参数,并查询预设状态参数表,获取所述当前状态参数对应的最大状态参数;
    将所述当前状态参数与对应的所述最大状态参数进行比值运算,得到所述预设处理器的状态比值;
    在所述状态比值的数量为至少两个时,将各所述状态比值进行加权平均,得到所述预设处理器当前的处理资源利用率。
  17. 如权利要求15所述的金融数据处理设备,其特征在于,所述计算机可读指令被所述处理器执行:所述在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务的步骤,包括:
    在所述处理资源利用率小于预设利用率阈值时,对所述处理事项进行划分形成对应的处理步骤,并将所述金融数据集合中的金融数据进行划分,得到金融数据子集合;
    将所述金融数据子集合和对应的所述处理步骤进行封装,形成处理子任务。
  18. 如权利要求15所述的金融数据处理设备,其特征在于,所述计算机可读指令被所述处理器执行:所述通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果的步骤,包括:
    获取每一个线程的当前任务,按所述每一个线程的当前任务进行划分各所述处理子任务,使得每一个线程处理的任务均衡;
    获取每一个线程处理的处理子结果,将所述处理子结果进行汇总形成处理结果。
  19. 如权利要求15所述的金融数据处理设备,其特征在于,所述计算机可读指令被所述处理器执行:所述接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合的步骤之后,包括:
    获取所述金融数据集合中金融数据的数据量,将所述数据量与所述预设处理阈值进行比较;
    在所述数据量超过所述预设处理阈值时,获取所述处理事项对应的处理时间;
    在所述处理时间大于预设处理时间时,执行获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率的步骤。
  20. 一种计算机存储介质,其特征在于,所述计算机存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现以下步骤:
    接收金融数据处理请求,获取所述金融数据处理请求对应的处理事项和待处理的金融数据集合;
    获取预设处理器的当前状态参数,并根据所述当前状态参数计算所述预设处理器当前的处理资源利用率;
    在所述处理资源利用率小于预设利用率阈值时,将所述处理事项和所述金融数据集合进行划分并组合,生成处理子任务;
    通过所述预设处理器执行各所述处理子任务,得到各所述处理子任务对应的处理子结果,将所述处理子结果进行汇总形成处理结果。
PCT/CN2018/122835 2018-11-12 2018-12-21 金融数据处理方法、装置、设备和存储介质 WO2020098075A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811342371.2 2018-11-12
CN201811342371.2A CN109669773B (zh) 2018-11-12 2018-11-12 金融数据处理方法、装置、设备和存储介质

Publications (1)

Publication Number Publication Date
WO2020098075A1 true WO2020098075A1 (zh) 2020-05-22

Family

ID=66142088

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/122835 WO2020098075A1 (zh) 2018-11-12 2018-12-21 金融数据处理方法、装置、设备和存储介质

Country Status (2)

Country Link
CN (1) CN109669773B (zh)
WO (1) WO2020098075A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301783A (zh) * 2021-12-31 2022-04-08 中企云链(北京)金融信息服务有限公司 用于微服务的优化方法以及装置、存储介质、电子装置
CN114301783B (zh) * 2021-12-31 2024-05-28 中企云链(北京)金融信息服务有限公司 用于微服务的优化方法以及装置、存储介质、电子装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489242B (zh) * 2019-09-24 2024-01-26 深圳前海微众银行股份有限公司 分布式数据计算方法、装置、终端设备及存储介质
CN110766540A (zh) * 2019-10-25 2020-02-07 上海德启信息科技有限公司 一种账单核销方法、装置及电子设备
CN111176851A (zh) * 2020-01-09 2020-05-19 国网福建省电力有限公司 一种售电侧的用户数据分析方法及系统
CN112035258B (zh) * 2020-08-31 2022-06-17 中国平安财产保险股份有限公司 数据处理方法、装置、电子设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427478A (zh) * 2011-12-28 2012-04-25 广州杰赛科技股份有限公司 构建可叠加服务器的方法以及服务器系统
US20130239115A1 (en) * 2012-03-08 2013-09-12 Fuji Xerox Co., Ltd. Processing system
CN106802828A (zh) * 2016-12-30 2017-06-06 广东欧珀移动通信有限公司 一种应用数据处理方法及设备
CN108243348A (zh) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 一种流处理请求分配服务器
CN108446176A (zh) * 2018-02-07 2018-08-24 平安普惠企业管理有限公司 一种任务分配方法、计算机可读存储介质及终端设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067468B (zh) * 2012-12-22 2016-03-09 深圳先进技术研究院 云调度方法及其系统
CN107797853B (zh) * 2016-09-07 2020-09-08 深圳市中兴微电子技术有限公司 一种任务调度方法、装置及多核处理器
CN109284822B (zh) * 2017-07-20 2021-09-21 上海寒武纪信息科技有限公司 一种神经网络运算装置及方法
CN107688496B (zh) * 2017-07-24 2020-12-04 深圳壹账通智能科技有限公司 任务分布式处理方法、装置、存储介质和服务器
CN108566408A (zh) * 2018-01-18 2018-09-21 咪咕文化科技有限公司 一种业务处理方法、装置及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427478A (zh) * 2011-12-28 2012-04-25 广州杰赛科技股份有限公司 构建可叠加服务器的方法以及服务器系统
US20130239115A1 (en) * 2012-03-08 2013-09-12 Fuji Xerox Co., Ltd. Processing system
CN108243348A (zh) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 一种流处理请求分配服务器
CN106802828A (zh) * 2016-12-30 2017-06-06 广东欧珀移动通信有限公司 一种应用数据处理方法及设备
CN108446176A (zh) * 2018-02-07 2018-08-24 平安普惠企业管理有限公司 一种任务分配方法、计算机可读存储介质及终端设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301783A (zh) * 2021-12-31 2022-04-08 中企云链(北京)金融信息服务有限公司 用于微服务的优化方法以及装置、存储介质、电子装置
CN114301783B (zh) * 2021-12-31 2024-05-28 中企云链(北京)金融信息服务有限公司 用于微服务的优化方法以及装置、存储介质、电子装置

Also Published As

Publication number Publication date
CN109669773B (zh) 2024-03-08
CN109669773A (zh) 2019-04-23

Similar Documents

Publication Publication Date Title
WO2020098075A1 (zh) 金融数据处理方法、装置、设备和存储介质
WO2020224246A1 (zh) 基于区块链的数据管理方法、装置、设备和存储介质
WO2016105020A1 (en) Apparatus and method for charging electronic device having battery
WO2019037196A1 (zh) 任务分配方法、装置及计算机可读存储介质
WO2020015060A1 (zh) 用电量异常评估方法、装置、设备和计算机存储介质
WO2020253116A1 (zh) 数据跑批方法、装置、存储介质及集群中的成员主机
WO2019061615A1 (zh) 基于云监控的负载均衡优化方法及装置
WO2020119115A1 (zh) 数据审核方法、装置、设备及存储介质
WO2020215681A1 (zh) 指示信息生成方法、装置、终端及存储介质
WO2018120681A1 (zh) 数据同步方法、装置、系统、数据处理服务器和存储介质
WO2020147385A1 (zh) 数据录入方法、装置、终端及计算机可读存储介质
WO2014094495A1 (zh) 云调度方法及其系统
WO2020087983A1 (zh) 任务分配方法、装置、设备及存储介质
WO2020107591A1 (zh) 重复投保限制方法、装置、设备及可读存储介质
WO2020224251A1 (zh) 区块链事务的处理方法、装置、设备及存储介质
WO2018076812A1 (zh) 数据请求的响应方法、装置、存储介质、服务器及系统
WO2019103280A1 (ko) 클라우드 서비스를 제공하는 적어도 하나의 클라우드 서버의 컴퓨팅 자원들을 관리하는 전자 장치 및 방법
WO2020119369A1 (zh) 智能it运维故障定位方法、装置、设备及可读存储介质
WO2020042464A1 (zh) 数据交互方法、装置、设备及可读存储介质
WO2018036168A1 (zh) 数据处理任务执行方法、装置、执行服务器和存储介质
WO2020019405A1 (zh) 数据库监控方法、装置、设备及可读存储介质
WO2016090775A1 (zh) 同步操作短信数据的方法及系统
WO2020060021A1 (en) Packet data unit (pdu) session control method and apparatus
WO2020103275A1 (zh) 扣款控制方法、装置、设备及可读存储介质
WO2018026164A1 (en) Method of processing touch events and electronic device adapted thereto

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18939977

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 20/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18939977

Country of ref document: EP

Kind code of ref document: A1