Business component deployment method, device, computer equipment and storage medium
By obtaining the business components to be configured and their communication addresses of the trading platform and deploying them to the trading platform according to the association relationship, the problem of large deployment workload in traditional component deployment methods is solved, rapid deployment and horizontal expansion are achieved, and throughput capabilities are improved.
Patent Information
- Application Number
- CN202110332697.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-29
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2041-03-29
AI Technical Summary
Traditional component deployment methods have the problem of large deployment workload, especially when components increase, it is necessary to reopen a new system to achieve component increase.
By obtaining the business components to be configured and their business communication addresses corresponding to the trading platform, and deploying the business components to be configured to the trading platform according to the relationship between the business components to be configured and the associated business components, so that they correspond to the business communication addresses. running on the device. This method does not require API docking and development, but only needs to be configured to be located in the same multicast network as the associated business components.
This implements a method of adding components within the platform, improves throughput through horizontal scalability, reduces deployment workload, and enables the deployment of business components to be quickly completed.
Smart Images

Figure CN113127007B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment and storage medium for deploying a business component. Background Art
[0002] The traditional component deployment method is based on the database, and the components are added by opening up a new system. However, the traditional component deployment method has the problem of large deployment workload. Summary of the invention
[0003] Based on this, it is necessary to provide a business component deployment method, device, computer equipment and storage medium to address the above technical issues.
[0004] A method for deploying a service component, the method comprising:
[0005] Get the business components to be configured corresponding to the trading platform;
[0006] Obtaining a service communication address allocated to the service component to be configured;
[0007] According to the configured association relationship between the business component to be configured and the associated business component, the business component to be configured is deployed to the trading platform so that the application related to the business component to be configured is run on the device corresponding to the business communication address; the business component to be configured and the associated business component are located in the same multicast network.
[0008] A service component deployment device, the device comprising:
[0009] The first acquisition module is used to acquire the business components to be configured corresponding to the trading platform;
[0010] A second acquisition module is used to acquire a service communication address allocated to the service component to be configured;
[0011] A deployment module is used to deploy the business component to be configured to the trading platform according to the configured association relationship between the business component to be configured and the associated business component, so that the application related to the business component to be configured can be run on the device corresponding to the business communication address; the business component to be configured and the associated business component are located in the same multicast network.
[0012] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0013] Get the business components to be configured corresponding to the trading platform;
[0014] Obtaining a service communication address allocated to the service component to be configured;
[0015] According to the configured association relationship between the business component to be configured and the associated business component, the business component to be configured is deployed to the trading platform so that the application related to the business component to be configured is run on the device corresponding to the business communication address; the business component to be configured and the associated business component are located in the same multicast network.
[0016] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0017] Get the business components to be configured corresponding to the trading platform;
[0018] Obtaining a service communication address allocated to the service component to be configured;
[0019] According to the configured association relationship between the business component to be configured and the associated business component, the business component to be configured is deployed to the trading platform so that the application related to the business component to be configured is run on the device corresponding to the business communication address; the business component to be configured and the associated business component are located in the same multicast network.
[0020] The above-mentioned business component deployment method, device, computer equipment and storage medium do not need to do API docking development when components are added. It only requires that the business component to be configured and the associated business components are located in the same multicast network, and obtain the business component to be configured corresponding to the trading platform, obtain the business communication address allocated to the business component to be configured, and deploy the business component to be configured to the trading platform according to the association relationship between the business component to be configured and the associated business component, so that the application related to the business component to be configured can be run on the device corresponding to the business communication address, and components can be added inside the platform. Throughput capacity is improved through horizontal scalability, and business component deployment can be completed, reducing deployment workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 An application environment diagram of a business component deployment method in an embodiment;
[0022] Figure 2 A schematic diagram of a process flow of a business component deployment method in one embodiment;
[0023] Figure 3 A schematic diagram of the architecture of a trading platform and business components in one embodiment;
[0024] Figure 4 It is a structural block diagram of a service component deployment device in one embodiment;
[0025] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0027] The business component deployment method provided in this application can be applied to Figure 1 In the application environment shown. Among them, server 102 communicates with server 104 through the network. Server 102 and server 104 can be implemented with independent servers or a server cluster composed of multiple servers. Server 102 refers to the server corresponding to the trading platform, and server 104 refers to the device corresponding to the business communication address. Server 102 obtains the business component to be configured corresponding to the trading platform; server 102 obtains the business communication address assigned to the business component to be configured; server 102 deploys the business component to be configured to the trading platform according to the association relationship between the configured business component to be configured and the associated business component, so that the device corresponding to the business communication address runs the application related to the component to be configured. It can be understood that the server corresponding to the trading platform and the device corresponding to the business communication address can be the same server.
[0028] In one embodiment, Figure 2 As shown, a business component deployment method is provided, which is applied to Figure 1 Taking the server 102 in the example as an example, the following steps are included:
[0029] Step 202: Obtain the business components to be configured corresponding to the trading platform.
[0030] Among them, the business components to be configured refer to the business components that have not been configured on the trading platform. And the business components to be configured refer to the codes of the business components to be configured that have been written and passed. The business components to be configured refer to the business components related to transactions, such as trading engine components, system quotation service components, etc.
[0031] Specifically, when a new business component needs to be added, the server corresponding to the trading platform obtains the business component to be configured. The situation where a new business component needs to be added includes that a new business node needs to be created or the processing volume of the configured business component reaches a threshold.
[0032] In this embodiment, the server corresponding to the trading platform can obtain the identifier of the business component to be configured input on the terminal interface, and obtain the corresponding business component to be configured according to the identifier.
[0033] Step 204: Acquire the service communication address allocated to the service component to be configured.
[0034] The service communication address may be an IP (Internet Protocol Address) address or a MAC (Media Access Control Address) address.
[0035] Specifically, the server corresponding to the trading platform may automatically allocate a corresponding business communication address to the business component to be configured. Alternatively, the server corresponding to the trading platform may obtain the business communication address corresponding to the business component to be configured input in the terminal.
[0036] Step 206, deploy the service component to be configured to the transaction platform according to the configured association relationship between the service component to be configured and the associated service component, so that the application related to the service component to be configured runs on the device corresponding to the service communication address; the service component to be configured and the associated service component are located in the same multicast network.
[0037] The association relationship between the service component to be configured and the associated service component may include data transmission direction and the like.
[0038] Specifically, the server corresponding to the trading platform deploys the business component to be configured to the trading platform according to the configured association relationship between the business component to be configured and the associated business component, so that the application related to the business component to be configured is run on the device corresponding to the business communication address based on the association relationship. The business component to be configured and the associated business component are located in the same multicast network, and the business component to be configured and the associated business component communicate through a reliable multicast protocol.
[0039] In this embodiment, when the service component to be configured and the associated service component are in the same server, the service component to be configured and the associated service component communicate through the shared memory of the server. The shared memory method can reduce network delay.
[0040] The business component deployment method in this embodiment does not require API (Application Programming Interface) docking development when adding components. It only requires that the business component to be configured and the associated business components are located in the same multicast network, and by obtaining the business component to be configured corresponding to the trading platform, the business communication address allocated to the business component to be configured is obtained. According to the association relationship between the business component to be configured and the associated business component, the business component to be configured is deployed to the trading platform, so that the application related to the business component to be configured can be run on the device corresponding to the business communication address, and components are added inside the platform. Throughput capacity is improved through horizontal scalability, and business component deployment can be completed, reducing deployment workload.
[0041] In one embodiment, the service component deployment method further includes: interacting with a device corresponding to the service communication address through a reliable multicast protocol for transaction data.
[0042] The business component deployment method in this embodiment interacts with the device corresponding to the business communication address through a reliable multicast protocol for transaction data, which does not require API docking development or multiple handshakes, thereby improving communication efficiency.
[0043] In one embodiment, the business component deployment method also includes: obtaining the subscribed business components and sending objects corresponding to the business components to be configured configured on the trading platform; the sending objects include configured business components; and establishing an association relationship between the business components to be configured and the associated business components based on the subscribed business components and the sending objects.
[0044] The subscribed business component corresponding to the business component to be configured refers to the subscribed business component sending transaction data to the business component to be configured. The sending object refers to the object to which the business component to be configured sends transaction data. For example, if the business component to be configured C sends transaction data to the configured business component A, then the configured business component A is the sending object corresponding to the business component to be configured C. The associated business components include the subscribed business component and the sending object.
[0045] Specifically, the server corresponding to the trading platform obtains the subscribed business components and sending objects corresponding to the business components to be configured on the trading platform, where the sending objects include configured business components; and establishes an association relationship between the business components to be configured and the associated business components according to the subscribed business components and the sending objects.
[0046] The business component deployment method in this embodiment obtains the subscribed business components and sending objects corresponding to the business components to be configured configured on the trading platform, and the sending objects include configured business components. According to the subscribed business components and sending objects, an association relationship between the business components to be configured and the associated business components is established, that is, the association relationship between the business components to be configured and the associated business components is reflected through subscription and sending, so that the business components to be configured can be quickly configured in the trading platform and the normal transmission of data can be guaranteed.
[0047] In one embodiment, the business components to be configured include a transaction gateway component, a transaction engine component and a system quotation service component; the association relationship between the business components to be configured and the associated business components includes the transaction gateway component being used to send a transaction entrustment request to the transaction engine component, the transaction engine component being used to receive the transaction entrustment request from the transaction gateway component, converting the transaction entrustment request into a transaction instruction and sending the transaction instruction to the system quotation service component, and the system quotation component being used to receive the transaction instruction from the transaction engine component.
[0048] Among them, the trading entrustment request is an external request generated based on an external protocol initiated by the order management system. The trading entrustment request is used to complete the transaction through the server. The request content of the trading entrustment request is mainly the fields that the order system is concerned about. The trading entrustment request includes but is not limited to the following data: business type, account number, market number, securities code, buying and selling direction, quantity, price, and market price type. The trading gateway component (GateWay, GW) is used to exchange information with the client.
[0049] A trading instruction is an internal message converted by the trading gateway component after receiving a trading order request. In addition to the content contained in the trading order request, it also contains some fields that are only used by the trading engine component, such as order number, trading unit, etc.
[0050] The trading engine component is used to perform compliance inspection and asset inspection on the trading instructions and obtain the inspection results; and when the inspection results are qualified, the trading engine component sends the trading instructions to the system quotation service component through the multicast network. The trading engine component is also used to record the transaction data of each user account. The system quotation service component (Order Routing Service, ORS) is used to connect to the exchange gateway to complete the transaction with the exchange.
[0051] The trading gateway component, trading engine component and system quotation service component may be located in the same server or not. Then, the components located in the same server communicate through the shared memory of the server, and the components not located in the same server communicate through the reliable multicast protocol.
[0052] Specifically, the server obtains the business communication addresses respectively allocated to the business components to be configured. The association relationship between the business components to be configured and the associated business components is that the transaction gateway component sends a request to the transaction engine component, the transaction engine component subscribes to the transaction entrustment request sent by the transaction gateway component, converts it into a transaction instruction, and sends the transaction instruction to the system quotation service component, and the system quotation component is used to subscribe to the transaction instruction sent by the transaction engine component.
[0053] The business component deployment method in this embodiment can consider adding a complete set of transaction components when expanding a series of new businesses and introducing some new component sets without affecting the original component sets. For example, the transaction gateway component, the transaction engine component and the system quotation service component are the core components in the transaction platform. Then, by assigning business communication addresses to the transaction gateway component, the transaction engine component and the system quotation service component respectively, and configuring the transmission relationship between the three, a new business process can be quickly established without affecting the old business process.
[0054] In one embodiment, obtaining the business component to be configured corresponding to the trading platform includes: when the processing volume of the configured business component reaches a preset processing volume, obtaining the business component to be configured corresponding to the trading platform that matches the type of the configured business component. The business component deployment method also includes: allocating at least a portion of the transaction data processed by the configured business component to the business component to be configured for processing.
[0055] The preset processing volume is a preset value. The preset processing volume refers to the maximum transaction volume. For example, if the maximum transaction volume of business component A is configured to be 5,000 times a day, the preset processing volume can be 5,000.
[0056] In a trading platform, there may be more than one business component of the same type, so different transaction data may belong to different types of business components for processing.
[0057] Specifically, when the processing volume of the configured business component reaches the preset processing volume, the server corresponding to the trading platform obtains the business component to be configured that matches the type of the configured business component corresponding to the trading platform. For example, if the configured business component is a trading engine component, then the business component to be configured is also a trading engine component. The server corresponding to the trading platform distributes at least a portion of the transaction data processed by the configured business component to the business component to be configured for processing through a reliable multicast protocol, so as to share the burden of the configured business component.
[0058] For example, there are 10 account data, and there are three business components 1, 2, and 3 that carry these customers, carrying 2, 3, and 5 accounts respectively. If some performance data of business component 3 encounters bottlenecks when processing these 5 accounts, you can consider adding a business component 4 and transferring some accounts in business component 3 to business component 4 to share the pressure.
[0059] In this embodiment, the server corresponding to the trading platform can also directly allocate subsequent transaction data to the business component to be configured for processing. The trading platform will no longer allocate transaction data to the configured business component whose processing volume has reached the preset processing volume on the same day.
[0060] The business component deployment method in this embodiment, when the processing volume of the configured business component reaches the preset processing volume, obtains the to-be-configured business component corresponding to the transaction platform and matches the type of the configured business component, and allocates at least a portion of the transaction data processed by the configured business component to the to-be-configured business component for processing, thereby improving the throughput capacity through horizontal scalability, and can alleviate the processing pressure of the configured business component.
[0061] In one embodiment, when the processing volume of account data of a configured business component reaches a preset processing volume, a business component to be configured that matches the type of the configured business component corresponding to the trading platform is obtained; and at least a portion of the account transaction data processed by the configured business component is allocated to the business component to be configured for processing.
[0062] For example, there are 100,000 account data, and there are three trading engine components 1, 2, and 3 that carry these customers. These three trading engine components run on different machines and carry 20,000, 30,000, and 50,000 accounts respectively. If the accumulated historical transaction volume of these 50,000 accounts of trading engine component 3 gradually increases and is about to reach the expected bottleneck line (assuming that the daily transaction volume that the machine memory can carry is 20 million), then before the transaction of these 50,000 accounts reaches the bottleneck, multiple solutions can be considered, one is to allocate some customers to trading engine components 1 or 2. Or allocate some account data to the newly added trading engine component 4.
[0063] In one embodiment, the business component to be configured includes a risk control engine component. The business component deployment method further includes: subscribing to transaction data through the risk control engine component; the transaction data includes at least one of transaction data sent by the transaction engine component to the system quotation service component and transaction data sent by the transaction engine component to the transaction gateway component; performing risk control checks on the transaction data through the risk control engine component; and sending an alarm message to the user account when the risk control engine component determines that the user account corresponding to the transaction data has a risk.
[0064] Among them, the risk control engine component is a component in options and margin trading business. Risk control check refers to risk control check, which is used to check whether the user account has trading risks. For example, whether the margin in the user account reaches the minimum standard set by the brokerage firm.
[0065] Specifically, the server corresponding to the trading platform subscribes to at least one of the transaction data sent by the trading engine component to the system quotation service component and the transaction data sent by the trading engine component to the trading gateway component through the risk control engine component based on the reliable multicast protocol. The server corresponding to the trading platform performs risk control checks on the transaction data through the risk control engine component based on the reliable multicast protocol; when the risk control engine determines that the user account corresponding to the transaction data is at risk, the server corresponding to the trading platform sends an alarm message to the user account.
[0066] Alternatively, an asset adjustment operation is performed on the assets in the user account, wherein the adjustment operation includes freezing the account assets, taking other assets of the user account for hedging, etc., but is not limited thereto.
[0067] In the business component deployment method of this embodiment, since the transaction data sent by the transaction engine component to the system quotation service component and the transaction data sent by the transaction engine component to the transaction gateway component are relatively important in the transaction and are also data that is prone to problems, it is necessary to perform risk control checks on the transaction data through the risk control engine component. When the risk control engine component determines that the user account corresponding to the transaction data is at risk, an alarm message is sent to the user account, which can reduce the risk in the transaction.
[0068] In one embodiment, the business component to be configured includes a clearing engine component. The business component deployment method also includes:
[0069] Subscribe to the transaction data that has changed on the day through the clearing engine component; the transaction data includes at least one of the data sent by the transaction engine component to the system quotation service component and the data sent by the transaction engine component to the transaction gateway component;
[0070] The clearing engine component is used to obtain the transaction data that has changed on that day and the asset data at the beginning of the day, and the asset data after the day's closing is obtained by statistics; the asset data after the day's closing is used as the asset data at the beginning of the next day.
[0071] Among them, the clearing engine refers to the component used to clear investors' assets after the day's trading closes. The asset data at the beginning of the day refers to the asset data before the day's opening. The transaction data refers to the transaction data that has changed on the day. The transaction data that has not changed can not enter the clearing engine component. The transaction data that has changed on the day refers to the transaction data that has affected the total value of assets in the user's account. For example, if 100 shares of stock are bought through the trading platform and the transaction is successful, then this transaction is the transaction data that has changed on the day. If only a transaction entrustment request to buy 100 shares of stock is submitted, and the transaction entrustment request is not successfully processed, then it is not the transaction data that has changed on the day.
[0072] Specifically, the server corresponding to the trading platform subscribes to at least one of the following: the transaction data that has changed on the day sent by the trading engine component to the system quotation service component and the transaction data that has changed on the day sent by the trading engine component to the trading gateway component based on the reliable multicast protocol through the clearing engine component. The server corresponding to the trading platform obtains the transaction data of the asset changes of the user account on the day and the asset data at the sunrise of the day through the clearing engine component based on the reliable multicast protocol, and counts the asset data of the user account after the closing of the day. The server corresponding to the trading platform uses the asset data after the closing of the day as the asset data at the beginning of the next day of the day for the user account.
[0073] In the business component deployment method of this embodiment, since the transaction data sent by the transaction engine component to the system quotation service component and the transaction data sent by the transaction engine component to the transaction gateway component are relatively important in the transaction and also process the core data of the transaction, the clearing engine component obtains the currently changed transaction data and performs statistics to obtain the beginning-of-day asset data for the next day, so that the trading platform can operate normally.
[0074] In one embodiment, Figure 3 As shown in FIG. 1 , it is a schematic diagram of the architecture of the trading platform and business components in an embodiment. It includes the trading platform. The external system includes: order management system, external system, market gateway, etc. The business components include: customized gateway GW, standard gateway AGW, data exchange service DXS, market data service IDG, operation and maintenance management system BOS, trading engine TE, query engine QE, algorithm engine AE, market data distribution MDD, risk control engine RE, clearing engine CE and quotation service ORS. Among them, the quotation service ORS can exchange information with the Shanghai Stock Exchange and the Shenzhen Stock Exchange.
[0075] Since the Huarui message bus adopts the form of reliable multicast, when a new component needs to receive some business messages for processing, it can subscribe to the content very conveniently through configuration. At this time, if the message format received and processed by the new component is inconsistent with the data format sent in the original system component, then a codec conversion is required, which involves a certain amount of work. If the protocols are consistent, then no additional conversion work is required.
[0076] The embodiment of the present application supports a load partitioning function, and the business components can be partitioned according to data sets. Specifically, the partitions can be performed according to different transaction account dimensions, such as fund accounts or securities accounts, to support horizontal expansion of the system processing capabilities.
[0077] Adding components inside the system improves throughput through horizontal scalability, and all real-time processing components can distribute loads by partitions. For example, for the query engine QE, each query engine will subscribe to the message of the transaction engine TE to ensure that the data of each QE is consistent with TE, so that each QE can provide accurate business query functions while trading. However, the query processing capacity of a single QE has certain processing bottlenecks. If the customer's query demand exceeds the processing capacity of the existing system QE, then the QE component can be directly added to share the query processing of the original QE, thereby achieving the ability to improve the overall query throughput. Traditional technology is based on the database and cannot achieve the addition of components. It can only open up a new system, which is costly.
[0078] Trading accounts can be distributed to different business components. The specific business component to which a trading account is allocated is controlled by the management system. The users are generally the operation staff of the brokerage firm. They can evaluate which business component to allocate to based on the amount of funds in the trading account and the historical daily trading volume. Through reasonable allocation, the overall resource utilization rate and user experience can be maximized.
[0079] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0080] In one embodiment, Figure 4As shown, a business component deployment device is provided, including: a first acquisition module 402, a second acquisition module 404 and a deployment module 406, wherein:
[0081] The first acquisition module 402 is used to acquire the to-be-configured business component corresponding to the trading platform.
[0082] The second acquisition module 404 is used to acquire the service communication address allocated to the service component to be configured.
[0083] The deployment module 406 is used to deploy the business component to be configured to the trading platform according to the configured association relationship between the business component to be configured and the associated business component, so that the application related to the business component to be configured can be run on the device corresponding to the business communication address; the business component to be configured and the associated business component are located in the same multicast network.
[0084] The business component deployment device in this embodiment does not need to do API docking development when components are added. It only requires that the business component to be configured and the associated business components are located in the same multicast network, and obtains the business component to be configured corresponding to the trading platform, obtains the business communication address allocated to the business component to be configured, and deploys the business component to be configured to the trading platform according to the association relationship between the business component to be configured and the associated business component, so that the application related to the business component to be configured can be run on the device corresponding to the business communication address, and components are added inside the platform. Throughput capacity is improved through horizontal scalability, and business component deployment can be completed, reducing deployment workload.
[0085] In one embodiment, the service component deployment device further includes a data interaction module, which is used to interact with the device corresponding to the service communication address through a reliable multicast protocol to perform transaction data interaction.
[0086] The service component deployment device in this embodiment interacts with the device corresponding to the service communication address through a reliable multicast protocol for transaction data, and does not require API docking development or multiple handshakes, thereby improving communication efficiency.
[0087] In one embodiment, the business component deployment device further includes an association relationship establishment module. The association relationship establishment module is used to obtain the subscribed business components and the sending object corresponding to the business component to be configured configured on the trading platform; the sending object includes the configured business component; and establish the association relationship between the business component to be configured and the associated business component according to the subscribed business component and the sending object.
[0088] The business component deployment device in this embodiment obtains the subscribed business components and sending objects corresponding to the business components to be configured on the trading platform, and the sending objects include configured business components. According to the subscribed business components and sending objects, an association relationship between the business components to be configured and the associated business components is established, that is, the association relationship between the business components to be configured and the associated business components is reflected through subscription and sending, so that the business components to be configured can be quickly configured in the trading platform and the normal transmission of data can be guaranteed.
[0089] In one embodiment, the business components to be configured include a transaction gateway component, a transaction engine component and a system quotation service component; the association relationship between the business components to be configured and the associated business components includes the transaction gateway component being used to send a transaction entrustment request to the transaction engine component, the transaction engine component being used to receive the transaction entrustment request from the transaction gateway component, converting the transaction entrustment request into a transaction instruction and sending the transaction instruction to the system quotation service component, and the system quotation component being used to receive the transaction instruction from the transaction engine component.
[0090] The business component deployment device in this embodiment can consider adding a complete set of transaction components when expanding a series of new businesses and introducing some new component sets without affecting the original component sets. For example, the transaction gateway component, the transaction engine component and the system quotation service component are core components in the transaction platform. Then, by assigning business communication addresses to the transaction gateway component, the transaction engine component and the system quotation service component respectively, and configuring the transmission relationship between the three, a new business process can be quickly established without affecting the old business process.
[0091] In one embodiment, the business component deployment device further includes a data interaction module. The first acquisition module 402 is further configured to acquire a business component to be configured that matches the type of the configured business component and corresponds to the trading platform when the processing volume of the configured business component reaches a preset processing volume. The data interaction module is configured to acquire a business component to be configured that matches the type of the configured business component and corresponds to the trading platform when the processing volume of the configured business component reaches a preset processing volume.
[0092] The business component deployment device in this embodiment, when the processing volume of the configured business component reaches the preset processing volume, obtains the to-be-configured business component corresponding to the transaction platform and matching the type of the configured business component, and allocates at least a portion of the transaction data processed by the configured business component to the to-be-configured business component for processing, thereby improving the throughput capacity through horizontal scalability, and can alleviate the processing pressure of the configured business component.
[0093] In one embodiment, the business component to be configured includes a risk control engine component. The business component deployment device also includes a data interaction module. The data interaction module is used to subscribe to transaction data through the risk control engine component; the transaction data includes at least one of the transaction data sent by the transaction engine component to the system quotation service component and the transaction data sent by the transaction engine component to the transaction gateway component; the transaction data is subjected to risk control inspection through the risk control engine component; when the risk control engine component determines that the user account corresponding to the transaction data is at risk, an alarm message is sent to the user account.
[0094] The business component deployment device in this embodiment needs to perform risk control checks on the transaction data through the risk control engine component, because the transaction data sent by the transaction engine component to the system quotation service component and the transaction data sent by the transaction engine component to the transaction gateway component are relatively important in the transaction and are also data that is prone to problems. When the risk control engine component determines that the user account corresponding to the transaction data is at risk, an alarm message is sent to the user account, which can reduce the risk in the transaction.
[0095] In one embodiment, the business component to be configured includes a clearing engine component. The business component deployment device also includes a data interaction module. The data interaction module is used to subscribe to the transaction data that has changed on the day through the clearing engine component; the transaction data includes at least one of the data sent by the transaction engine component to the system quotation service component and the data sent by the transaction engine component to the transaction gateway component;
[0096] The clearing engine component is used to obtain the transaction data that has changed on that day and the asset data at the beginning of the day, and the asset data after the day's closing is obtained by statistics; the asset data after the day's closing is used as the asset data at the beginning of the next day.
[0097] The business component deployment device in this embodiment, since the transaction data sent by the transaction engine component to the system quotation service component and the transaction data sent by the transaction engine component to the transaction gateway component are more important in the transaction and also process the core data of the transaction, therefore, the clearing engine component is used to obtain the currently changed transaction data and perform statistics to obtain the beginning-of-day asset data for the next day, so that the trading platform can operate normally.
[0098] For the specific definition of the business component deployment device, please refer to the definition of the business component deployment method above, which will not be repeated here. Each module in the above-mentioned business component deployment device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0099] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store transaction data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a business component deployment method is implemented.
[0100] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0101] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0102] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0103] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for deploying a business component, characterized in that: The method comprises: Get the business components to be configured corresponding to the trading platform; Obtaining a service communication address allocated to the service component to be configured; According to the configured association relationship between the business component to be configured and the associated business components, the business component to be configured is deployed to the trading platform so that the application related to the business component to be configured is run on the device corresponding to the business communication address; the business component to be configured and the associated business component are located in the same multicast network; the business component to be configured includes a trading gateway component, a trading engine component and a system quotation service component; the association relationship between the business component to be configured and the associated business components includes the trading gateway component being used to send a trading entrustment request to the trading engine component, the trading engine component being used to receive the trading entrustment request from the trading gateway component, converting the trading entrustment request into a trading instruction and sending the trading instruction to the system quotation service component, and the system quotation service component being used to receive the trading instruction from the trading engine component.
2. The method according to claim 1, characterized in that The method further comprises: Transaction data is interacted with the device corresponding to the business communication address through a reliable multicast protocol.
3. The method according to claim 1, characterized in that The method further comprises: Acquire the subscribed business component and the sending object corresponding to the business component to be configured configured on the trading platform; the sending object includes the configured business component; An association relationship between the service component to be configured and the associated service component is established according to the subscribed service component and the sending object.
4. The method according to claim 1, characterized in that: The obtaining of the business components to be configured corresponding to the trading platform includes: When the processing volume of the configured business component reaches the preset processing volume, the business component to be configured corresponding to the trading platform and matching the type of the configured business component is obtained; The method further comprises: At least a portion of the transaction data processed by the configured business component is allocated to the business component to be configured for processing.
5. The method according to any one of claims 1 to 4, characterized in that: The business components to be configured include risk control engine components; The method further comprises: Subscribe to transaction data through the risk control engine component; the transaction data includes at least one of transaction data sent by the transaction engine component to the system quotation service component and transaction data sent by the transaction engine component to the transaction gateway component; Performing risk control checks on the transaction data through a risk control engine component; When the risk control engine component determines that the user account corresponding to the transaction data is at risk, an alarm message is sent to the user account.
6. The method according to any one of claims 1 to 4, characterized in that: The business components to be configured include a clearing engine component; The method further comprises: Subscribe to the transaction data that has changed on the day through the clearing engine component; the transaction data includes at least one of the data sent by the transaction engine component to the system quotation service component and the data sent by the transaction engine component to the transaction gateway component; The transaction data that has changed on the day and the asset data at the beginning of the day are obtained through the clearing engine component, and the asset data after the closing of the day is obtained by statistics; The asset data after the closing of the day is used as the asset data at the beginning of the next day.
7. A business component deployment device, characterized in that: The device comprises: The first acquisition module is used to acquire the business components to be configured corresponding to the trading platform; the business components to be configured include a trading gateway component, a trading engine component and a system quotation service component; A second acquisition module is used to acquire a service communication address allocated to the service component to be configured; A deployment module is used to deploy the business component to be configured to the trading platform according to the configured association relationship between the business component to be configured and the associated business component, so that the application related to the business component to be configured can be run on the device corresponding to the business communication address; the business component to be configured and the associated business component are located in the same multicast network; the association relationship between the business component to be configured and the associated business component includes the transaction gateway component sending a transaction entrustment request to the transaction engine component, the transaction engine component receiving the transaction entrustment request from the transaction gateway component, converting the transaction entrustment request into a transaction instruction and sending the transaction instruction to the system quotation service component, and the system quotation service component receiving the transaction instruction from the transaction engine component.
8. The device according to claim 7, characterized in that: The service component deployment device also includes a data interaction module, and the data interaction module is used to interact with the device corresponding to the service communication address through a reliable multicast protocol to perform transaction data interaction.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Configuration business deploying method and device
CN102185768A
Application framework deployment method, apparatus and system, and cloud platform
CN108196764A
Resource exchange risk control method and device, computer equipment and storage medium
CN112132687A