+

CN114385230A - System construction method, apparatus, computer equipment, storage medium and program product - Google Patents

System construction method, apparatus, computer equipment, storage medium and program product Download PDF

Info

Publication number
CN114385230A
CN114385230A CN202111538331.7A CN202111538331A CN114385230A CN 114385230 A CN114385230 A CN 114385230A CN 202111538331 A CN202111538331 A CN 202111538331A CN 114385230 A CN114385230 A CN 114385230A
Authority
CN
China
Prior art keywords
file
function
subfile
business
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111538331.7A
Other languages
Chinese (zh)
Inventor
王奎
周寅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Kingstar Fintech Co Ltd
Original Assignee
Shanghai Kingstar Fintech Co Ltd
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 Shanghai Kingstar Fintech Co Ltd filed Critical Shanghai Kingstar Fintech Co Ltd
Priority to CN202111538331.7A priority Critical patent/CN114385230A/en
Publication of CN114385230A publication Critical patent/CN114385230A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Library & Information Science (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to a system construction method, apparatus, computer device, storage medium and program product. The method comprises the following steps: constructing a basic function file according to service requirements, wherein the basic function file comprises a plurality of core function subfiles required by the service; constructing a service logic file according to the service requirement; the service logic file comprises function functions corresponding to the core functions; registering a data interface for each core function subfile and the service logic file, and associating each core function subfile with a corresponding function to obtain an association relation; acquiring a system executable file according to the core function subfile, the service logic file, the data interface and the incidence relation; the system executable file is used for processing business data when being operated. By adopting the method, the development efficiency can be improved and the time consumption can be reduced during modification.

Description

系统构建方法、装置、计算机设备、存储介质和程序产品System construction method, apparatus, computer equipment, storage medium and program product

技术领域technical field

本申请涉及系统开发技术领域,特别是涉及一种系统构建方法、装置、计算机设备、存储介质和程序产品。The present application relates to the technical field of system development, and in particular, to a system construction method, apparatus, computer equipment, storage medium and program product.

背景技术Background technique

随着金融交易的发展越来越快,需求变化也越发复杂,场外衍生品交易系统的构建为金融交易提供平台,适应需求变化,提供金融交易过程中的基本服务;随着交易市场和需求的不断变化,场外衍生品交易系统的构建也需要随时作出适应修改。With the rapid development of financial transactions, the changes in demand are becoming more and more complex. The construction of the OTC derivatives trading system provides a platform for financial transactions, adapts to changes in demand, and provides basic services in the process of financial transactions; The construction of the OTC derivatives trading system also needs to be adapted and modified at any time.

传统技术中,采用单一开发语言进行场外衍生品交易系统的整体开发和验证等工作。然而,采用整体开发的方式,一旦系统出现错误或者需要修改系统需求时,需要对整个系统的开发代码重新编写或修改,容易导致开发效率低且耗时久的问题。In the traditional technology, a single development language is used for the overall development and verification of the OTC derivatives trading system. However, using the overall development method, once the system has errors or needs to modify the system requirements, it is necessary to rewrite or modify the development code of the entire system, which may easily lead to low development efficiency and time-consuming problems.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种能够在修改时提升开发效率和降低耗时的系统构建方法、装置、计算机设备、存储介质和程序产品。Based on this, it is necessary to provide a system construction method, apparatus, computer equipment, storage medium and program product that can improve development efficiency and reduce time-consuming when modifying the above technical problems.

第一方面,本申请提供了一种系统构建方法。该方法包括:In a first aspect, the present application provides a system construction method. The method includes:

根据业务需求构建基础功能文件,该基础功能文件中包括业务所需的多个核心功能子文件;根据该业务需求构建业务逻辑文件;该业务逻辑文件中包括各核心功能对应的功能函数;为各核心功能子文件和该业务逻辑文件注册数据接口,并将各核心功能子文件与对应的功能函数进行关联,得到关联关系;根据该核心功能子文件、该业务逻辑文件、该数据接口和该关联关系,获取系统可执行文件;该系统可执行文件被运行时用于处理业务数据。Build a basic function file according to business requirements, and the basic function file includes multiple core function sub-files required by the business; build a business logic file according to the business requirements; the business logic file includes the function functions corresponding to each core function; The core function subfile and the business logic file register the data interface, and associate each core function subfile with the corresponding function function to obtain an association relationship; according to the core function subfile, the business logic file, the data interface and the association relationship to obtain the system executable file; the system executable file is used by the runtime to process business data.

在其中一个实施例中,根据业务需求构建基础功能文件,包括:根据该业务需求采用预设编程语言构建该基础功能文件。In one of the embodiments, constructing the basic function file according to the business requirement includes: constructing the basic function file by using a preset programming language according to the business requirement.

在其中一个实施例中,根据该业务需求构建业务逻辑文件,包括:根据该业务需求采用预设脚本语言构建该业务逻辑文件。In one of the embodiments, constructing the business logic file according to the business requirement includes: constructing the business logic file by using a preset script language according to the business requirement.

在其中一个实施例中,该基础功能文件中包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个;该配置管理子文件被运行时用于获取各核心功能子文件的配置信息;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。In one of the embodiments, the basic function file includes at least two of a configuration management sub-file, a network communication sub-file, a bus sub-file, a log sub-file and a market sub-file; the configuration management sub-file is used by the runtime for Obtain the configuration information of each core function sub-file; the network communication sub-file is used to communicate with external devices to obtain external data when it is run; the bus sub-file is used to provide a communication interface for each core function sub-file when it is run; the The log subfile is used by the runtime to provide log interface services; the market subfile is used by the runtime to obtain transaction information.

在其中一个实施例中,该方法还包括:在业务处理过程中,调用该基础功能文件中的目标核心功能子文件获取业务数据;根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中;根据该关联关系,从该业务逻辑文件中调用该目标核心功能子文件对应的功能函数对该业务数据进行处理。In one embodiment, the method further includes: in the business processing process, calling the target core function sub-file in the basic function file to obtain business data; according to the target data interface corresponding to the target core function sub-file, The data is transmitted to the business logic file; according to the association relationship, the function function corresponding to the target core function sub-file is called from the business logic file to process the business data.

在其中一个实施例中,该方法还包括:对该业务数据进行预处理,得到预处理后的业务数据;该预处理包括反序列化操作和/或检查合法性操作;In one embodiment, the method further includes: preprocessing the business data to obtain preprocessed business data; the preprocessing includes deserialization operations and/or legality checking operations;

根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中,包括:根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中。Transferring the business data to the business logic file according to the target data interface corresponding to the target core function subfile includes: transmitting the preprocessed business data to the target core function subfile according to the target data interface corresponding to the target core function subfile. in the business logic file.

第二方面,本申请还提供了一种系统构建装置。该装置包括:In a second aspect, the present application also provides a system construction apparatus. The device includes:

第一构建模块,用于根据业务需求构建基础功能文件,所述基础功能文件中包括业务所需的多个核心功能子文件;a first building module, configured to build a basic function file according to business requirements, where the basic function file includes a plurality of core function sub-files required by the business;

第二构建模块,用于根据所述业务需求构建业务逻辑文件;所述业务逻辑文件中包括各核心功能对应的功能函数;The second building module is used to build a business logic file according to the business requirements; the business logic file includes function functions corresponding to each core function;

注册模块,用于为各所述核心功能子文件和所述业务逻辑文件注册数据接口,并将各所述核心功能子文件与对应的功能函数进行关联,得到关联关系;a registration module, configured to register a data interface for each of the core function sub-files and the business logic file, and associate each of the core function sub-files with the corresponding function functions to obtain an association relationship;

获取模块,用于根据所述核心功能子文件、所述业务逻辑文件、所述数据接口和所述关联关系,获取系统可执行文件;所述系统可执行文件被运行时用于处理业务数据。an obtaining module, configured to obtain a system executable file according to the core function sub-file, the business logic file, the data interface and the association relationship; the system executable file is used to process business data when running.

在其中一个实施例中,该第二构建模块,具体用于:根据该业务需求采用预设脚本语言构建该业务逻辑文件。In one of the embodiments, the second building module is specifically configured to: construct the business logic file by using a preset script language according to the business requirement.

在其中一个实施例中,该基础功能文件中包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个;该配置管理子文件被运行时用于获取各核心功能子文件的配置信息;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。In one of the embodiments, the basic function file includes at least two of a configuration management sub-file, a network communication sub-file, a bus sub-file, a log sub-file and a market sub-file; the configuration management sub-file is used by the runtime for Obtain the configuration information of each core function sub-file; the network communication sub-file is used to communicate with external devices to obtain external data when it is run; the bus sub-file is used to provide a communication interface for each core function sub-file when it is run; the The log subfile is used by the runtime to provide log interface services; the market subfile is used by the runtime to obtain transaction information.

在其中一个实施例中,该装置还包括:In one embodiment, the device further includes:

第一调用模块,用于在业务处理过程中,调用该基础功能文件中的目标核心功能子文件获取业务数据;a first calling module, used for calling the target core function sub-file in the basic function file to obtain business data during business processing;

第一传输模块,用于根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中;a first transmission module, configured to transmit the business data to the business logic file according to the target data interface corresponding to the target core function subfile;

第一处理模块,用于根据该关联关系,从该业务逻辑文件中调用该目标核心功能子文件对应的功能函数对该业务数据进行处理。The first processing module is configured to call the function function corresponding to the target core function sub-file from the business logic file to process the business data according to the association relationship.

在其中一个实施例中,该装置还包括:In one embodiment, the device further includes:

预处理模块,用于对该业务数据进行预处理,得到预处理后的业务数据;该预处理包括反序列化操作和/或检查合法性操作;A preprocessing module, used to preprocess the business data to obtain preprocessed business data; the preprocessing includes deserialization operations and/or legality checking operations;

根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中,包括:根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中。Transferring the business data to the business logic file according to the target data interface corresponding to the target core function subfile includes: transmitting the preprocessed business data to the target core function subfile according to the target data interface corresponding to the target core function subfile. in the business logic file.

第三方面,本申请还提供了一种计算机设备,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行该计算机程序时实现上述第一方面任一项所述的方法的步骤。In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when the processor executes the computer program.

第四方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述第一方面中任一项所述的方法的步骤。In a fourth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method in any one of the above-mentioned first aspects.

第五方面,本申请还提供了一种计算机程序产品,该计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述第一方面中任一项所述的方法的步骤。In a fifth aspect, the present application further provides a computer program product, the computer program product includes a computer program, which implements the steps of any one of the methods described in the first aspect above when the computer program is executed by a processor.

上述系统构建方法、装置、计算机设备、存储介质和程序产品,根据业务需求构建包括业务所需的多个核心功能子文件的基础功能文件,并根据该业务需求构建包括各核心功能对应的功能函数的业务逻辑文件;从而通过为各核心功能子文件和业务逻辑文件注册数据接口,并将各核心功能子文件与对应的功能函数进行关联,得到关联关系;以便实现基础功能文件与业务逻辑文件之间的互通;通过该核心功能子文件、该业务逻辑文件、该数据接口和该关联关系,可获取用于处理业务数据的系统可执行文件;通过构建包括业务所需的多个核心功能子文件的基础功能文件以及业务逻辑文件,以及数据接口和关联关系,在实现业务需求的基础上,在需要对单个核心功能需要修改时,可直接对该需要修改的核心功能子文件进行修改,且在需要对业务逻辑需要修改时,仅需对业务逻辑文件进行修改,而无需对整个系统可执行文件进行修改,从而在修改时提升开发效率,并降低修改所需时间,且修改各核心功能时可以避免对业务逻辑产生影响。The above-mentioned system construction method, device, computer equipment, storage medium and program product, construct a basic function file including a plurality of core function sub-files required by the business according to the business requirements, and construct according to the business requirement the function function corresponding to each core function business logic file; thus by registering data interfaces for each core function sub-file and business logic file, and associating each core function sub-file with the corresponding function function, the association relationship is obtained; in order to realize the connection between the basic function file and the business logic file The intercommunication between the core function sub-files, the business logic file, the data interface and the association relationship can obtain the system executable file for processing business data; by constructing multiple core function sub-files required by the business The basic function file and business logic file, as well as the data interface and association relationship, on the basis of realizing the business requirements, when a single core function needs to be modified, the core function sub-file that needs to be modified can be modified directly, and in the When the business logic needs to be modified, only the business logic file needs to be modified, and there is no need to modify the executable file of the entire system, so as to improve the development efficiency and reduce the time required for modification, and can modify the core functions. Avoid impact on business logic.

附图说明Description of drawings

图1为一个实施例中系统构建方法的流程示意图;1 is a schematic flowchart of a system construction method in one embodiment;

图2为一个实施例中系统的架构示意图;2 is a schematic diagram of the architecture of the system in one embodiment;

图3为一个实施例中容错总线分布示意图;Fig. 3 is a schematic diagram of fault-tolerant bus distribution in one embodiment;

图4为一个实施例中业务数据处理的流程示意图;4 is a schematic flowchart of business data processing in one embodiment;

图5为一个实施例中业务数据处理的数据流图示意图;5 is a schematic diagram of a data flow diagram of service data processing in one embodiment;

图6为一个实施例中另一种业务数据处理的流程示意图;6 is a schematic flowchart of another business data processing in one embodiment;

图7为一个实施例中场外衍生品交易系统构建及数据处理的流程示意图;FIG. 7 is a schematic flowchart of the construction of an OTC derivatives trading system and data processing in one embodiment;

图8为一个实施例中系统构建装置的结构框图;8 is a structural block diagram of a system construction apparatus in one embodiment;

图9为一个实施例中业务数据处理装置的结构框图;9 is a structural block diagram of a service data processing apparatus in one embodiment;

图10为一个实施例中第二种业务数据处理装置的结构框图;10 is a structural block diagram of a second type of service data processing apparatus in one embodiment;

图11为一个实施例中计算机设备的内部结构图。Figure 11 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

当前,市场波动率急剧上升,金融业内对于避险和套期保值的需求与日俱增,传统的单品种、单方向交易已难以为投资者获得预期的收益,多边投资方式在获取市场超额收益与风险防范方面优势凸显,交易系统的全面性、性能与速度至关重要。金融交易系统的复杂度也越来越高,需求变化也越来越快。At present, market volatility has risen sharply, and the financial industry has an increasing demand for hedging and hedging. Traditional single-variety and one-way transactions have been unable to obtain expected returns for investors. Multilateral investment methods are gaining market excess returns and risks. The advantages of prevention are prominent, and the comprehensiveness, performance and speed of the trading system are very important. The complexity of financial transaction systems is also getting higher and higher, and the demand is changing faster and faster.

传统交易系统开发中,为了快速开发、验证金融系统,金融交易系统开发时,将系统底层与交易逻辑实现为一体,采用单一语言进行系统开发,如单独采用C、C++或java等编程语言进行整个系统的开发,由于这些语言具有较高的复杂度,对开发人员的技术要求比较高。且,基于C++开发的传统交易系统由于编译慢,没有现代化的内存管理机制,代码难以维护等原因已经无法满足券商等金融行业对复杂交易系统的各项要求。因此,采用整体开发的方式,一旦系统出现错误或者需要修改系统需求时,需要对整个系统的开发代码重新编写或修改,容易导致开发效率低且耗时久的问题。In the development of traditional trading systems, in order to quickly develop and verify financial systems, when developing financial trading systems, the bottom layer of the system and the trading logic are integrated, and a single language is used for system development, such as C, C++, or java and other programming languages. System development, due to the high complexity of these languages, has relatively high technical requirements for developers. In addition, the traditional trading system developed based on C++ has been unable to meet the various requirements of the financial industry such as securities companies for complex trading systems due to slow compilation, no modern memory management mechanism, and difficult code maintenance. Therefore, using the overall development method, once the system has errors or needs to modify the system requirements, it is necessary to rewrite or modify the development code of the entire system, which may easily lead to low development efficiency and time-consuming problems.

在一个实施例中,如图1所示,提供了一种系统构建方法,本实施例以该方法应用于终端进行举例说明,可以理解的是,该方法也可以应用于服务器,还可以应用于包括终端和服务器的系统,并通过终端和服务器的交互实现,其中,终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑等,服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。In one embodiment, as shown in FIG. 1 , a system construction method is provided. In this embodiment, the method is applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a terminal. A system including a terminal and a server, and is realized through the interaction between the terminal and the server. The terminal can be but not limited to various personal computers, notebook computers, smart phones, tablet computers, etc. The server can be an independent server or multiple servers. A cluster of servers is implemented.

本实施例中,该方法包括以下步骤:In this embodiment, the method includes the following steps:

步骤101,根据业务需求构建基础功能文件;该基础功能文件中包括业务所需的多个核心功能子文件。Step 101: Build a basic function file according to business requirements; the basic function file includes multiple core function sub-files required by the business.

其中,在构建系统时,以构建场外衍生品交易系统为例,其在应用中所需要的处理的各项业务即为业务需求,例如对交易相关数据进行业务处理等;根据系统在应用中会进行的各项业务采用计算机编程语言进行基础功能文件的构建,该基础功能文件包括系统进行业务处理所需的多个核心功能子文件,该核心子功能文件即为实现各项业务的多个基本功能,各基础功能文件在系统应用时被调用实现相应的基本功能,以使系统可以正常进行业务需求的处理。Among them, when building the system, taking the construction of an over-the-counter derivatives trading system as an example, the business needs to be processed in the application are business requirements, such as business processing of transaction-related data; according to the system, in the application Each business that will be carried out uses computer programming language to construct the basic function file. The basic function file includes multiple core function sub-files required by the system for business processing. Basic functions, each basic function file is called when the system is applied to implement the corresponding basic functions, so that the system can process business requirements normally.

步骤102,根据该业务需求构建业务逻辑文件;该业务逻辑文件中包括各核心功能对应的功能函数。Step 102: Build a business logic file according to the business requirement; the business logic file includes function functions corresponding to each core function.

其中,所构建的基础功能文件用于实现基础功能,例如实现获取业务数据、传输业务数据以及设定系统配置信息等基础功能,而对于获取到的业务数据进行怎样的处理通过构建的业务逻辑文件实现;采用计算机编程语言构建业务逻辑文件,实现系统应用中业务逻辑的处理,业务逻辑文件可以被基础功能文件调用以对数据进行逻辑处理等操作;其中,该业务逻辑文件中包括上述各核心功能子文件所实现的各核心功能对应的功能函数,不同的功能函数实现不同的功能,对于业务逻辑文件获取到的数据,采用不同的功能函数,对其进行不同的业务逻辑处理。Among them, the constructed basic function file is used to realize basic functions, such as realizing basic functions such as acquiring business data, transmitting business data, and setting system configuration information, and how to process the acquired business data through the constructed business logic file. Realization; use computer programming language to build business logic files to realize the processing of business logic in system applications, and the business logic files can be called by basic function files to perform logical processing of data and other operations; wherein, the business logic files include the above-mentioned core functions The function functions corresponding to the core functions implemented by the sub-files. Different function functions implement different functions. For the data obtained by the business logic file, different function functions are used to perform different business logic processing.

需要说明的是,可以采用相同的计算机编程语言构建基础功能文件和业务逻辑文件,也可以采用不同的计算机编程语言构建基础功能文件和业务逻辑文件,例如,采用C++语言和Python语言分别构建基础功能文件和业务逻辑文件。It should be noted that the same computer programming language can be used to construct the basic function file and the business logic file, or different computer programming languages can be used to construct the basic function file and the business logic file. For example, the basic function file can be constructed using C++ language and Python language respectively. files and business logic files.

步骤103,为各核心功能子文件和该业务逻辑文件注册数据接口,并将各核心功能子文件与对应的功能函数进行关联,得到关联关系。Step 103, registering data interfaces for each core function sub-file and the business logic file, and associating each core function sub-file with a corresponding function function to obtain an association relationship.

其中,为实现系统在应用中基础功能文件与业务逻辑文件进行数据互通,在构建基础功能文件中包括的各核心功能子文件以及业务逻辑文件后,为各核心功能子文件和该业务逻辑文件注册数据接口,例如以注册API(Application Programming Interface)接口的形式实现;进一步地,各核心功能子文件与业务逻辑文件中注册的各对应的功能函数进行关联,得到多个关联关系,从而可以根据该关联关系,对通过接口进行传输的数据根据相应的功能函数进行业务逻辑处理,实现相关业务需求。Among them, in order to realize the data exchange between the basic function file and the business logic file in the system, after constructing each core function subfile and business logic file included in the basic function file, register each core function subfile and the business logic file. The data interface, for example, is implemented in the form of a registration API (Application Programming Interface) interface; further, each core function sub-file is associated with each corresponding function function registered in the business logic file to obtain a plurality of association relationships, so that according to the The association relationship is to perform business logic processing on the data transmitted through the interface according to the corresponding functional functions to achieve related business requirements.

步骤104,根据核心功能子文件、业务逻辑文件、数据接口和关联关系,获取系统可执行文件;该系统可执行文件被运行时用于处理业务数据。Step 104: Acquire a system executable file according to the core function sub-file, the business logic file, the data interface and the association relationship; the system executable file is used for processing business data when running.

其中,根据核心功能子文件、业务逻辑文件、数据接口和关联关系,将包括各核心功能子文件的基础功能文件、业务逻辑文件、数据接口和关联关系进行封装,得到系统可执行文件,该系统可执行文件可以被封装成二进制可执行文件,计算机设备可运行该系统可执行文件,相当于运行场外衍生品交易系统,用于进行业务操作和对业务数据进行处理等;可选的,可以将包括各核心功能子文件的基础功能文件以及数据接口封装为二进制可执行文件,将业务逻辑文件和关联关系封装成可执行二进制文件,基础功能文件被运行时,可以通过相应的数据接口调用业务逻辑文件,进行业务处理。Among them, according to the core function sub-file, business logic file, data interface and association relationship, the basic function file, business logic file, data interface and association relationship including each core function sub-file are encapsulated to obtain the system executable file. The executable file can be encapsulated into a binary executable file, and the computer device can run the system executable file, which is equivalent to running the OTC derivatives trading system, which is used to perform business operations and process business data, etc.; Encapsulate basic function files and data interfaces including core function sub-files into binary executable files, and encapsulate business logic files and associations into executable binary files. When the basic function files are run, the business can be invoked through the corresponding data interface. Logical files for business processing.

上述系统构建方法,根据业务需求构建包括业务所需的多个核心功能子文件的基础功能文件,并根据该业务需求构建包括各核心功能对应的功能函数的业务逻辑文件;从而通过为各核心功能子文件和业务逻辑文件注册数据接口,并将各核心功能子文件与对应的功能函数进行关联,得到关联关系;以便实现基础功能文件与业务逻辑文件之间的互通;通过该核心功能子文件、该业务逻辑文件、该数据接口和该关联关系,可获取用于处理业务数据的系统可执行文件;通过构建包括业务所需的多个核心功能子文件的基础功能文件以及业务逻辑文件,以及数据接口和关联关系,在实现业务需求的基础上,在需要对单个核心功能需要修改时,可直接对该需要修改的核心功能子文件进行修改,且在需要对业务逻辑需要修改时,仅需对业务逻辑文件进行修改,而无需对整个系统可执行文件进行修改,从而在修改时提升开发效率,并降低修改所需时间,且修改各核心功能时可以避免对业务逻辑产生影响,方便业务需求的变更和核心功能的开发过程;同时由于各文件独立,保证业务的安全性。The above system construction method constructs a basic function file including a plurality of core function sub-files required by the business according to business requirements, and constructs a business logic file including function functions corresponding to each core function according to the business requirements; Subfiles and business logic files register the data interface, and associate each core function subfile with the corresponding function function to obtain the association relationship; in order to realize the intercommunication between the basic function file and the business logic file; through the core function subfile, The business logic file, the data interface and the association relationship can obtain a system executable file for processing business data; by constructing a basic function file and business logic file including multiple core function sub-files required by the business, as well as data Interfaces and associations, based on the realization of business requirements, when a single core function needs to be modified, the core function sub-file that needs to be modified can be modified directly, and when the business logic needs to be modified, only the The business logic file can be modified without modifying the executable file of the entire system, thereby improving development efficiency and reducing the time required for modification, and modifying core functions can avoid affecting business logic and facilitate business requirements. The development process of changes and core functions; at the same time, due to the independence of each file, the security of the business is guaranteed.

在一个实施例中,根据业务需求构建基础功能文件,包括:根据该业务需求采用预设编程语言构建该基础功能文件。根据该业务需求构建业务逻辑文件,包括:根据该业务需求采用预设脚本语言构建该业务逻辑文件。In one embodiment, constructing the basic function file according to the business requirement includes: constructing the basic function file using a preset programming language according to the business requirement. Constructing the business logic file according to the business requirement includes: constructing the business logic file by using a preset script language according to the business requirement.

其中,在构建基础功能文件时,可采用预设编程语言构建该基础功能文件;例如,该预设编程语言为C++语言;首先获取构建基础功能文件的基础框架,在该基础框架中,采用C++语言分别编写各核心功能,从而在编写各核心功能后,得到由C++语言编写的该基础功能文件。Wherein, when constructing a basic function file, a preset programming language can be used to construct the basic function file; for example, the preset programming language is C++ language; first, the basic framework for constructing the basic function file is obtained, and in the basic framework, C++ is used. Each core function is written separately in the language, so that after writing each core function, the basic function file written by the C++ language is obtained.

在构建业务逻辑文件时,可采用预设脚本语言构建该业务逻辑文件;例如,该预设脚本语言为Python语言;采用Python语言根据预先设定的业务逻辑,进行业务逻辑的编写,得到业务逻辑文件;该业务逻辑文件以源码形式或编译成二进制文件后可以运行时被基础功能文件调用。该业务逻辑文件在开发时可以以源码形式使用,发布时将源码编译成二进制文件,提高系统安全性,而无需修改基础功能文件。When constructing a business logic file, a preset scripting language can be used to construct the business logic file; for example, the preset scripting language is Python language; the business logic is written in Python language according to the preset business logic, and the business logic is obtained. file; the business logic file can be called by the basic function file at runtime in the form of source code or compiled into a binary file. The business logic file can be used in the form of source code during development, and the source code is compiled into a binary file during release to improve system security without modifying basic function files.

可选的,也可在业务逻辑文件中采用C++语言编写其中的个别核心或基础逻辑功能,而采用Python语言编写其余内容,使得业务逻辑中的核心或逻辑模块化和独立化,保证数据安全性的同时,方便对业务逻辑文件中的该核心或基础功能进行修改和维护,也会有性能上的提升。Optionally, it is also possible to use C++ language to write individual core or basic logic functions in the business logic file, and use Python language to write the rest of the content, so that the core or logic in the business logic can be modularized and independent, ensuring data security. At the same time, it is convenient to modify and maintain the core or basic functions in the business logic file, and there will also be performance improvements.

请参考图2,其示出了本申请实施例提供的采用C++语言和Python语言构建的系统的架构示意图。Please refer to FIG. 2 , which shows a schematic diagram of the architecture of a system constructed by using the C++ language and the Python language provided by an embodiment of the present application.

通过采用不同的预设的计算机编程语言构建基础功能文件和业务逻辑文件,将系统构建模块化和独立化,减小了基础功能文件和业务逻辑文件之间的耦合性;在系统投入应用后,即使修改业务逻辑功能,也只需对业务逻辑文件进行修改即可,基础功能文件无需做任何修改,方便业务需求的变更和逻辑功能开发过程,使得系统开发更加灵活和简便;同时,由于基础功能文件无需做任何修改,保证系统稳定性和安全性,也可以提升系统开发效率,使得系统各功能快速实现。By using different preset computer programming languages to build basic function files and business logic files, the system is modularized and independent, reducing the coupling between basic function files and business logic files; after the system is put into application, Even if the business logic function is modified, only the business logic file needs to be modified, and the basic function file does not need to be modified, which facilitates the change of business requirements and the logic function development process, making the system development more flexible and convenient; The files do not need to be modified to ensure the stability and security of the system, and can also improve the efficiency of system development, so that the functions of the system can be realized quickly.

在一个实施例中,该基础功能文件中包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个;该配置管理子文件被运行时用于获取各核心功能子文件的配置信息;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。In one embodiment, the basic function file includes at least two of a configuration management sub-file, a network communication sub-file, a bus sub-file, a log sub-file, and a market sub-file; the configuration management sub-file is used to obtain the The configuration information of each core function subfile; the network communication subfile is used to communicate with external devices to obtain external data when it is running; the bus subfile is used to provide a communication interface for each core function subfile when it is running; the log The sub-file is used by the runtime to provide log interface services; the market sub-file is used by the runtime to obtain transaction information.

其中,如图2所示,场外衍生品交易系统中各核心功能可以包括配置管理功能、网络通信功能、总线功能、日志功能以及行情功能等。Among them, as shown in Figure 2, the core functions in the OTC derivatives trading system may include configuration management functions, network communication functions, bus functions, log functions, and market quotation functions.

配置管理功能用于提供基础功能文件中包含的各项核心功能的初始配置选项,如提供网络通信功能中的网络服务的监听地址、端口,如提供日志功能中日志信息的输出方式;配置管理功能通过配置相关信息可以实现决定各项子功能模块是否启用。网络通信功能基于提供点对点通信服务,并支持TCP协议,以实现系统内部与外部其他系统之间的数据传输,例如,在场外衍生品交易系统中,实现客户端传送的指令的接收和与外部其他算法平台的对接计算。The configuration management function is used to provide the initial configuration options of each core function contained in the basic function file, such as providing the listening address and port of the network service in the network communication function, such as providing the output method of the log information in the log function; the configuration management function By configuring the relevant information, it is possible to determine whether each sub-function module is enabled. The network communication function is based on providing point-to-point communication services and supports the TCP protocol to realize data transmission between the internal system and other external systems. Algorithm platform docking calculation.

网络通信功能支持多项内部和外部网络通信,实现network模块。其中network.add_user_server()模块可以通过API指定业务逻辑文件作为服务端,通过配置ip地址和端口作为参数与客户端或管理端进行tcp/ip连接。客户端通过注册的接口,可以接收到基础功能文件发送的指令回报;同时,基础功能文件监听客户端的各项指令,当用户下达指令时,基础功能文件通过tcp协议发送给业务逻辑文件,业务逻辑文件再处理指令并将结果返回给基础功能文件。其中,基础功能文件作为桥梁实现跨语言通信机制,分离开发可以实现使开发效率更高,结构更清晰、逻辑更优化。网络通信功能还包含Pipe管道,能实现两个进程间的数据通信,实现两个服务节点互联互通更为简单。在场外衍生品交易系统中,通过注册各项外部算法平台函数,在业务逻辑文件中接受并处理各项算法平台的算法策略和回报结果。The network communication function supports a number of internal and external network communications to implement the network module. The network.add_user_server() module can specify the business logic file as the server through the API, and perform tcp/ip connection with the client or the management end by configuring the ip address and port as parameters. The client can receive the command return sent by the basic function file through the registered interface; at the same time, the basic function file monitors the instructions of the client, and when the user issues an instruction, the basic function file is sent to the business logic file through the tcp protocol. File reprocessing instructions and return the result to the base function file. Among them, the basic function file acts as a bridge to realize a cross-language communication mechanism, and separate development can achieve higher development efficiency, clearer structure, and more optimized logic. The network communication function also includes a Pipe pipeline, which can realize data communication between two processes, and it is simpler to realize the interconnection of two service nodes. In the OTC derivatives trading system, by registering various external algorithm platform functions, the algorithm strategies and return results of various algorithm platforms are accepted and processed in business logic files.

总线功能实现数据在系统内部进行信息分发,将各核心功能的数据通过接口进行传输,其中,采用容错总线,可以完成消息可靠按序的递交工作和故障应对工作,任何功能子文件不必在自己的业务实现中再考虑这些任务,从而做到业务逻辑与容错逻辑的分离。容错总线实现在交易核心、前置机、数据库同步系统之间的通信。任何一台容错总线的单点故障都不会对以上通信带来故障;任何单点的交易核心机器故障也不会中断系统的对外服务。此外,容错总线还提供反演机制,让交易核心在启动时收到之前应该发送给该核心的指令流,以建立其当时的内存状态。The bus function realizes the information distribution of data within the system, and transmits the data of each core function through the interface. Among them, the fault-tolerant bus can be used to complete the reliable and orderly delivery of messages and fault response work, and any function sub-file does not need to be in its own. Consider these tasks in business implementation, so as to separate business logic from fault-tolerant logic. The fault-tolerant bus implements the communication between the transaction core, the front-end computer, and the database synchronization system. A single point of failure of any fault-tolerant bus will not bring failure to the above communication; any single point of transaction core machine failure will not interrupt the external services of the system. In addition, the fault-tolerant bus also provides an inversion mechanism that allows a transaction core to receive at startup the stream of instructions that should have been sent to that core to establish its current state of memory.

请参考图3,其示出了本申请实施例提供的一种容错总线分布示意图;其中,首先在总线配置信息中会定义各项挂在总线上的应用组,例如交易前置机会定义接收到各项从管理端发来的请求,通过配置功能子文件的分发,核心会把各项来自外部的指令分发到总线上的不同机组。总线配置信息中会定义机组的不同标识,同机组标识总线会获取接受消息的系统群内成员并进行消息的分发。而通过各核心功能子文件与业务逻辑文件注册的接口,可以快速在业务逻辑文件中对注册的各功能函数进行调用,使复杂功能简单化。Please refer to FIG. 3, which shows a schematic diagram of the distribution of a fault-tolerant bus provided by an embodiment of the present application; wherein, firstly, in the bus configuration information, each application group hanging on the bus will be defined, for example, the transaction front-end opportunity defines the received Various requests sent from the management end, through the distribution of configuration function sub-files, the core will distribute various external commands to different units on the bus. The bus configuration information will define different identifiers of the unit, and the same unit identifier bus will obtain the members in the system group that receive the message and distribute the message. And through the registered interface between each core function sub-file and the business logic file, each registered function function can be called quickly in the business logic file, which simplifies complex functions.

在业务逻辑文件中,注册不同的功能函数对业务数据进行不同的处理。如通过engine.register_bus_hander()函数,将所有业务层面的功能函数注册到总线,实现数据在系统内部进行通信。通过engine.start()函数启动总线,并用mode参数决定总线是否启用反演模式。通过engine.start_timer()函数设置循环时间,周期性回调业务处理所需要的功能函数,例如交易系统报盘模块返回的心跳函数,系统总线吞吐量计数函数等,从而数据处理正确进行。系统可执行文件被运行启动后会接收到不同外部指令,通过engine.send_to_bus()函数发送到总线。系统可通过engine.handle_bus_message()函数在对应的功能中执行接收到的指令和对应的功能函数,系统内部函数间的通信也通过类似的方式进行。In the business logic file, register different functional functions to process business data differently. For example, through the engine.register_bus_hander() function, all business-level functional functions are registered to the bus to communicate data within the system. Start the bus through the engine.start() function, and use the mode parameter to determine whether the bus is enabled in inversion mode. The cycle time is set by the engine.start_timer() function, and the function functions required for business processing are periodically called back, such as the heartbeat function returned by the trading system offer module, the system bus throughput counting function, etc., so that the data processing is carried out correctly. After the system executable file is started, it will receive different external commands and send them to the bus through the engine.send_to_bus() function. The system can execute the received instruction and the corresponding function function in the corresponding function through the engine.handle_bus_message() function, and the communication between the internal functions of the system is also carried out in a similar way.

日志功能根据配置功能提供的配置信息,决定系统日志信息的输出方向,例如,根据用户指定日志级别将日志信息输出打印或通过网络发送至客户端等,日志级别包括提示日志、警告日志、错误日志、调试日志以及致命日志等;其中,日志功能基于udp或tcp/ip协议,支持日志的网络传输。在业务逻辑文件被运行时,其可以导出engine.info_log()、engine.warn_log()、engine.error_log()、engine.debug_log()和engine.fatal_log()对应相应的日志等级,业务开发人员可以根据需求,打印不同内容的日志,并指定日志级别方便维护开发各项业务。The log function determines the output direction of system log information according to the configuration information provided by the configuration function. For example, according to the log level specified by the user, the log information is output and printed or sent to the client through the network. The log level includes prompt log, warning log, and error log. , debug log, and fatal log; among them, the log function is based on udp or tcp/ip protocol, and supports network transmission of logs. When the business logic file is run, it can export the corresponding log levels corresponding to engine.info_log(), engine.warn_log(), engine.error_log(), engine.debug_log() and engine.fatal_log(). Business developers can According to requirements, print logs of different contents, and specify the log level to facilitate maintenance and development of various businesses.

行情功能根据金融业务需求,获取各大交易所的行情信息。例如,在场外衍生品交易系统中,通过配置信息,配置行情服务器的ip和端口,可以在业务逻辑文件中迅速获取各项交易所的行情信息。其中,基础功能文件通过核心功能首先为业务逻辑文件提供market.start_market()函数对行情服务进行初始化,进而调用market.subscribe_market()函数,可以获取各种行情信息,转发送至基础功能文件中,并通过行情功能,快速将信息返回给客户端。The market function obtains market information of major exchanges according to financial business needs. For example, in the OTC derivatives trading system, by configuring the information and configuring the ip and port of the market server, the market information of various exchanges can be quickly obtained in the business logic file. Among them, the basic function file first provides the business logic file with the market.start_market() function to initialize the market service through the core function, and then calls the market.subscribe_market() function to obtain various market information and forward it to the basic function file. And through the market function, the information is quickly returned to the client.

因此,上述基础功能配置的基础功能文件中可以包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个。该配置管理子文件被运行时用于提供基础功能文件中包含的各项核心功能的初始配置选项,如提供网络通信功能中的网络服务的监听地址、端口,如提供日志功能中日志信息的输出方式;配置管理功能通过配置相关信息可以实现决定各项子功能模块是否启用;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口,且可采用容错总线,通过容错总线完成信息可靠按序的递交工作和故障对应工作;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。Therefore, the basic function file of the above-mentioned basic function configuration may include at least two of the configuration management sub-file, the network communication sub-file, the bus sub-file, the log sub-file and the market sub-file. The configuration management subfile is used to provide the initial configuration options of each core function contained in the basic function file at runtime, such as providing the listening address and port of the network service in the network communication function, such as providing the output of the log information in the log function The configuration management function can determine whether each sub-function module is enabled through configuration related information; the network communication sub-file is used to communicate with external devices to obtain external data when it is running; the bus sub-file is used to Each core function sub-file provides a communication interface, and a fault-tolerant bus can be used to complete the reliable and orderly delivery of information and fault response work through the fault-tolerant bus; the log sub-file is used to provide log interface services when it is running; the market sub-file is It is used to obtain transaction information at runtime.

在上述图1所示实例中,主要介绍了构建系统可执行文件的流程,下面如图4所示,其示出了本申请实施例提供的一种业务数据处理的流程示意图,也即系统可执行文件运行时的具体过程;该系统构建方法在业务处理中还包括如下步骤:In the example shown in FIG. 1 above, the process of constructing an executable file of the system is mainly introduced. As shown in FIG. 4 below, it shows a schematic flowchart of a business data processing provided by an embodiment of the present application, that is, the system can The specific process of executing the file runtime; the system construction method also includes the following steps in business processing:

步骤401,调用该基础功能文件中的目标核心功能子文件获取业务数据。Step 401, calling the target core function sub-file in the basic function file to obtain service data.

其中,计算机设备加载并运行系统可执行文件时,通过调用基础功能文件中的目标核心功能子文件获取外部的业务数据,例如,当需要从外部获取行情数据时,目标核心功能文件为行情子文件,通过调用该行情子文件,获取各交易所的行情信息作为业务数据。Among them, when the computer device loads and runs the system executable file, it obtains external business data by calling the target core function sub-file in the basic function file. For example, when the market data needs to be obtained from the outside, the target core function file is the market sub-file , and obtain the market information of each exchange as business data by calling the market sub-file.

步骤402,根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中。Step 402, according to the target data interface corresponding to the target core function subfile, transmit the service data to the service logic file.

其中,根据该目标核心功能子文件与业务逻辑文件注册的对应的数据接口为目标数据接口,将获取到的业务数据通过该目标数据接口,将其传输至业务逻辑文件中;例如,当该目标核心功能子文件为行情子文件时,将获取到的行情信息通过相应的数据接口传输至业务逻辑文件中,以便对该行情信息进行相关业务逻辑处理。The corresponding data interface registered according to the target core function sub-file and the business logic file is the target data interface, and the obtained business data is transmitted to the business logic file through the target data interface; for example, when the target When the core function sub-file is a market sub-file, the obtained market information is transmitted to the business logic file through the corresponding data interface, so as to perform relevant business logic processing on the market information.

步骤403,根据该关联关系,从该业务逻辑文件中调用该目标核心功能子文件对应的功能函数对该业务数据进行处理。Step 403 , according to the association relationship, call the function function corresponding to the target core function sub-file from the business logic file to process the business data.

其中,业务逻辑文件中注册有与各核心功能子文件对应的多个功能函数;当业务逻辑文件从目标数据接口获取到业务数据后,基础功能文件中会根据预先的配置信息,调用业务逻辑文件中对应的功能函数,对该业务数据进行业务逻辑处理;例如行情子文件与业务逻辑函数注册有多个功能函数,对于获取到的行情信息,根据预先配置,不同的行情信息对应不同的功能函数进行业务处理。Among them, multiple function functions corresponding to each core function sub-file are registered in the business logic file; after the business logic file obtains business data from the target data interface, the basic function file will call the business logic file according to the pre-configured information The corresponding functional function in the , perform business logic processing on the business data; for example, the market sub-file and the business logic function are registered with multiple functional functions. For the acquired market information, according to the pre-configuration, different market information corresponds to different functional functions conduct business processing.

并且,在业务处理的过程中,当业务逻辑文件被运行时进行业务处理时,可能会生成相应的相关日志信息,可以对相关日志信息进行记录,业务逻辑文件可以对该日志信息进行业务逻辑处理,并将该日志信息通过接口传输至基础功能文件中的日志功能中,从而可以根据日志功能中的配置,对不同级别的日志进行打印或通过网络传输,实现对日志信息的处理。In addition, in the process of business processing, when the business logic file is run for business processing, corresponding log information may be generated, the relevant log information can be recorded, and the business logic file can perform business logic processing on the log information. , and transmit the log information to the log function in the basic function file through the interface, so that according to the configuration in the log function, logs of different levels can be printed or transmitted through the network to realize the processing of the log information.

请参考图5,其示出了本申请实施例提供的一种业务数据处理的数据流图示意图;业务数据可通过TCP或UDP消息的形式被基础功能文件在运行时获取,并传输至业务逻辑文件中进行业务逻辑处理;在业务逻辑处理后,若需将业务数据通过网络外发,则将业务数据传输至基础功能文件并以TCP或UDP消息的形式外发;其中,BUS消息为总线进行内部信息的传输。Please refer to FIG. 5, which shows a schematic diagram of a data flow diagram of service data processing provided by an embodiment of the present application; service data can be obtained by a basic function file in the form of a TCP or UDP message at runtime, and transmitted to the service logic The business logic is processed in the file; after the business logic is processed, if the business data needs to be sent out through the network, the business data will be transmitted to the basic function file and sent out in the form of TCP or UDP messages; among them, the BUS message is carried out by the bus. Transmission of Internal Information.

通过直接加载运行系统可执行文件,可以通过基础功能子文件中包括的各核心功能获取业务数据,快速准确获取到业务数据,并且,由于业务逻辑处理文件与基础功能文件采用不同语言编写,保证了获取到的业务数据的安全性;从而可以根据注册的接口,对业务数据进行相应的准确的业务逻辑处理。By directly loading the executable file of the operating system, business data can be obtained through the core functions included in the basic function sub-file, and the business data can be obtained quickly and accurately. Moreover, since the business logic processing file and the basic function file are written in different languages, it is guaranteed that The security of the acquired business data; thus, corresponding and accurate business logic processing can be performed on the business data according to the registered interface.

在一个实施例中,如图6所示,其示出了本申请实施例提供的另一种业务数据处理的流程示意图;在业务数据处理过程中,包括以下步骤:In one embodiment, as shown in FIG. 6 , it shows a schematic flowchart of another business data processing provided by the embodiment of the present application; in the business data processing process, the following steps are included:

步骤601,调用该基础功能文件中的目标核心功能子文件获取业务数据。Step 601, calling the target core function sub-file in the basic function file to obtain service data.

步骤602,对该业务数据进行预处理,得到预处理后的业务数据;该预处理包括反序列化操作和/或检查合法性操作。Step 602: Preprocess the business data to obtain preprocessed business data; the preprocessing includes deserialization and/or validity checking.

步骤603,根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中。Step 603, according to the target data interface corresponding to the target core function subfile, transmit the preprocessed service data to the service logic file.

步骤604,根据该关联关系,从该业务逻辑文件中调用该目标核心功能子文件对应的功能函数对该业务数据进行处理。Step 604, according to the association relationship, call the function function corresponding to the target core function sub-file from the business logic file to process the business data.

其中,计算机设备加载并运行系统可执行文件时,通过调用基础功能文件中的目标核心功能子文件获取外部的业务数据后,可以对该业务数据先进行预处理,以便进行进一步的业务逻辑处理;该预处理包括反序列化操作、进行检查合法性操作、判断请求类型操作等,或进行反序列化操作以及检查合法性操作;相应的,对业务数据进行预处理后,再根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中以根据关联关系调用该目标核心功能子文件对应的功能函数进行业务逻辑处理。通过对数据进行预处理,实现数据清洗,去除无效数据和错误数据等,便于业务逻辑文件中对该业务数据进行准确且有效的处理。Wherein, when the computer device loads and runs the system executable file, after acquiring the external business data by calling the target core function sub-file in the basic function file, the business data can be preprocessed for further business logic processing; The preprocessing includes deserialization, checking the legality, judging the request type, etc., or performing deserialization and checking the legality; correspondingly, after preprocessing the business data, and then according to the target core function The target data interface corresponding to the sub-file transmits the pre-processed business data to the business logic file to call the function function corresponding to the target core function sub-file to perform business logic processing according to the association relationship. By preprocessing the data, cleaning the data, removing invalid data and erroneous data, etc., it is convenient to process the business data accurately and effectively in the business logic file.

在一个实施例中,如图7所示,其实示出了本申请实施例提供的一种场外衍生品交易系统构建及数据处理的流程示意图;构建场外衍生品交易系统包括以下步骤:In one embodiment, as shown in FIG. 7 , it actually shows a schematic flowchart of the construction and data processing of an OTC derivatives trading system provided by the embodiment of the present application; the construction of the OTC derivatives trading system includes the following steps:

步骤701,根据业务需求采用预设编程语言构建基础功能文件。Step 701, using a preset programming language to construct a basic function file according to business requirements.

其中,在构建基础功能文件时,可采用预设编程语言构建该基础功能文件;例如,该预设编程语言为C++语言;首先获取构建基础功能文件的基础框架,在该基础框架中,采用C++语言分别编写各核心功能,从而在编写各核心功能后,得到由C++语言编写的该基础功能文件。该基础功能文件中包括业务所需的多个核心功能子文件;且,基础功能文件中包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个;该配置管理子文件被运行时用于获取各核心功能子文件的配置信息;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。Wherein, when constructing a basic function file, a preset programming language can be used to construct the basic function file; for example, the preset programming language is C++ language; first, the basic framework for constructing the basic function file is obtained, and in the basic framework, C++ is used. Each core function is written separately in the language, so that after writing each core function, the basic function file written by the C++ language is obtained. The basic function file includes multiple core function sub-files required by the business; and, the basic function file includes at least two of the configuration management sub-file, network communication sub-file, bus sub-file, log sub-file and market sub-file ; The configuration management sub-file is used to obtain the configuration information of each core function sub-file when it is run; the network communication sub-file is used to communicate with external devices to obtain external data when it is run; the bus sub-file is used to Provide a communication interface for each core function sub-file; the log sub-file is used to provide log interface services when running; the market sub-file is used to obtain transaction information when running.

步骤702,根据业务需求采用预设脚本语言构建业务逻辑文件。Step 702, constructing a business logic file using a preset script language according to business requirements.

其中,在构建业务逻辑文件时,可采用预设脚本语言构建该业务逻辑文件;例如,该预设脚本语言为Python语言;采用Python语言根据预先设定的业务逻辑,进行业务逻辑的编写,得到业务逻辑文件;该业务逻辑文件封装成二进制文件后可以运行时被基础功能文件调用。并且,该业务逻辑文件中包括各核心功能对应的功能函数。不同的功能函数实现不同的功能,对于业务逻辑文件获取到的数据,采用不同的功能函数,对其进行不同的业务逻辑处理。Wherein, when constructing a business logic file, a preset script language can be used to construct the business logic file; for example, the preset script language is Python language; using Python language to write business logic according to the preset business logic, get Business logic file; after the business logic file is encapsulated into a binary file, it can be called by the basic function file at runtime. Moreover, the business logic file includes function functions corresponding to each core function. Different function functions implement different functions. For the data obtained from the business logic file, different function functions are used to perform different business logic processing on it.

步骤703,为各核心功能子文件和业务逻辑文件注册数据接口,并将各核心功能子文件与对应的功能函数进行关联,得到关联关系。Step 703: Register data interfaces for each core function sub-file and business logic file, and associate each core function sub-file with the corresponding function function to obtain an association relationship.

其中,为实现系统在应用中基础功能文件与业务逻辑文件进行数据互通,在构建基础功能文件中包括的各核心功能子文件以及业务逻辑文件后,为各核心功能子文件和该业务逻辑文件注册数据接口;进一步地,各核心功能子文件与业务逻辑文件中注册的各对应的功能函数进行关联,得到多个关联关系,从而可以根据该关联关系,对通过接口进行传输的数据根据相应的功能函数进行业务逻辑处理,实现相关业务需求。Among them, in order to realize the data exchange between the basic function file and the business logic file in the system, after constructing each core function subfile and business logic file included in the basic function file, register each core function subfile and the business logic file. Data interface; further, each core function subfile is associated with each corresponding function function registered in the business logic file to obtain a plurality of association relationships, so that the data transmitted through the interface can be based on the corresponding function according to the association relationship. The function performs business logic processing and implements related business requirements.

步骤704,根据核心功能子文件、业务逻辑文件、数据接口和关联关系,获取系统可执行文件.Step 704: Obtain the system executable file according to the core function sub-file, business logic file, data interface and association relationship.

其中,计算机设备可运行该系统可执行文件,用于进行业务操作和对业务数据进行处理等;且,可以将包括各核心功能子文件的基础功能文件以及数据接口封装为二进制可执行文件,将业务逻辑文件和关联关系封装成可执行二进制文件,基础功能文件被运行时,可以调用业务逻辑文件,进行业务处理。Among them, the computer equipment can run the executable file of the system to perform business operations and process business data, etc.; and the basic function file including each core function sub-file and the data interface can be encapsulated into a binary executable file. The business logic files and associations are encapsulated into executable binary files. When the basic function files are run, the business logic files can be called for business processing.

步骤705,在业务处理过程中,调用基础功能文件中的目标核心功能子文件获取业务数据。Step 705 , in the business processing process, call the target core function sub-file in the basic function file to obtain business data.

步骤706,对业务数据进行预处理,得到预处理后的业务数据。Step 706: Preprocess the service data to obtain preprocessed service data.

其中,在调用基础功能文件中的目标核心功能子文件获取到业务数据后,可以对该业务数据先进行预处理,以便进行进一步的业务逻辑处理;该预处理包括反序列化操作、进行检查合法性操作、判断请求类型操作等,或进行反序列化操作以及检查合法性操作;相应的,对业务数据进行预处理后,再根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中以进行业务逻辑处理。通过对数据进行预处理,方便业余数据通过接口进行正常传输。Among them, after calling the target core function sub-file in the basic function file to obtain the business data, the business data can be pre-processed for further business logic processing; the pre-processing includes deserialization operations, checking for legality operations, judging request type operations, etc., or performing deserialization operations and checking legality operations; correspondingly, after preprocessing the business data, and then according to the target data interface corresponding to the target core function subfile, the preprocessing operation is performed. The latter business data is transmitted to the business logic file for business logic processing. By preprocessing the data, it is convenient for amateur data to be transmitted normally through the interface.

步骤707,根据目标核心功能子文件对应的目标数据接口,将预处理后的业务数据传输至业务逻辑文件中。Step 707 , according to the target data interface corresponding to the target core function subfile, transmit the preprocessed business data to the business logic file.

其中,根据该目标核心功能子文件与业务逻辑文件注册的对应的数据接口为目标数据接口,将获取到的业务数据根据该目标数据接口,将其传输至业务逻辑文件中。The corresponding data interface registered according to the target core function subfile and the business logic file is the target data interface, and the acquired business data is transmitted to the business logic file according to the target data interface.

步骤708,根据关联关系,从业务逻辑文件中调用目标核心功能子文件对应的功能函数对业务数据进行处理。Step 708 , according to the association relationship, call the function function corresponding to the target core function subfile from the business logic file to process the business data.

其中,业务逻辑文件中注册有与各核心功能子文件对应的多个功能函数;当业务逻辑文件从目标数据接口获取到业务数据后,基础功能文件中会根据预先的配置信息,调用业务逻辑文件中对应的功能函数,对该业务数据进行业务逻辑处理;例如行情子文件与业务逻辑函数注册有多个功能函数,对于获取到的行情信息,根据预先配置,不同的行情信息对应不同的功能函数进行业务处理。Among them, multiple function functions corresponding to each core function sub-file are registered in the business logic file; after the business logic file obtains business data from the target data interface, the basic function file will call the business logic file according to the pre-configured information The corresponding functional function in the , perform business logic processing on the business data; for example, the market sub-file and the business logic function are registered with multiple functional functions. For the acquired market information, according to the pre-configuration, different market information corresponds to different functional functions conduct business processing.

通过采用不同的计算机编程语言构建基础功能文件和业务逻辑文件,将系统构建模块化和独立化,减小了基础功能文件和业务逻辑文件之间的耦合性;在系统投入应用后,即使修改业务逻辑功能,也只需对业务逻辑文件进行修改即可,基础功能文件无需做任何修改,方便业务需求的变更和逻辑功能开发过程,使得系统开发更加灵活和简便;同时,由于基础功能文件无需做任何修改,保证系统稳定性和安全性,也可以提升系统开发效率,使得系统各功能快速实现。基于c++为底层核心交易引擎,与基于python实现业务逻辑的技术相结合,使用分层架构的思想,将整个交易系统架构与需求逻辑分离开发。系统开发采用核心C++语言进行开发,使用python进行业务逻辑的实现,既能保证核心数据交互的效率,也能使得业务开发更为简单,灵活;适应不同的业务场景。核心c++部分提供了相对基础的模块,与业务本身没有太多的关联性,需求变化较少,一旦开发完成后形成稳定的系统核心,方便基于业务需求的快速迭代。By using different computer programming languages to build basic function files and business logic files, the system is modularized and independent, reducing the coupling between basic function files and business logic files; after the system is put into application, even if the business is modified For logical functions, you only need to modify the business logic files, and the basic function files do not need to be modified, which facilitates the change of business requirements and the development process of logical functions, making system development more flexible and convenient; at the same time, because the basic function files do not need to be modified Any modification can ensure the stability and security of the system, and can also improve the efficiency of system development, so that the functions of the system can be realized quickly. Based on C++ as the underlying core transaction engine, combined with the technology based on python to implement business logic, using the idea of a layered architecture, the entire transaction system architecture and demand logic are developed separately. System development uses the core C++ language for development, and python is used to implement business logic, which can not only ensure the efficiency of core data interaction, but also make business development simpler and more flexible; adapt to different business scenarios. The core C++ part provides relatively basic modules, which do not have much correlation with the business itself, and the requirements change less. Once the development is completed, a stable system core is formed, which is convenient for rapid iteration based on business requirements.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed sequentially according to the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and the steps may be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be performed at different times The execution order of these steps or phases is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or phases in the other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的系统构建方法的系统构建装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个系统构建装置实施例中的具体限定可以参见上文中对于系统构建方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application also provides a system construction apparatus for implementing the above-mentioned system construction method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more system construction device embodiments provided below can refer to the above limitations on the system construction method, It is not repeated here.

在一个实施例中,如图8所示,提供了一种系统构建装置,包括:第一构建模块801、第二构建模块802、注册模块803和获取模块804,其中:In one embodiment, as shown in FIG. 8, a system construction apparatus is provided, including: a first construction module 801, a second construction module 802, a registration module 803 and an acquisition module 804, wherein:

第一构建模块801,用于根据业务需求构建基础功能文件,所述基础功能文件中包括业务所需的多个核心功能子文件;The first building module 801 is used to build a basic function file according to business requirements, and the basic function file includes a plurality of core function sub-files required by the business;

第二构建模块802,用于根据所述业务需求构建业务逻辑文件;所述业务逻辑文件中包括各核心功能对应的功能函数;The second construction module 802 is used for constructing a business logic file according to the business requirement; the business logic file includes function functions corresponding to each core function;

注册模块803,用于为各所述核心功能子文件和所述业务逻辑文件注册数据接口,并将各所述核心功能子文件与对应的功能函数进行关联,得到关联关系;a registration module 803, configured to register a data interface for each of the core function sub-files and the business logic file, and associate each of the core function sub-files with the corresponding function functions to obtain an association relationship;

获取模块804,用于根据所述核心功能子文件、所述业务逻辑文件、所述数据接口和所述关联关系,获取系统可执行文件;所述系统可执行文件被运行时用于处理业务数据。Obtaining module 804, configured to obtain a system executable file according to the core function sub-file, the business logic file, the data interface and the association relationship; the system executable file is used to process business data when running .

在一个实施例中,该第二构建模块,具体用于:根据该业务需求采用预设脚本语言构建该业务逻辑文件。In one embodiment, the second building module is specifically configured to: build the business logic file by using a preset script language according to the business requirement.

在一个实施例中,该基础功能文件中包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个;该配置管理子文件被运行时用于获取各核心功能子文件的配置信息;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。In one embodiment, the basic function file includes at least two of a configuration management sub-file, a network communication sub-file, a bus sub-file, a log sub-file, and a market sub-file; the configuration management sub-file is used to obtain the The configuration information of each core function subfile; the network communication subfile is used to communicate with external devices to obtain external data when it is running; the bus subfile is used to provide a communication interface for each core function subfile when it is running; the log The sub-file is used by the runtime to provide log interface services; the market sub-file is used by the runtime to obtain transaction information.

在一个实施例中,如图9所示,其示出了本申请实施例提供的一种业务数据处理装置的结构框图;该业务数据处理装置900包括:In one embodiment, as shown in FIG. 9 , it shows a structural block diagram of a service data processing apparatus provided by an embodiment of the present application; the service data processing apparatus 900 includes:

第一调用模块901,用于在业务处理过程中,调用该基础功能文件中的目标核心功能子文件获取业务数据;The first calling module 901 is used for calling the target core function sub-file in the basic function file to obtain business data during business processing;

第一传输模块902,用于根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中;a first transmission module 902, configured to transmit the service data to the service logic file according to the target data interface corresponding to the target core function sub-file;

第一处理模块903,用于根据该关联关系,从该业务逻辑文件中调用该目标核心功能子文件对应的功能函数对该业务数据进行处理。The first processing module 903 is configured to call the function function corresponding to the target core function sub-file from the business logic file to process the business data according to the association relationship.

在一个实施例中,如图10所示,其示出了本申请实施例提供的第二种业务数据处理装置的结构框图;该业务数据处理装置1000还包括:In one embodiment, as shown in FIG. 10 , it shows a structural block diagram of the second service data processing apparatus provided by the embodiment of the present application; the service data processing apparatus 1000 further includes:

预处理模块904,用于对该业务数据进行预处理,得到预处理后的业务数据;该预处理包括反序列化操作和/或检查合法性操作;a preprocessing module 904, configured to preprocess the business data to obtain preprocessed business data; the preprocessing includes deserialization operations and/or legality checking operations;

根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中,包括:根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中。Transferring the business data to the business logic file according to the target data interface corresponding to the target core function subfile includes: transmitting the preprocessed business data to the target core function subfile according to the target data interface corresponding to the target core function subfile. in the business logic file.

上述系统构建装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned system construction apparatus can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图11所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储系统构建数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种系统构建方法。In one embodiment, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 11 . The computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The computer device's database is used to store system build data. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by a processor, implements a system construction method.

本领域技术人员可以理解,图11中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 11 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:

根据业务需求构建基础功能文件,该基础功能文件中包括业务所需的多个核心功能子文件;根据该业务需求构建业务逻辑文件;该业务逻辑文件中包括各核心功能对应的功能函数;为各核心功能子文件和该业务逻辑文件注册数据接口,并将各核心功能子文件与对应的功能函数进行关联,得到关联关系;根据该核心功能子文件、该业务逻辑文件、该数据接口和该关联关系,获取系统可执行文件;该系统可执行文件被运行时用于处理业务数据。Build a basic function file according to business requirements, and the basic function file includes multiple core function sub-files required by the business; build a business logic file according to the business requirements; the business logic file includes the function functions corresponding to each core function; The core function subfile and the business logic file register the data interface, and associate each core function subfile with the corresponding function function to obtain an association relationship; according to the core function subfile, the business logic file, the data interface and the association relationship to obtain the system executable file; the system executable file is used by the runtime to process business data.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

根据该业务需求采用预设编程语言构建该基础功能文件;根据该业务需求采用预设脚本语言构建该业务逻辑文件。The basic function file is constructed using a preset programming language according to the business requirement; the business logic file is constructed using a preset script language according to the business requirement.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

该基础功能文件中包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个;该配置管理子文件被运行时用于获取各核心功能子文件的配置信息;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。The basic function file includes at least two of the configuration management sub-file, the network communication sub-file, the bus sub-file, the log sub-file and the market sub-file; the configuration management sub-file is used to obtain the information of each core function sub-file when running. Configuration information; the network communication subfile is used to communicate with external devices to obtain external data when it is running; the bus subfile is used to provide a communication interface for each core function subfile when it is run; the log subfile is used to It is used to provide log interface services; the market sub-file is used to obtain transaction information at runtime.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

调用该基础功能文件中的目标核心功能子文件获取业务数据;根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中;根据该关联关系,从该业务逻辑文件中调用该目标核心功能子文件对应的功能函数对该业务数据进行处理。Call the target core function subfile in the basic function file to obtain business data; according to the target data interface corresponding to the target core function subfile, transmit the business data to the business logic file; according to the association relationship, from the business logic file The function function corresponding to the target core function sub-file is called in the file to process the business data.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

对该业务数据进行预处理,得到预处理后的业务数据;该预处理包括反序列化操作和/或检查合法性操作;Preprocessing the business data to obtain preprocessed business data; the preprocessing includes deserialization and/or legality checking;

根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中,包括:根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中。Transferring the business data to the business logic file according to the target data interface corresponding to the target core function subfile includes: transmitting the preprocessed business data to the target core function subfile according to the target data interface corresponding to the target core function subfile. in the business logic file.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

根据业务需求构建基础功能文件,该基础功能文件中包括业务所需的多个核心功能子文件;根据该业务需求构建业务逻辑文件;该业务逻辑文件中包括各核心功能对应的功能函数;为各核心功能子文件和该业务逻辑文件注册数据接口,并将各核心功能子文件与对应的功能函数进行关联,得到关联关系;根据该核心功能子文件、该业务逻辑文件、该数据接口和该关联关系,获取系统可执行文件;该系统可执行文件被运行时用于处理业务数据。Build a basic function file according to business requirements, and the basic function file includes multiple core function sub-files required by the business; build a business logic file according to the business requirements; the business logic file includes the function functions corresponding to each core function; The core function subfile and the business logic file register the data interface, and associate each core function subfile with the corresponding function function to obtain an association relationship; according to the core function subfile, the business logic file, the data interface and the association relationship to obtain the system executable file; the system executable file is used by the runtime to process business data.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

根据该业务需求采用预设编程语言构建该基础功能文件;根据该业务需求采用预设脚本语言构建该业务逻辑文件。The basic function file is constructed using a preset programming language according to the business requirement; the business logic file is constructed using a preset script language according to the business requirement.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

该基础功能文件中包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个;该配置管理子文件被运行时用于获取各核心功能子文件的配置信息;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。The basic function file includes at least two of the configuration management sub-file, the network communication sub-file, the bus sub-file, the log sub-file and the market sub-file; the configuration management sub-file is used to obtain the information of each core function sub-file when running. Configuration information; the network communication subfile is used to communicate with external devices to obtain external data when it is running; the bus subfile is used to provide a communication interface for each core function subfile when it is run; the log subfile is used to It is used to provide log interface services; the market sub-file is used to obtain transaction information at runtime.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

调用该基础功能文件中的目标核心功能子文件获取业务数据;根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中;根据该关联关系,从该业务逻辑文件中调用该目标核心功能子文件对应的功能函数对该业务数据进行处理。Call the target core function subfile in the basic function file to obtain business data; according to the target data interface corresponding to the target core function subfile, transmit the business data to the business logic file; according to the association relationship, from the business logic file The function function corresponding to the target core function sub-file is called in the file to process the business data.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

对该业务数据进行预处理,得到预处理后的业务数据;该预处理包括反序列化操作和/或检查合法性操作;Preprocessing the business data to obtain preprocessed business data; the preprocessing includes deserialization and/or legality checking;

根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中,包括:根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中。Transferring the business data to the business logic file according to the target data interface corresponding to the target core function subfile includes: transmitting the preprocessed business data to the target core function subfile according to the target data interface corresponding to the target core function subfile. in the business logic file.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the following steps:

根据业务需求构建基础功能文件,该基础功能文件中包括业务所需的多个核心功能子文件;根据该业务需求构建业务逻辑文件;该业务逻辑文件中包括各核心功能对应的功能函数;为各核心功能子文件和该业务逻辑文件注册数据接口,并将各核心功能子文件与对应的功能函数进行关联,得到关联关系;根据该核心功能子文件、该业务逻辑文件、该数据接口和该关联关系,获取系统可执行文件;该系统可执行文件被运行时用于处理业务数据。Build a basic function file according to business requirements, and the basic function file includes multiple core function sub-files required by the business; build a business logic file according to the business requirements; the business logic file includes the function functions corresponding to each core function; The core function subfile and the business logic file register the data interface, and associate each core function subfile with the corresponding function function to obtain an association relationship; according to the core function subfile, the business logic file, the data interface and the association relationship to obtain the system executable file; the system executable file is used by the runtime to process business data.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

根据该业务需求采用预设编程语言构建该基础功能文件;根据该业务需求采用预设脚本语言构建该业务逻辑文件。The basic function file is constructed using a preset programming language according to the business requirement; the business logic file is constructed using a preset script language according to the business requirement.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

该基础功能文件中包括配置管理子文件、网络通信子文件、总线子文件、日志子文件和行情子文件中的至少两个;该配置管理子文件被运行时用于获取各核心功能子文件的配置信息;该网络通信子文件被运行时用于与外部设备进行通信以获取外部数据;该总线子文件被运行时用于为各核心功能子文件提供通信接口;该日志子文件被运行时用于提供日志接口服务;该行情子文件被运行时用于获取交易行情信息。The basic function file includes at least two of the configuration management sub-file, the network communication sub-file, the bus sub-file, the log sub-file and the market sub-file; the configuration management sub-file is used to obtain the information of each core function sub-file when running. Configuration information; the network communication subfile is used to communicate with external devices to obtain external data when it is running; the bus subfile is used to provide a communication interface for each core function subfile when it is run; the log subfile is used to It is used to provide log interface services; the market sub-file is used to obtain transaction information at runtime.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

调用该基础功能文件中的目标核心功能子文件获取业务数据;根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中;根据该关联关系,从该业务逻辑文件中调用该目标核心功能子文件对应的功能函数对该业务数据进行处理。Call the target core function subfile in the basic function file to obtain business data; according to the target data interface corresponding to the target core function subfile, transmit the business data to the business logic file; according to the association relationship, from the business logic file The function function corresponding to the target core function sub-file is called in the file to process the business data.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

对该业务数据进行预处理,得到预处理后的业务数据;该预处理包括反序列化操作和/或检查合法性操作;Preprocessing the business data to obtain preprocessed business data; the preprocessing includes deserialization and/or legality checking;

根据该目标核心功能子文件对应的目标数据接口,将该业务数据传输至该业务逻辑文件中,包括:根据该目标核心功能子文件对应的目标数据接口,将该预处理后的业务数据传输至该业务逻辑文件中。Transferring the business data to the business logic file according to the target data interface corresponding to the target core function subfile includes: transmitting the preprocessed business data to the target core function subfile according to the target data interface corresponding to the target core function subfile. in the business logic file.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to a memory, a database or other media used in the various embodiments provided in this application may include at least one of a non-volatile memory and a volatile memory. Non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Memory) Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, and the like. As an illustration and not a limitation, the RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The database involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the present application should be determined by the appended claims.

Claims (10)

1. A method of system construction, the method comprising:
constructing a basic function file according to service requirements, wherein the basic function file comprises a plurality of core function subfiles required by the service;
constructing a service logic file according to the service requirement; the service logic file comprises function functions corresponding to the core functions;
registering a data interface for each core function subfile and the service logic file, and associating each core function subfile with a corresponding function to obtain an association relation;
acquiring a system executable file according to the core function subfile, the service logic file, the data interface and the incidence relation; the system executable file is used for processing business data when being operated.
2. The method of claim 1, wherein the building the basic function file according to the business requirement comprises:
and constructing the basic function file by adopting a preset programming language according to the service requirement.
3. The method of claim 2, wherein the building a service logic file according to the service requirement comprises:
and constructing the service logic file by adopting a preset script language according to the service requirement.
4. The method according to claims 1 to 3, wherein the basic function file comprises at least two of a configuration management subfile, a network communication subfile, a bus subfile, a log subfile and a market situation subfile;
the configuration management subfile is used for acquiring configuration information of each core function subfile when operated;
the network communication subfile is used for communicating with an external device to acquire external data when operated;
the bus subfile is used for providing a communication interface for each core function subfile when operated;
the log subfile is used for providing log interface service when being operated;
the market information subfile is used for acquiring transaction market information when operated.
5. The method of claims 1 to 3, further comprising:
in the process of service processing, calling a target core function subfile in the basic function file to acquire service data;
transmitting the service data to the service logic file according to a target data interface corresponding to the target core function subfile;
and calling a function corresponding to the target core function subfile from the service logic file to process the service data according to the incidence relation.
6. The method of claim 5, further comprising:
preprocessing the service data to obtain preprocessed service data; the preprocessing comprises an deserialization operation and/or a checking validity operation;
the transmitting the service data to the service logic file according to the target data interface corresponding to the target core function subfile includes:
and transmitting the preprocessed service data to the service logic file according to a target data interface corresponding to the target core function subfile.
7. A system building apparatus, the apparatus comprising:
the system comprises a first construction module, a second construction module and a third construction module, wherein the first construction module is used for constructing a basic function file according to business requirements, and the basic function file comprises a plurality of core function subfiles required by the business;
the second construction module is used for constructing a service logic file according to the service requirement; the service logic file comprises function functions corresponding to the core functions;
the registration module is used for registering a data interface for each core function subfile and the service logic file and associating each core function subfile with a corresponding function to obtain an association relation;
the acquisition module is used for acquiring a system executable file according to the core function subfile, the service logic file, the data interface and the incidence relation; the system executable file is used for processing business data when being operated.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202111538331.7A 2021-12-15 2021-12-15 System construction method, apparatus, computer equipment, storage medium and program product Pending CN114385230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111538331.7A CN114385230A (en) 2021-12-15 2021-12-15 System construction method, apparatus, computer equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111538331.7A CN114385230A (en) 2021-12-15 2021-12-15 System construction method, apparatus, computer equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN114385230A true CN114385230A (en) 2022-04-22

Family

ID=81197711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111538331.7A Pending CN114385230A (en) 2021-12-15 2021-12-15 System construction method, apparatus, computer equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN114385230A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100633478B1 (en) * 2006-01-02 2006-10-16 김길웅 Software development system based on professional operating system for business and its development method
CN101004680A (en) * 2006-11-23 2007-07-25 福建顶点软件股份有限公司 Flexible, fast software development method and support system by using kernels of direct operation object model definition
CN101794226A (en) * 2010-03-08 2010-08-04 山东大学 Service software construction method and system adapting to multiple business abstraction levels
CN102063324A (en) * 2010-12-31 2011-05-18 杭州依赛通信有限公司 Method and system for implementing automatic programming
CN102541851A (en) * 2010-12-10 2012-07-04 金蝶软件(中国)有限公司 Page modularity generation method and page modularity generation system
CN112748908A (en) * 2020-12-31 2021-05-04 广东广宇科技发展有限公司 Restful service development method and device based on SSM framework

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100633478B1 (en) * 2006-01-02 2006-10-16 김길웅 Software development system based on professional operating system for business and its development method
CN101004680A (en) * 2006-11-23 2007-07-25 福建顶点软件股份有限公司 Flexible, fast software development method and support system by using kernels of direct operation object model definition
CN101794226A (en) * 2010-03-08 2010-08-04 山东大学 Service software construction method and system adapting to multiple business abstraction levels
CN102541851A (en) * 2010-12-10 2012-07-04 金蝶软件(中国)有限公司 Page modularity generation method and page modularity generation system
CN102063324A (en) * 2010-12-31 2011-05-18 杭州依赛通信有限公司 Method and system for implementing automatic programming
CN112748908A (en) * 2020-12-31 2021-05-04 广东广宇科技发展有限公司 Restful service development method and device based on SSM framework

Similar Documents

Publication Publication Date Title
EP3698516B1 (en) Selecting and securing proof delgates for cryptographic functions
EP3785160B1 (en) Cryptlet proofing services
US11010403B2 (en) Relational distributed ledger for smart contracts
EP3622687B1 (en) Enclave pool management
US11176246B2 (en) Enclave pool shared key
JP7220678B2 (en) Method and system for providing high-level operations on blockchain
EP3622661B1 (en) Cryptlet identity
US10747905B2 (en) Enclave ring and pair topologies
CN108737325A (en) A kind of multi-tenant data partition method, apparatus and system
CN113094081B (en) Software release method, device, computer system and computer readable storage medium
CN113392002B (en) Test system construction method, device, equipment and storage medium
CN111857797B (en) Mirror image construction method, system and related device
CN116483517B (en) Virtual machine control method, device and system
CN114385230A (en) System construction method, apparatus, computer equipment, storage medium and program product
CN116483643A (en) GPU debugging method, device, equipment and storage medium
WO2023093885A1 (en) Cloud technology-based graphic program online development method and system, and related device
CN115113947A (en) Configuration method of process engine, terminal equipment and computer readable storage medium
CN115865885A (en) Protocol request forwarding method, device, equipment and medium based on browser plug-in
CN116089004A (en) Migration method and device for intelligent contract codes among heterogeneous blockchains
CN115033397A (en) Interface calling method, apparatus, device and storage medium
CN114022282A (en) Process configuration method, device, equipment and storage medium
CN117492727A (en) JAVA-based attribute copy method, device, storage medium and electronic equipment
CN116800807A (en) GPU resource remote calling methods, devices, equipment and storage media
CN114327800A (en) Method and device for writing in topic, processor and stream processing platform
CN113783667A (en) Information transmission method, device, computer system and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: No. 210, Liangjing Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai 200120

Applicant after: Shanghai Jinshida Software Technology Co.,Ltd.

Address before: No. 210, Liangjing Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai 200120

Applicant before: Shanghai Kingstar Software Technology Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载