Resource data processing method, apparatus, device, and medium
By centralizing and sharing internal resource conversion rates through unified processing of main equipment, the problem of inconsistent resource pricing quality among different entities has been solved, achieving uniformity and improvement in resource pricing within the same organization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2023-06-19
- Publication Date
- 2026-06-09
AI Technical Summary
When different entities within the same organization quote prices to customers based on the external resource conversion rates obtained from their respective external access institutions, the quality of resource quotes varies, making it difficult to ensure that the quality of resource quotes provided by each entity is consistent.
The central main equipment aggregates and processes the external resource conversion rates obtained by each entity from external business objects, generates internal resource conversion rates, and provides them uniformly to all entities, thereby achieving resource conversion rate sharing and unified pricing.
This improved the quality of resource quotations from multiple entities under the same organization, ensuring the consistency and quality of resource quotations.
Smart Images

Figure CN119168723B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to a resource data processing method, apparatus, device and medium. Background Technology
[0002] Currently, for a given organization, as its business expands, there may be multiple entities of the same organization distributed across different regions, and these entities operate independently from each other. For example, for ease of understanding, let's take multiple entities associated with the same organization (e.g., organization 1), including entity A and entity B. In this case, the resource conversion rate provider accessed by entity A can be a different external organization than organization 1 (e.g., organization 2), while the resource conversion rate provider accessed by entity B can be a different external organization than organization 1 (e.g., organization 3). This means that entity A, when accessing organization 2, can provide a customer quote by obtaining the external resource conversion rate (e.g., resource conversion rate X) provided by organization 2 for a certain transaction resource pair, and entity B, when accessing organization 3, can provide a customer quote by obtaining another external resource conversion rate (e.g., resource conversion rate Y) provided by organization 3 for the same transaction resource pair.
[0003] Based on this, the inventors discovered in practice that when different entities within the same organization quote prices to customers using external resource conversion rates obtained from their respective external access points, the quality of the resource quotes provided by different entities varies (i.e., entity A provides a quote to customers using the aforementioned resource conversion rate X, while entity B provides a quote to customers using the aforementioned resource conversion rate Y). This means that in multi-entity scenarios, it is difficult to ensure the quality of the resource quotes provided by each entity when quoting prices to customers. Summary of the Invention
[0004] This application provides a resource data processing method, apparatus, device, and medium that can optimize the resource bids of each entity in scenarios where multiple entities are associated with the same organization, thereby improving the quality of resource bids from different entities.
[0005] On one hand, embodiments of this application provide a resource data processing method, the method being executed by a central main device; the central main device is a first main device corresponding to a first main device associated with a first business object; the first main device is determined from a plurality of main devices associated with the first business object; the method includes:
[0006] The message data processing node receives a first type of resource conversion rate for a transaction resource pair associated with a first subject, issued by a first business theme. The message data processing node is a distributed node in a distributed message data processing system associated with the first business theme. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second subject device corresponding to the second subject associated with the first business object, obtained by the message data processing node, based on the first business theme. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second subject for the transaction resource pair. The second subject is a subject other than the first subject among multiple subjects. The second business object is a business object used to provide resource conversion rates for transaction resource pairs to multiple subjects, and the second business object is different from the first business object.
[0007] Resource conversion parameters are obtained from the resource data processing strategy associated with the second business theme of the first business object. Based on the resource conversion parameters, resource data processing is performed on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme.
[0008] The internal resource conversion rate is uploaded to the message data processing node based on the second business theme, so that the message data processing node can use the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to provide resource quotations to multiple entities in a unified manner.
[0009] On the other hand, embodiments of this application provide a resource data processing method, which is executed by a message data processing node; the message data processing node is a distributed node in a distributed message data processing system; the method includes:
[0010] When the first type of resource conversion rate of the transaction resource pair associated with the first entity is obtained, the first type of resource conversion rate of the transaction resource pair associated with the first entity is sent to the central entity device based on the first business theme. This allows the central entity device to obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object corresponding to the central entity device. Based on the resource conversion parameters, the central entity device performs resource data processing on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme. The central entity device is the first entity device corresponding to the first entity associated with the first business object. The first entity is determined from multiple entities associated with the first business object. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second entity device corresponding to the second entity associated with the first business object based on the first business theme, obtained by the message data processing node. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second entity for the transaction resource pair. The second entity is a entity other than the first entity among multiple entities. The second business object is a business object used to provide resource conversion rates of transaction resource pairs to multiple entities, and the second business object is different from the first business object.
[0011] When the central main device receives the internal resource conversion rate uploaded based on the second business theme, the obtained internal resource conversion rate is used as the second type of resource conversion rate for the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to provide resource quotations to multiple entities in a unified manner.
[0012] On one hand, this application provides a resource data processing apparatus, which operates on a central main device. The central main device is a first main device corresponding to a first main device associated with a first business object; the first main device is determined from a plurality of main devices associated with the first business object; the apparatus includes:
[0013] The first resource receiving module is used to receive a first type of resource conversion rate of a transaction resource pair associated with a first subject, issued by a message data processing node based on a first business theme; the message data processing node is a distributed node in a distributed message data processing system associated with the first business theme; the first type of resource conversion rate includes at least a first external resource conversion rate uploaded by the second subject device corresponding to the second subject associated with the first business object, obtained by the message data processing node based on the first business theme; the first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second subject for the transaction resource pair; the second subject is a subject other than the first subject among multiple subjects; the second business object is a business object used to provide the resource conversion rate of the transaction resource pair to multiple subjects, and the second business object is different from the first business object;
[0014] The resource data processing module is used to obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object, and to perform resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme.
[0015] The internal resource upload module is used to upload the internal resource conversion rate to the message data processing node based on the second business theme, so that the message data processing node can use the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to provide resource quotations to multiple entities in a unified manner.
[0016] On the other hand, embodiments of this application provide a resource data processing apparatus, which operates on a message data processing node, and the message data processing node is a distributed node in a distributed message data processing system; the apparatus includes:
[0017] The first resource distribution module is used to, upon obtaining the first type of resource conversion rate for a transaction resource pair associated with the first entity, distribute the first type of resource conversion rate for the transaction resource pair associated with the first entity to the central entity device based on the first business theme. This allows the central entity device to obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object corresponding to the central entity device, and to perform resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme. The central entity device is the first entity device corresponding to the first entity associated with the first business object. The first entity is determined from multiple entities associated with the first business object. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second entity device corresponding to the second entity associated with the first business object based on the first business theme, obtained by the message data processing node. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second entity for the transaction resource pair. The second entity is a entity other than the first entity among multiple entities. The second business object is a business object used to provide resource conversion rates for transaction resource pairs to multiple entities, and the second business object is different from the first business object.
[0018] The internal resource receiving module is used to, upon receiving the internal resource conversion rate uploaded by the central main device based on the second business theme, use the obtained internal resource conversion rate as the second type of resource conversion rate for the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to uniformly provide resource quotations to multiple entities.
[0019] One aspect of this application provides a computer device, including a memory and a processor. The memory is connected to the processor, the memory is used to store computer programs, and the processor is used to call the computer programs so that the computer device executes the method provided in one aspect of this application.
[0020] One aspect of this application provides a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor, so that a computer device having a processor performs the method provided in one aspect of this application.
[0021] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in the above aspect.
[0022] In this embodiment, the second entity device corresponding to the second entity (e.g., entity) associated with the first business object (e.g., institution A) can upload message data to the distributed message data processing system based on the first business topic when it obtains the first external resource conversion rate (which can be understood as the resource conversion rate provided by the external business object other than institution A, such as offshore institutions, foreign exchange banks, other institutions, etc.; the second business object can be referred to as the external business object of the first business object, or external price source, external resource conversion rate provider, etc.) from the accessed second business object (e.g., other institutions that can provide resource conversion rates besides institution A, such as offshore institutions, foreign exchange banks, other institutions, etc.). The processing node, specifically the message data processing node, can issue a first type of resource conversion rate, including a first external resource conversion rate, to the central master device based on the first business theme. This central master device is the first master device corresponding to the first master device associated with the first business object (which can be an existing master device under organization A or a newly created master device). This allows for the aggregation of external resource conversion rates obtained by multiple masters, eliminating data isolation between external resource conversion rates obtained by different masters. When the central master device receives this first type of resource conversion rate, it can obtain the relevant data from the resource data processing strategy associated with the second business theme of the first business object. The resource conversion parameters are retrieved, and resource data processing is performed on the first type of resource conversion rate based on these parameters to obtain the internal resource conversion rate associated with the second business theme. (This can be understood as uniformly processing the first type of resource conversion rate to obtain the internal resource conversion rate provided by the first business object, i.e., the resource conversion rate provided internally, meaning the first business object can be considered an internal resource source.) Based on the second business theme, the internal resource conversion rate is uploaded to the message data processing node. The message data processing node can use the obtained internal resource conversion rate as the second type of resource conversion rate for the transaction resource pair, based on the second business theme. This second type of resource conversion rate is used to... The idea of multiple entities uniformly providing resource conversion rates for resource quotations can be understood as allowing multiple entities (the first entity and the second entity) associated with the first business object to share the same resource conversion rate. In other words, the resource conversion rate obtained by any entity through the accessed second business object can be used by other entities. That is, the internal resource conversion rate corresponding to the external resource conversion rate obtained by one entity can be obtained and used by another entity. All entities within the same organization can share and provide the same resource quotation. Thus, in scenarios where multiple entities are associated with the same organization, optimizing the resource quotation of each entity can improve the quality of resource quotations from different entities. Attached Figure Description
[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a schematic diagram of a network architecture provided in an embodiment of this application;
[0025] Figure 2 This is a schematic diagram of a resource data processing process provided in an embodiment of this application;
[0026] Figure 3 This is a schematic diagram of a price inquiry scenario provided in an embodiment of this application;
[0027] Figure 4 This is a flowchart illustrating a resource data processing method provided in an embodiment of this application. Figure 1 ;
[0028] Figure 5 This is a schematic diagram illustrating a scenario for filtering resource conversion rates provided in an embodiment of this application;
[0029] Figure 6 This is a schematic diagram of a resource pricing scenario provided in an embodiment of this application. Figure 1 ;
[0030] Figure 7 This is a schematic diagram of a resource pricing scenario provided in an embodiment of this application. Figure 2 ;
[0031] Figure 8 This is a schematic diagram of a resource pricing scenario provided in an embodiment of this application. Figure 3 ;
[0032] Figure 9 This is a flowchart illustrating a resource data processing method provided in an embodiment of this application. Figure 2 ;
[0033] Figure 10 This is an illustration of a distributed resource pricing scenario provided in an embodiment of this application. Figure 1 ;
[0034] Figure 11 This is an illustration of a distributed resource pricing scenario provided in an embodiment of this application. Figure 2 ;
[0035] Figure 12 This is an illustration of a distributed resource pricing scenario provided in an embodiment of this application. Figure 3 ;
[0036] Figure 13This is an illustration of a distributed resource pricing scenario provided in an embodiment of this application. Figure 4 ;
[0037] Figure 14 This is a flowchart illustrating a resource data processing method provided in an embodiment of this application. Figure 3 ;
[0038] Figure 15 This is a schematic diagram illustrating a scenario of uploading external resource conversion rate provided in an embodiment of this application;
[0039] Figure 16 This is a schematic diagram of an interactive process for resource data processing provided in an embodiment of this application;
[0040] Figure 17 This is a schematic diagram of the structure of a resource data processing device provided in an embodiment of this application;
[0041] Figure 18 This is a schematic diagram of the structure of a resource data processing device provided in an embodiment of this application;
[0042] Figure 19 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application;
[0043] Figure 20 This is a schematic diagram of a resource data processing system provided in an embodiment of this application. Detailed Implementation
[0044] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0045] Please see Figure 1 , Figure 1 This is a schematic diagram of a network architecture provided in an embodiment of this application. For example... Figure 1 As shown, the network architecture may include a distributed message data processing system 100, a server cluster 200, and a terminal device cluster 300. The distributed message data processing system 100 may include one or more distributed nodes (also referred to as message data processing nodes); the number of distributed nodes is not limited here. Figure 1 As shown, multiple distributed nodes may include distributed node 100a, distributed node 100b, ..., distributed node 100n; as Figure 1As shown, distributed nodes 100a, 100b, ..., 100n can each establish network connections with the servers in server cluster 200, enabling data interaction between the distributed nodes in the distributed message data processing system and the servers in server cluster 200. Accordingly, server cluster 200 may include one or more servers (also referred to as master devices); the number of servers is not limited here. Figure 1 As shown, multiple servers may include server 200a, server 200b, ..., server 200n; as Figure 1 As shown, servers 200a, 200b, ..., 200n can each establish a network connection with one or more terminal devices in the terminal device cluster 300, so that the servers in the server cluster can interact with the terminal devices in the terminal device cluster 300 through the network connection. Similarly, the terminal device cluster 300 may include one or more terminal devices; the number of terminal devices is not limited here.
[0046] It is understandable that, such as Figure 1 Each terminal device shown can have the target application installed. When the target application runs on each terminal device, it can interact with... Figure 1 The servers in the server cluster shown interact with each other, enabling the servers in the server cluster to receive corresponding business data information from each terminal device.
[0047] It can be understood that the business data information here may specifically include a resource inquiry request sent by a user (e.g., user A) for the resource conversion rate of the transaction resource pair before executing a certain business transaction (e.g., before a user (e.g., user A) executes a business transaction with another user (e.g., user B)).
[0048] The target application may include applications with business data processing functions (e.g., inquiry query functions, transaction execution functions, etc.). The terminal device can generate a resource quotation request (quotation query request) for a business transaction through the target application's inquiry query function and send it to a server in the server cluster to obtain the corresponding resource quotation. Alternatively, the terminal device can execute a business transaction through the target application's transaction execution function, such as converting a certain quantity of one type of resource into a certain quantity of another type of resource, and using the other type of resource to purchase a specified item (e.g., exchanging a certain amount of US dollars for a certain amount of RMB to purchase a specified airline ticket).
[0049] It is understood that the applications mentioned here can specifically include multimedia applications (e.g., video applications), entertainment applications (e.g., game applications), educational applications, shopping applications, resource management applications, instant messaging applications, etc. These applications can all have multimedia data (e.g., text and images) loading and display functions, and can also have item purchasing or resource (asset) transfer functions. For example, the application can be a social application, an educational application, a short video application, a resource transfer application, etc. The application can be a standalone application, installed on a terminal device and running on the terminal device's current operating system; it can also be an embedded sub-application (e.g., a mini-program) within an application (such as an instant messaging application, an educational application, etc.). The specific form of the application is not limited here.
[0050] It is understood that the principal device corresponding to each of the multiple entities associated with the first business object can be one or more servers. Taking one entity as an example, this embodiment uses one server as the principal device. Therefore, any server in the server cluster (e.g., server 200a) can be used as the central principal device (i.e., the first principal device), and the remaining servers in the server cluster can be used as second principal devices. Each second principal device can access different second business objects that provide resource conversion rates for transaction resource pairs. When a second principal device obtains the resource conversion rate of a transaction resource pair from the accessed second business object, it can use it as the first external resource conversion rate and upload it to the message data processing node in the distributed message data processing system. This can be one second principal device corresponding to one message data processing node, or multiple second principal devices corresponding to one message data processing node; no limitation is made here. The message data processing node in the distributed message data processing system can use the received first external resource conversion rate as a first type of resource conversion rate and send it to the central principal device. The central principal device can process the first type of resource conversion rate to obtain an internal resource conversion rate and upload it to the message data processing node in the distributed message data processing system. When a message data processing node receives an internal resource conversion rate, it uses it as the second type of resource conversion rate for a transaction resource pair. This second type of resource conversion rate is used to provide unified resource quotations to multiple entities. For example, in a distributed message data processing system, the message data processing node distributes the second type of resource conversion rate to the second entity device. When a user sends a resource quotation request for a business transaction through a terminal device (e.g., terminal device 200a), the terminal device can send the resource quotation request to the corresponding second entity device, which then provides a relevant customer quotation based on the second type of resource conversion rate of the transaction resource pair indicated in the resource quotation request.
[0051] Furthermore, it is understood that the device corresponding to the second business object accessed by each second main device can be a terminal device or a server. The second main device can generate a resource inquiry request for the transaction resource pair and send the resource inquiry request to the device corresponding to the second business object. The device corresponding to the second business object generates a business quotation containing the resource conversion rate of the transaction resource pair and returns it to the second main device. In this way, the second main device receives the resource conversion rate of the transaction resource pair provided by the accessed second business object.
[0052] It is understood that the first and second main devices are collectively referred to as main devices. That is, the main devices corresponding to multiple main devices associated with the first business object. The central main device can be an additionally configured main device dedicated to processing the first type of resource conversion rate, that is, the newly created main device among multiple main devices is the central main device (i.e., the first main device), or it can be a main device that can simultaneously process the first type of resource conversion rate and has all or part of the functions of the second main device, that is, a main device is selected from the existing main devices as the central main device, and the main device corresponding to the selected main device is the central main device. For example, the second main device obtains the resource conversion rate of the provided transaction resource pair from the second business object it accesses through the second resource processing service component (such as the external resource processing service component, external resource access service component, etc.). When the central main device also deploys the second resource processing service component, the central main device can access the second business object through the second resource processing service component (the second business object accessed by different main devices can be different), and obtain the resource conversion rate of the provided transaction resource pair from the accessed second business object (such as the second external resource conversion rate). The central main device can upload the second external resource conversion rate to the message data processing node as the first type of resource conversion rate.
[0053] Similarly, the second main device receives the second type of resource conversion rate issued by the message data processing node through the third resource processing service component (such as the customer quotation service component). When it receives a resource quotation request for a business transaction, it performs a resource quotation based on the second type of resource conversion rate. When the central main device also deploys the third resource processing service component, the central main device can receive the second type of resource conversion rate issued by the message data processing node through the third resource processing service component, and can also use it to receive resource quotation requests sent by users through terminal devices, such as performing a resource quotation based on the second type of resource conversion rate when it receives a resource quotation request for a business transaction.
[0054] The aforementioned terminal devices may specifically include: smartphones, tablets, laptops, desktop computers, smart TVs, smart speakers, desktop computers, smartwatches, smart in-vehicle devices, smart voice interaction devices, smart home appliances, and other smart terminals with multimedia data processing functions (e.g., text data display functions), but are not limited thereto. It should be understood that the embodiments of this application are not limited herein. The servers in the server cluster or the distributed nodes in the distributed message data processing system may be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0055] Understandable Figure 1 This is merely an illustrative representation of a possible network architecture for the technical solution of this application, and does not limit the specific architecture of the technical solution of this application. That is, the technical solution of this application may also provide other forms of network architecture.
[0056] For further information, please refer to [link / reference]. Figure 2 , Figure 2This is a schematic diagram of a resource data processing process provided in an embodiment of this application. The first business object is associated with multiple entities, which are related but independent of each other. These multiple entities include a first entity 20a and second entities (e.g., second entities 20b and 20c; the number of second entities is not limited here, only two are used as an example). The first entity 20a corresponds to a first entity device, also known as a central entity device. The second entities 20b and 20c correspond to second entity devices. Each second entity device is connected to a second business object. Different second entity devices can connect to different second business objects, and each second entity device can connect to one or more second business objects. For example, second entity 20b connects to one second business object (21a), and second entity 20c connects to multiple second business objects (21b, ..., 21n). The number of second business objects connected to each second entity (second entity device) is not limited here.Therefore: S211, the second entity 20b, corresponding to the second entity device, obtains the resource conversion rate a21 of the provided transaction resource pair from the accessed second business object 21a; S212, the second entity 20c, corresponding to the second entity device, obtains the resource conversion rate a22 of the provided transaction resource pair from the accessed second business object 21b; S213, the second entity 20c, corresponding to the second entity device, obtains the resource conversion rate a23 of the provided transaction resource pair from the accessed second business object 21n (the operation of the second entity 20c after accessing other second business objects is the same); S221, the second entity 20b, corresponding to the second entity device, uses the resource conversion rate a21 as the first external resource conversion rate b21 and uploads it to the message data processing node in the distributed message data processing system based on the first business topic; S222, the second entity 20c, corresponding to the second entity device, uses the resource conversion rates a22 and a23 as the first external resource conversion rate b22 and uploads them to the message data processing node in the distributed message data processing system based on the first business topic. The distributed message data processing system includes multiple message data processing nodes. S23: The message data processing nodes, based on the first business theme, use the uploaded first external resource conversion rate b21 and first external resource conversion rate b22 as the first type of resource conversion rate for a transaction resource pair associated with the first entity, and distribute them to the first entity device corresponding to the first entity 20a based on the first business theme. S24: The first entity device 22 obtains resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object, performs resource data processing on the first type of resource conversion rate based on the resource conversion parameters, and obtains the internal resource conversion rate associated with the second business theme. S25: The first entity device 22 uploads the internal resource conversion rate to the message data processing nodes based on the second business theme. S26: The message data processing nodes, based on the second business theme, use the obtained internal resource conversion rate as the second type of resource conversion rate for the transaction resource pair. This second type of resource conversion rate can be used to uniformly provide resource quotations to multiple entities associated with the first business object.
[0057] It is understandable that data isolation exists between multiple entities. That is, the resource conversion rates of transaction resource pairs obtained by the main devices of each entity from the accessed second business object cannot be directly transmitted to each other through data interaction. Therefore, the resource conversion rates of transaction resource pairs obtained by the main devices of each entity can be aggregated by a distributed message data processing system. At the same time, the central main device uniformly processes them into internal resource conversion rates associated with the second business theme to obtain a second type of resource conversion rate for the transaction resource pairs used to uniformly provide resource quotations to multiple entities. In other words, all multiple entities can obtain this second type of resource conversion rate, thereby realizing the sharing of resource conversion rates among multiple entities.
[0058] It is understood that this application can be applied to querying resource conversion rates in any field. For example, it can be applied to foreign exchange scenarios, that is, to query the resource conversion rates of trading resource pairs associated with foreign exchange scenarios. In foreign exchange scenarios, there are situations where one currency in a currency pair is bought and another currency is sold, which is a currency exchange (e.g., x1 units of currency A can be exchanged for y1 units of currency B). In this case, the first type of resource in the trading resource pair can be one currency, and the second type of resource can be another currency. The resource conversion rate is the conversion rate between the two currencies in the currency pair, i.e., the exchange rate. Similarly, it can be applied to gaming scenarios, that is, to query the resource conversion rates of trading resource pairs associated with gaming scenarios. For example, in a points exchange scenario, there are situations where game coins are bought and game diamonds are sold (e.g., x1 game diamonds can be exchanged for y1 game coins X). In this case, the first type of resource in the trading resource pair can be game diamonds, and the second type of resource can be game coins. The resource conversion rate is the conversion rate between game diamonds and game coins.
[0059] It should be understood that the business scenario involved in the embodiments of this application can be an offline store shopping scenario. For example, user A can be a physical merchant that only supports the first type of resource (e.g., Hong Kong dollars (HKD)), and user B can be a shopping user who holds the aforementioned second type of resource (e.g., RMB (CNY)). The first type of resource and the second type of resource constitute a transaction resource pair. It can be understood that in this offline store shopping scenario, when user B confirms the purchase of a target item with a value of Q Hong Kong dollars at the store where user A is located, the payment process of user B is essentially the conversion of a certain amount of RMB into Q Hong Kong dollars according to a certain resource conversion rate, and then paying user A with Q Hong Kong dollars to purchase the target item. At this time, user B can first query the resource conversion rate through the target application, and then determine whether to perform resource exchange and transaction payment through the target application. When querying resource conversion rates, the target application can generate a resource quotation request for a business transaction (such as a payment transaction for purchasing a target item) and send the request to a second entity device (or a first entity device). Alternatively, the target application's backend server can send the request to the second entity device (or the first entity device) to obtain the corresponding resource quotation. It can be understood that the first business object to which the second entity device (or the first entity device) belongs is the resource conversion platform (e.g., a currency exchange platform). As the first business object of the resource conversion platform, it can provide an optimal resource quotation for each participating party (i.e., user A) in the aforementioned quotation process.
[0060] To facilitate understanding, the following section will introduce the technical terms involved in the technical field to which the solutions of the embodiments of this application may be applied:
[0061] I. Transaction resource pairs and resource conversion rate:
[0062] The transaction resource pairs include a first type of resource and a second type of resource, which are different. The first and second types of resources included in the transaction resource pairs differ in different scenarios. It should be understood that the first and second types of resources involved in the embodiments of this application can be collectively referred to as virtual resources. For example, virtual resources here can specifically be universal currencies with value fluctuation ranges, such as US dollars, Hong Kong dollars, and RMB in foreign exchange scenarios; or game currencies such as game coins, game experience points, game points, and game diamonds in game scenarios; or virtual fireworks, virtual balloons, and virtual airplanes in social scenarios. No limitation is made on the transaction resource pairs here.
[0063] The resource conversion rate indicates the exchange rate between the first and second types of resources in a trading resource pair. For example, taking a trading resource pair of game coins and game diamonds, assuming that in the first trading direction, the resource conversion rate indicates that 1.25 game coins can be exchanged for 1 game diamond, where 1.25 represents the quantity of the first type of resource and 1 represents the quantity of the second type of resource. In this case, the resource conversion rate indicates the conversion rate in the first trading direction (i.e., the trading direction of selling game diamonds to buy game coins). That is, when a user pays 1 game diamond, they can receive 1.25 game coins in this first trading direction. Optionally, in the second transaction direction, the resource conversion rate can indicate that 1.25 game coins can be equivalently exchanged for 0.95 game diamonds. Here, 1 represents the quantity of the first type of resource, and 0.95 represents the quantity of the second type of resource. In this case, the resource conversion rate (also known as the offer rate) in the second transaction direction (i.e., the transaction direction of selling game coins to buy game diamonds) is 0.76. It should be understood that for the user, the conversion rate in the first transaction direction (i.e., the ASK direction) (e.g., 0.8) will be higher than the conversion rate in the second transaction direction (i.e., the BID direction) (e.g., 0.76). That is, when a user actually pays 1.25 game coins, they can obtain 0.95 game coins in the first transaction direction.
[0064] II. Business Timestamp.
[0065] It is understandable that resource conversion rates can be represented in the form of business quotation orders. A business quotation order for a trading resource pair indicates the buy and sell information for the first type of resource (or the second type of resource) within that pair. It is understandable that, for example... Figure 3As shown, Figure 3 This is a schematic diagram of a price inquiry scenario provided in an embodiment of this application; the second subject (e.g. Figure 2 When the second entity device (corresponding to the second entity 20c) obtains the resource conversion rate of the transaction resource pair provided by the accessed second service object 21b, it can generate a resource inquiry request for the transaction resource pair (e.g., the first type of resource is AAA, and the second type of resource is BBB). This resource inquiry request carries a request timestamp (e.g., 9 pm on February 14, 2023), which is the transaction system timestamp T in the resource inquiry request. The second entity sends the resource inquiry request to the second service object (e.g., the transaction system timestamp T in the resource inquiry request). Figure 2 The terminal device corresponding to the second entity 24c) obtains the resource conversion rate of the transaction resource pair indicated by the resource inquiry request from the terminal device corresponding to the second business object, and generates a first business quotation corresponding to the resource inquiry request based on the obtained resource conversion rate and the transaction system timestamp in the resource inquiry request. The second entity device corresponding to the second entity obtains the resource conversion rate of the queried transaction resource pair from the first business quotation (for example, the conversion rate in the direction of buying AAA is 0.8210, and the conversion rate in the direction of selling AAA is 0.8247). At this time, the transaction system timestamp in the first business quotation can be used as the business timestamp corresponding to the resource conversion rate.
[0066] In this context, it can be understood that the business entity that provides the resource conversion rate for transaction resource pairs is also called the business institution (i.e., the resource conversion rate provider, price source), such as an institution, offshore institution, etc. For an institution, there can be multiple independent business entities (e.g., a primary entity, such as the second primary entity mentioned above; optionally, the primary entity can be an independent entity used for resource conversion rate processing, or an entity with the same function as the second primary entity). For example, an institution (such as a resource conversion platform) sets up a primary entity in country A. This primary entity can serve as a specific resource conversion sub-platform under the resource conversion platform, allowing users in country A to query resource conversion rates. It is understandable that institutions need to apply for the corresponding licenses and establish the corresponding entities to conduct business, as they need to operate in different regions and countries, or even in different fields within the same region or country. These entities are often required to be isolated and operate independently.
[0067] It is understandable that, for an entity (such as the first business entity), a resource conversion rate provider other than that entity (such as the second business entity) can be considered an external resource conversion rate provider (external price source). The resource conversion rate obtained by the first business entity from the second business entity is an external resource conversion rate (first type of resource conversion rate) for the first business entity, while the resource conversion rate used by the first business entity to provide resource quotations is an internal resource conversion rate (second type of resource conversion rate) for the first business entity. Multiple entities associated with the first business entity can connect to different second business entities to obtain the external resource conversion rates provided by the second business entities. It is understandable that, for an entity, access to the designated external resource conversion rate provider can be achieved through the configuration and negotiation of relevant business personnel. Different entities can access different second business entities. It is understandable that, in some scenarios, when an entity (the first business entity) conducts foreign exchange business, it is often restricted by the laws and regulations of various countries and regions, and therefore cannot conduct business in multiple countries and regions through a single entity. Therefore, it needs to establish independent entities in multiple countries and regions globally to conduct business and operate separately. To support the foreign exchange business of each entity, each entity needs to have the ability to provide foreign exchange quotes to customers (i.e., provide resource quotes). Therefore, each entity will connect to a local exchange rate supplier (i.e., a price source, resource conversion rate provider; this connected exchange rate supplier can be called a second business object, used to provide resource conversion rates to multiple entities of Institution A). After connecting to its price source, the entity can process the obtained external resource conversion rate to obtain the internal resource conversion rate, which is used to provide foreign exchange quotes to customers. For example, Institution A (i.e., the first business object) is associated with entities 1-3. Entity 1 can connect to Institution B, Institution C, and offshore institution A; Institution B, Institution C, and offshore institution A can be the second business objects connected to entity 1. Entity 2 can connect to Institution D and offshore institution B; Institution D and offshore institution B can be the second business objects connected to entity 2. Entity 3 can connect to offshore institution C; Offshore institution C can be the second business object connected to entity 3.
[0068] In this distributed message data processing system, the distributed nodes (message data processing nodes) can be configured with message queues to store resource conversion rates. The central main device can subscribe to the first type of resource conversion rate in the message queues of the message data processing nodes. Publish-subscribe can be understood as publishers generating data to the message center (message data processing nodes), subscribers subscribing to messages they are interested in, and the message center sending relevant messages or data to the corresponding subscribers based on their subscription status. Specifically, the message center adds the data produced by the publisher to the corresponding message queue (enqueueing), with each message queue representing the same topic; then, based on the topic subscribed to by the subscriber, the message center retrieves messages sequentially from the message queue of the corresponding topic and delivers them to the subscriber (or consumer), completing the dequeueing process.
[0069] Furthermore, a distributed message data processing system can be a blockchain system, which is a distributed system formed by multiple distributed nodes connected through network communication. The distributed nodes can form a peer-to-peer (P2P) network, and the P2P protocol is an application layer protocol running on top of the Transmission Control Protocol (TCP). For ease of understanding, the concept of blockchain will be explained below: Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. It is mainly used to organize data in chronological order and encrypt it into a ledger, making it tamper-proof and forgery-proof, while also enabling data verification, storage, and updating. When a message data processing node connects to the blockchain system and becomes a blockchain node, the immutability and anti-counterfeiting characteristics of the blockchain ensure that the data details (such as the first external resource conversion rate and business timestamp) within the first business quotation, which includes the first external resource conversion rate, are authentic and secure when written into the blockchain ledger. This makes the results obtained after processing the data more reliable. Therefore, this embodiment of the application, through a distributed message data processing system, can share and uniformly process internal resource conversion rates to ensure the quality of resource quotations provided by multiple entities within the same organization.
[0070] It should be noted that when the computer device in this application embodiment acquires user personal data information, it may display a prompt interface or pop-up window. The prompt interface or pop-up window is used to prompt the user that personal data information is being collected. The data acquisition steps will only begin after the user confirms the prompt interface or pop-up window; otherwise, the process will end.
[0071] It is understood that in the specific implementation of this application, business data of users, enterprises, institutions and other objects may be involved (e.g., users' personal data information, transaction data information, enterprise's income and expenditure, enterprise qualifications and other information). When the above embodiments of this application are applied to specific products or technologies, permission or consent from users, enterprises, institutions and other objects is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0072] For further details, please see Figure 4 , Figure 4 This is a flowchart illustrating a resource data processing method provided in an embodiment of this application, such as... Figure 4 As shown, the method can be executed by the aforementioned central entity device (the first entity device corresponding to the first entity associated with the first business object). For example, the central entity device can be the one described above. Figure 1 Any one server in the server cluster 200 shown. The method may specifically include the following steps S101-S103:
[0073] S101, Receive message data processing node based on the first business theme and the first type of resource conversion rate of the transaction resource pair associated with the first subject.
[0074] The message data processing node is a distributed node in a distributed message data processing system associated with the first business topic. It can be understood that one message data processing node can correspond to one or more principal devices (such as the first principal device or the second principal device). Each message data processing node has the same function and execution logic.
[0075] The first entity is determined from among multiple entities associated with the first business object. It can be understood that the multiple entities associated with the first business object may include the first entity (i.e., the central entity) and the second entity (i.e., the regular entity). The second entity is any entity other than the first entity among the multiple entities associated with the first business object. The first entity can be an existing entity associated with the first business object or a newly created entity. For example, if the first business object is associated with N entities (N is a positive integer greater than 1), these N entities can be used to access their respective external resource conversion rate providers to obtain the resource conversion rate of the transaction resource pair and to quote resource prices. Optionally, one entity can be selected from the N entities as the first entity. In this case, the remaining entities among the N entities are the second entities, and these N entities constitute the multiple entities associated with the first business object. Alternatively, a new entity can be created as the first entity, so that all N entities are second entities, and these N entities and the newly created entity constitute the multiple entities associated with the first business object. It is understandable that each entity can correspond to one or more devices (such as servers), the device corresponding to the first entity is called the first entity device, and the device corresponding to the second entity is called the second entity device.
[0076] The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second subject device corresponding to the second subject associated with the first business object, obtained by the message data processing node, based on the first business topic. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second subject for the transaction resource pair. It can be understood that the second business object is a business object used to provide resource conversion rates for transaction resource pairs to multiple subjects (that is, a second business object is a business object used to provide resource conversion rates for transaction resource pairs to subjects accessing that second business object), i.e., an external resource conversion rate provider, and the second business object is different from the first business object. Multiple subjects under the first business object can access different second business objects to obtain different resource conversion rates provided for the transaction resource pair, such as various exchange rate information for USD and RMB. It can be understood that a subject device that can access a second business object can access one or more second business objects; the number of second business objects accessed by a single subject device is not limited here.
[0077] It is understood that the second entity device corresponding to the second entity can obtain the resource conversion rate provided for the transaction resource pair from the terminal device corresponding to the accessed second business object, and use the obtained resource conversion rate provided for the transaction resource pair as the first external resource conversion rate. For example, the second entity device 1 corresponding to the second entity 1 can obtain resource conversion rate 1 provided for the transaction resource pair from the terminal device 1 corresponding to the accessed second business object 1, as the first external resource conversion rate; the second entity device 2 corresponding to the second entity 2 can obtain resource conversion rate 2 provided for the transaction resource pair from the terminal device 2 corresponding to the accessed second business object 2, as the first external resource conversion rate. The second entity device corresponding to the second entity can upload the obtained first external resource conversion rate to the message data processing node corresponding to the second entity device in the distributed message data processing system based on the first business theme. It is understood that the first business theme is a business theme configured for the first type of resource conversion rate, such as "external price source", "external resource conversion rate", etc., which can be specifically set by relevant business personnel.
[0078] The second principal device corresponding to the second principal can execute the above process through the deployed second resource processing service component. That is, the second principal device corresponding to the second principal can access the terminal device associated with the corresponding second business object through the deployed second resource processing service component, and receive the resource conversion rate issued by the terminal device associated with the second business object for the transaction resource pair. Based on the received resource conversion rate, it obtains the first external resource conversion rate for uploading to the message data processing node. Correspondingly, when the first principal device corresponding to the first principal also has a second resource processing service component deployed, the first principal device corresponding to the first principal will also execute the related process executed by the second principal device corresponding to the second principal through this second resource processing service component, that is, obtain the resource conversion rate provided by the accessed second business object for the transaction resource pair and upload it to the corresponding message data processing node (i.e., execute process one). Therefore, the first principal device corresponding to the first principal is used as an example to describe the above execution process one in detail here.
[0079] It is understood that at this time, the first type of resource conversion rate includes not only the first external resource conversion rate uploaded by the second subject device corresponding to the second subject associated with the first business object based on the first business theme, which is obtained by the message data processing node, but also the second external resource conversion rate uploaded by the first subject device based on the first business theme, which is obtained by the message data processing node. The second external resource conversion rate is the resource conversion rate provided by the second business object accessed by the first subject for the transaction resource pair.
[0080] Therefore, when the first main device is used as the central main device, it accesses the terminal device associated with the second business object through the second resource processing service component; it receives the resource conversion rate issued by the terminal device associated with the second business object for the transaction resource pair, and obtains the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate. In other words, the central main device can access the terminal device associated with the second business object associated with it, so that the terminal device associated with the second business object can issue the resource conversion rate for the transaction resource pair. The second business object accessed by the central main device can be different from the second business object accessed by the second main device.
[0081] It is understandable that when the central master device receives a resource conversion rate, it can filter the conversion rate to determine whether to use it as the second external resource conversion rate to be uploaded to the message data processing node. Similarly, it is understandable that the second master device will also filter the resource conversion rates issued by the terminal devices associated with the second accessed business object for transaction resources to determine the second external resource conversion rate to be uploaded to the message data processing node. This explanation uses the filtering process performed by the central master device as an example.
[0082] One method for obtaining the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate is as follows: The received resource conversion rate is used as the resource conversion rate to be uploaded, and a reasonable resource conversion rate range associated with the resource conversion rate to be uploaded is obtained. If the resource conversion rate to be uploaded is within the reasonable resource conversion rate range, then it is used as the second external resource conversion rate for uploading to the message data processing node. The reasonable resource conversion rate range refers to the reasonable range that the resource conversion rate of the transaction resource pair should fall within. When the obtained resource conversion rate to be uploaded is not within this reasonable resource conversion rate range, it can be considered a low-quality resource conversion rate and can be filtered to improve the quality of the resource conversion rate. For example, if the reasonable resource conversion rate range for the transaction resource pair is 6-7, and the resource conversion rate to be uploaded is 8, then it is not within the reasonable resource conversion rate range and is filtered out. If the resource conversion rate to be uploaded is 6.5, then it is within the reasonable resource conversion rate range and is used as the second external resource conversion rate to be uploaded.
[0083] The received resource conversion rate is the resource conversion rate in the first service quotation provided by the second business object. The first service quotation is obtained by the terminal device associated with the second business object after receiving the resource inquiry request sent by the first entity for the transaction resource pair. In other words, the central entity device can generate a resource inquiry request for the transaction resource pair and send it to the terminal device associated with the accessed second business object. The terminal device associated with the accessed second business object generates the first service quotation corresponding to the transaction resource pair and sends it to the central entity device. At this time, the central entity device can obtain the resource conversion rate of the transaction resource pair and the business timestamp corresponding to the resource conversion rate (i.e., the transaction system timestamp carried in the resource inquiry request) from the first service quotation. The business timestamp corresponding to the resource conversion rate can be regarded as the publication timestamp (publication moment) of the resource conversion rate, that is, the timestamp written into the service quotation containing the resource conversion rate of the transaction resource pair by the terminal device associated with the second business object when publishing the resource conversion rate of the transaction resource pair.
[0084] The central main equipment can generate resource quotation requests for transaction resource pairs according to the resource conversion rate update time (e.g., every 3 seconds) and send these requests to the terminal devices associated with the accessed second business objects. Optionally, the central main equipment can use different resource conversion rate update times for different transaction resource pairs or different accessed second business objects. For example, the update time can be shorter for transaction resource pairs that require faster updates and longer for those that require slower updates. Similarly, the update time can be shorter for distant second business objects and longer for nearby ones. The resource conversion rate update time can be configured by relevant personnel. The process of the second main equipment generating resource quotation requests is similar to the above.
[0085] Therefore, based on the received resource conversion rate, the second method for obtaining the second external resource conversion rate used to upload to the message data processing node can be as follows: When the resource acquisition time corresponding to the second resource processing service component is the reference resource acquisition time, the received resource conversion rate is used as the resource conversion rate to be uploaded, and the first business timestamp corresponding to the received resource conversion rate is used as the reference business timestamp corresponding to the resource conversion rate to be uploaded; the first business timestamp corresponding to the received resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the obtained resource inquiry request; the valid time interval associated with the resource conversion rate to be uploaded is obtained; if the time interval determined based on the reference business timestamp and the reference resource acquisition time is less than or equal to the valid time interval, then the resource conversion rate to be uploaded is used as the second external resource conversion rate used to upload to the message data processing node. That is to say, when the resource acquisition time corresponding to the second resource processing service component is displayed as the reference resource acquisition time, the central main device obtains the resource conversion rate and uses it as the resource conversion rate to be uploaded.
[0086] In this context, the reference resource acquisition time is understood to be the moment when the central main device obtains the conversion rate of the resource to be uploaded from the terminal device associated with the second business object. The effective time interval associated with the conversion rate of the resource to be uploaded refers to the maximum time interval between the acquisition time and the publication time of the resource conversion rate of the transaction resource pair. If the time interval between the acquisition time and the publication time of the conversion rate of the resource to be uploaded is greater than this effective time interval, it can be considered that the conversion rate of the resource to be uploaded has a lag and is an expired resource conversion rate, thus it can be filtered out. For example, if the effective time interval of the transaction resource pair is 3 minutes, and the reference business timestamp corresponding to the conversion rate of the resource to be uploaded is 7:16 and the reference resource acquisition time is 7:18, then the time interval is 2 minutes, which is less than the effective time interval, and the conversion rate of the resource to be uploaded can be used as the second external resource conversion rate to be uploaded. If the reference business timestamp corresponding to the conversion rate of the resource to be uploaded is 7:16 and the reference resource acquisition time is 7:20, then the time interval is 4 minutes, which is greater than the effective time interval, and the conversion rate of the resource to be uploaded should be filtered out.
[0087] One possible method for obtaining the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate is as follows: When the resource acquisition time corresponding to the second resource processing service component is the first resource acquisition time, the received resource conversion rate is used as the resource conversion rate to be uploaded, and the first business timestamp corresponding to the received resource conversion rate is used as the first comparison timestamp corresponding to the resource conversion rate to be uploaded; the first business timestamp corresponding to the received resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the obtained resource inquiry request; in the resource acquisition time corresponding to the second resource processing service component, the resource acquisition time obtained before the first resource acquisition time is used as the second resource acquisition time. The first historical resource conversion rate received from the terminal device associated with the second business object at the second resource acquisition time is taken as the first reference resource conversion rate, and the first business timestamp corresponding to the first historical resource conversion rate is taken as the first reference timestamp. The first historical resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair. One second message acquisition time corresponds to one first historical resource conversion rate. The first reference timestamp is compared with the first comparison timestamp to obtain the first timestamp comparison result. If the first timestamp comparison result indicates that the first reference timestamp is less than or equal to the first comparison timestamp, then the resource conversion rate to be uploaded is taken as the second external resource conversion rate for uploading to the message data processing node.
[0088] It can be understood that the moment when the first historical resource conversion rate is obtained before the first resource acquisition moment is considered the second resource acquisition moment. The first historical resource conversion rate refers to a resource conversion rate of the same type as the conversion rate of the resource to be uploaded; that is, the transaction resource pair corresponding to the first historical resource conversion rate is the same as the transaction resource pair corresponding to the conversion rate of the resource to be uploaded. For example, if the exchange rate information between USD and RMB is obtained at the first resource acquisition moment, the moment when this exchange rate information is obtained before the first resource acquisition moment is considered the second resource acquisition moment. Each time a first historical resource conversion rate is obtained, its corresponding acquisition moment is considered a second resource acquisition moment. Therefore, one second resource acquisition moment corresponds to one first historical resource conversion rate. Optionally, the first historical resource conversion rate received from the terminal device associated with the second business object at each second resource acquisition time can be used as the first reference resource conversion rate. Alternatively, the maximum second resource acquisition time can be obtained, and the first historical resource conversion rate received from the terminal device associated with the second business object at that maximum second resource acquisition time can be used as the first reference resource conversion rate. In this case, the first business timestamp corresponding to the first historical resource conversion rate can be used as the first reference timestamp. The first reference timestamp is compared with the first comparison timestamp. If (all) first reference timestamps are less than or equal to the first comparison timestamp, it means that the resource conversion rate to be uploaded at this time is the latest resource conversion rate among the resource conversion rates obtained for the transaction resource pair. Then, the resource conversion rate to be uploaded can be used as the second external resource conversion rate. This ensures that the second external resource conversion rate is the latest resource conversion rate when it is uploaded to the message data processing node.
[0089] Optionally, the first timestamp to be compared can be used as the first maximum business timestamp associated with the transaction resource pair corresponding to the resource conversion rate to be uploaded. When the resource conversion rate of the transaction resource pair (i.e., the new resource conversion rate to be uploaded) is obtained again, the business timestamp corresponding to the new resource conversion rate to be uploaded (i.e., the new first timestamp to be compared) can be compared with the first maximum business timestamp associated with the transaction resource pair corresponding to the resource conversion rate to be uploaded. If the first timestamp to be compared is greater than or equal to the first maximum business timestamp, the new resource conversion rate to be uploaded is used as the second external resource conversion rate. At the same time, the first maximum business timestamp associated with the transaction resource pair can be updated based on the business timestamp corresponding to the new resource conversion rate to be uploaded. The above process can be executed every time the resource conversion rate of any transaction resource pair is obtained, so that the second external resource conversion rate uploaded to the message data processing node is the latest resource conversion rate.
[0090] For example, taking the transaction resource pair as USD and RMB, the received resource conversion rate is the exchange rate information between USD and RMB. When the resource acquisition time corresponding to the second resource processing service component is displayed as the first resource acquisition time, the exchange rate information 1 between USD and RMB is received. Exchange rate information 1 is used as the resource conversion rate to be uploaded, and the first business timestamp corresponding to exchange rate information 1 is the first comparison timestamp corresponding to the resource conversion rate to be uploaded. The time when the historical exchange rate information between USD and RMB is obtained before the first resource acquisition time is used as the second resource acquisition time. At this time, the historical exchange rate information is the first reference resource conversion rate, and the first business timestamp corresponding to the historical exchange rate information is the first reference timestamp. Alternatively, the first business timestamp corresponding to the historical exchange rate information at the maximum second resource acquisition time is used as the first reference timestamp. When the first reference timestamp is less than or equal to... For the first comparison timestamp, exchange rate information 1 is considered as the latest exchange rate information between USD and RMB, and is used as the second external resource conversion rate. Optionally, the first business timestamp corresponding to exchange rate information 1 can be used as the first maximum business timestamp associated with USD and RMB. When exchange rate information 2 between USD and RMB is obtained again after the first resource acquisition time, the first business timestamp corresponding to exchange rate information 2 is compared with the aforementioned first maximum business timestamp. If the first business timestamp is greater than or equal to the first maximum business timestamp, then exchange rate information 2 is considered as the latest exchange rate information between USD and RMB, and is used as the second external resource conversion rate. At the same time, the first maximum business timestamp associated with USD and RMB can be updated using the first business timestamp corresponding to exchange rate information 2 to obtain the updated first maximum business timestamp associated with USD and RMB.
[0091] It is understandable that, based on the received resource conversion rate, the conversion rate used to upload the second external resource to the message data processing node can be a combination of any one or more of the methods one to three mentioned above (i.e., the filtering method for resource conversion rates). For example, taking the combination of method one and method two as an example, the resource conversion rate to be uploaded can be used as the second external resource conversion rate to be uploaded to the message data processing node when the resource conversion rate to be uploaded is within a reasonable resource conversion rate range, and the time interval determined based on the reference business timestamp and the reference resource acquisition time is less than or equal to the valid time interval. As another example, taking the combination of method one to three as an example, the resource conversion rate to be uploaded can be used as the second external resource conversion rate to be uploaded to the message data processing node when the resource conversion rate to be uploaded is within a reasonable resource conversion rate range, and the time interval determined based on the reference business timestamp and the reference resource acquisition time is less than or equal to the valid time interval, and the first timestamp comparison result indicates that the first reference timestamp is less than or equal to the first comparison timestamp. No limitations are imposed here.
[0092] It is understood that the second external resource conversion rate exists in the form of being written into the first business quotation. Therefore, when uploading the second external resource conversion rate, the first business quotation containing the second external resource conversion rate is uploaded based on the first business theme. The uploaded second external resource conversion rate carries the first business theme.
[0093] It is understood that among the multiple principal devices corresponding to multiple entities associated with the first business object, the principal devices deployed with the second resource processing service component will all execute the above process and upload the obtained external resource conversion rates (first external resource conversion rate and / or second external resource conversion rate) to the message data processing node. Specifically, the principal devices deployed with the second resource processing service component can upload the determined external resource conversion rates based on the first business topic through the second resource processing service component. The message data processing node can use the received external resource conversion rates as first-type resource conversion rates and add them to the first distributed message queue corresponding to the first business topic for the central principal devices to subscribe to. The message data processing nodes corresponding to different principal devices can be the same or different. Each message data processing node corresponding to a principal device deployed with the second resource processing service component is configured with the first distributed message queue corresponding to the first business topic.
[0094] It is understandable that when the central main device obtains the first type of resource conversion rate from the message data processing node, the message data processing node obtains the first type of resource conversion rate from the first distributed message queue and issues it. In other words, the central main device can subscribe to the first type of resource conversion rate in the first distributed message queue from the message data processing node.
[0095] It is understandable that if a first resource processing service component (also known as an internal quotation service component, internal processing service component, etc.) is deployed on the first principal device corresponding to the first principal, then the first principal device, acting as the central principal device, subscribes to topic publication information associated with the first business topic from the distributed message data processing system through the first resource processing service component. The topic publication information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic. It is also understood that the topic publication information associated with the first business topic contains the first business quotation sheet containing the first type of resource conversion rate, i.e., the first type of resource conversion rate exists.
[0096] Therefore, the central master device generates a first resource subscription request for subscribing to the first business topic through the first resource processing service component; it sends the first resource subscription request to the message data processing node, so that when the message data processing node has a first type resource conversion rate for a transaction resource pair associated with the first business topic in the topic publication information stored in the first distributed message queue, it distributes the first type resource conversion rate to the central master device based on the first business topic. This can be done by the central master device sending the request to the message data processing node configured with the first distributed message queue, or by the central master device sending the request to the message data processing node corresponding to the central master device, which then forwards it to the message data processing node configured with the first distributed message queue, enabling the message data processing node configured with the first distributed message queue to distribute the first type resource conversion rate from the first distributed message queue to the central master device. It can be understood that when the message data processing node distributes the first type resource conversion rate, it distributes the first business quotation containing the first type resource conversion rate to the central master device. It is understandable that after the central master device subscribes to the topic publication information stored in the first distributed message queue from the message data processing node, when the message data processing node determines that the topic publication information stored in the first distributed message queue contains a first type of resource conversion rate, it retrieves the first type of resource conversion rate from the topic publication information stored in the first distributed message queue and sends it to the central master device. It is also understandable that the central master device can receive the first type of resource conversion rate sent by one or more message data processing nodes based on the first distributed message queue and process the first type of resource conversion rate uniformly.
[0097] In other words, among the multiple principal devices corresponding to multiple principals associated with the first business object, the principal device that deploys the first resource processing service component is the central principal device, which is used to subscribe to the first type of resource conversion rate from the distributed message data processing system. This enables the aggregation and unified processing of the external resource conversion rates obtained by the principal devices corresponding to multiple principals through the accessed second business object, eliminating data isolation between different principals.
[0098] S102. Obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object, and perform resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme.
[0099] In some embodiments, when the central main equipment receives the first type of resource conversion rate, it can perform internal unified processing to obtain an internal resource conversion rate that can be used by the first business object to quote external resources. This processing of the first type of resource conversion rate may involve adding a risk premium to it, thereby achieving global risk pricing control. Specifically, determining the internal resource conversion rate associated with the second business theme may involve: obtaining the target time period indicated by the resource processing strategy through the first resource processing service component; obtaining the resource volatility of the first type of resource conversion rate within the target time period; determining the conversion rate volatility value corresponding to the first type of resource conversion rate based on the first type of resource conversion rate and the resource volatility, and using the conversion rate volatility value corresponding to the first type of resource conversion rate as a resource conversion parameter; and superimposing the resource conversion parameter onto the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme. For example, if the resource volatility of a trading resource pair (A) is 5% within 3 hours and the conversion rate of the first type of resource is 8, the product of the first type of resource conversion rate and the resource volatility can be used as the conversion rate volatility value corresponding to the first type of resource conversion rate (5% * 8 = 0.4). Adding this resource conversion parameter to the first type of resource conversion rate yields the internal resource conversion rate corresponding to the first type of resource conversion rate (8 + 0.4 = 8.4), which is the internal resource conversion rate of the trading resource pair (A). It can be understood that the higher the resource volatility, the higher the risk of a particular trading resource pair, and thus the greater the risk premium, allowing any entity to adjust the resource conversion rate used when quoting prices for a particular trading resource pair.
[0100] Optionally, determining the internal resource conversion rate associated with the second business theme can also specifically involve: obtaining the target time period indicated by the resource processing strategy through the first resource processing service component, obtaining the transaction processing volume of the transaction resource pair corresponding to the first type of resource conversion rate within the target time period, obtaining the conversion rate superposition value corresponding to the transaction processing volume, and superimposing the resource conversion parameters onto the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme. Here, the transaction processing volume refers to the sum of the number of transactions in the first transaction direction and the number of transactions in the second transaction direction for the transaction resource pair corresponding to the first type of resource conversion rate within the target time period. It can be understood that a higher transaction processing volume indicates more buy and sell transactions for the transaction resource pair corresponding to the first type of resource conversion rate, which may increase transaction risks, such as a potentially higher order cancellation rate. This will also affect the fluctuation of the resource conversion rate of the transaction resource pair; therefore, processing can be performed based on the transaction processing volume. The correspondence between different transaction processing volumes and the conversion rate superposition value can be set by relevant business personnel based on experience. In other words, a separate price increase can be made using the resource processing strategy used for business operations before offering a quote to the customer.
[0101] Optionally, since multiple first-type resource conversion rates are stored in the same first distributed message queue, and the central main device can obtain first-type resource conversion rates from multiple first distributed message queues from multiple message data processing nodes, the first-type resource conversion rates can be filtered before obtaining them from the first distributed message queue. It can be understood that the first-type resource conversion rates in the topic publication information stored in the first distributed message queue are the resource conversion rates in the first business quotation provided by the second business object; the first business quotation is obtained by the terminal device associated with the second business object after receiving the resource inquiry request sent by the second entity for the transaction resource pair.
[0102] Therefore, before obtaining resource conversion parameters from the resource data processing strategy associated with the second business topic of the first business object, it is also possible to: when the message acquisition time corresponding to the first resource processing service component is the first message acquisition time, use the first type of resource conversion rate obtained from the first distributed message queue as the resource conversion rate to be processed, and use the first business timestamp corresponding to the first type of resource conversion rate as the second comparison timestamp corresponding to the resource conversion rate to be processed; the first business timestamp corresponding to the first type of resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the acquired resource inquiry request; in the message acquisition time corresponding to the first resource processing service component, use the message acquisition time obtained before the first message acquisition time as At the second message acquisition time, the second historical resource conversion rate obtained from the first distributed message queue at the second message acquisition time is used as the second reference resource conversion rate, and the first business timestamp corresponding to the second historical resource conversion rate is used as the second reference timestamp. The second historical resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair. One second message acquisition time corresponds to one second historical resource conversion rate. The second reference timestamp is compared with the second comparison timestamp to obtain the second timestamp comparison result. If the second timestamp comparison result indicates that the second reference timestamp is less than or equal to the second comparison timestamp, then the step of obtaining resource conversion parameters from the resource data processing strategy associated with the second business topic of the first business object is executed.
[0103] This can be understood as the moment when the second historical resource conversion rate is obtained before the first message acquisition moment. The second historical resource conversion rate refers to a resource conversion rate of the same type as the resource conversion rate to be processed; that is, the transaction resource pair corresponding to the second historical resource conversion rate is the same as the transaction resource pair corresponding to the resource conversion rate to be processed. For example, if the exchange rate information between USD and RMB is obtained at the first message acquisition moment, the moment when this exchange rate information is obtained before the first message acquisition moment is considered the second message acquisition moment. Each time a second historical resource conversion rate is obtained, its corresponding acquisition moment is considered a second message acquisition moment. Therefore, one second message acquisition moment corresponds to one second historical resource conversion rate. Optionally, the second historical resource conversion rate subscribed from the first distributed message queue at each second message acquisition time can be used as the second reference resource conversion rate. Alternatively, the maximum second message acquisition time can be obtained, and the second historical resource conversion rate subscribed from the first distributed message queue at that maximum second message acquisition time can be used as the second reference resource conversion rate. In this case, the first business timestamp corresponding to the second historical resource conversion rate can be used as the second reference timestamp, and the second reference timestamp can be compared with the second comparison timestamp. If (all) second reference timestamps are less than or equal to the second comparison timestamp, it means that the resource conversion rate to be processed at this time is the latest resource conversion rate among the resource conversion rates subscribed to for the transaction resource pair, and the resource conversion rate to be processed can be internally processed. This ensures that when the central main device subscribes to the first type of resource conversion rate from the first distributed message queue, it subscribes to the latest first type of resource conversion rate.
[0104] Optionally, the second comparison timestamp can be used as the second maximum business timestamp associated with the transaction resource pair corresponding to the pending resource conversion rate. When the resource conversion rate of the transaction resource pair is subscribed to again (i.e., the new pending resource conversion rate), the business timestamp corresponding to the new pending resource conversion rate (i.e., the new second comparison timestamp) can be compared with the second maximum business timestamp associated with the transaction resource pair corresponding to the pending resource conversion rate. If the second comparison timestamp is greater than or equal to the second maximum business timestamp, the new pending resource conversion rate is processed. Simultaneously, the second maximum business timestamp associated with the transaction resource pair can be updated based on the business timestamp corresponding to the new pending resource conversion rate. The above process can be executed each time a first-type resource conversion rate of any transaction resource pair is subscribed to, ensuring that the latest first-type resource conversion rate is subscribed to.
[0105] For example, such as Figure 5 As shown, Figure 5This is a schematic diagram of a scenario for filtering resource conversion rates provided in an embodiment of this application. Taking the transaction resource pair as USD and RMB as an example, the subscribed resource conversion rate is the exchange rate information between USD and RMB. When the message acquisition time (i.e., the message acquisition timeline) corresponding to the first resource processing service component is displayed as the first message acquisition time T1, the exchange rate information 1 between USD and RMB is received. Exchange rate information 1 is used as the resource conversion rate to be processed, and the first business timestamp (timestamp P1) corresponding to exchange rate information 1 is the second comparison timestamp corresponding to the resource conversion rate to be processed. Before the first message acquisition time, the subscribed USD and RMB... The historical exchange rate information between currencies is used as the second message acquisition time (T2, T3, ..., Tx; T2≥T3≥...≥Tx). At this time, the historical exchange rate information (exchange rate information 2, exchange rate information 3, ..., exchange rate information x) is the second reference resource conversion rate. The first business timestamp corresponding to the historical exchange rate information is the second reference timestamp (timestamps P2, P3, ..., Px; P2=19:32, P3=19:31, ..., Px=19:28). Alternatively, the first business timestamp corresponding to the historical exchange rate information at the maximum second resource acquisition time (T2) can be used as the second reference timestamp. (Timestamp P2; P2 = 19:32), if the second reference timestamp is less than or equal to the second comparison timestamp (timestamp P1 = 19:33, e.g., P2 < P1), then exchange rate information 1 is considered to be the latest exchange rate information between USD and RMB, and is processed to obtain the internal exchange rate information corresponding to exchange rate information 1, and uploaded to the message data processing node; if any second reference timestamp is greater than the second comparison timestamp (timestamp P1 = 19:31, e.g., P2 > P1), then exchange rate information 1 is filtered; optionally, the first business timestamp corresponding to exchange rate information 1 can be used as the exchange rate information between USD and RMB. The second maximum business timestamp associated with RMB is determined when, after the first message acquisition time, the exchange rate information Y between USD and RMB is subscribed to again, the first business timestamp corresponding to the exchange rate information Y is compared with the aforementioned second maximum business timestamp. If the first business timestamp is greater than or equal to the second maximum business timestamp, then the exchange rate information Y is considered to be the latest exchange rate information between USD and RMB, and it is processed. At the same time, the second maximum business timestamp associated with USD and RMB can be updated using the first business timestamp corresponding to the exchange rate information Y, thus obtaining the updated first maximum business timestamp associated with USD and RMB.
[0106] S103. Based on the second business theme, upload the internal resource conversion rate to the message data processing node.
[0107] Specifically, the message data processing node can use the acquired internal resource conversion rate as the second type of resource conversion rate for the transaction resource pair based on the second business theme. This second type of resource conversion rate is used to uniformly provide resource quotes to multiple entities. In other words, multiple entities can simultaneously obtain this second type of resource conversion rate to submit resource quotes. This allows multiple entities to share high-quality resource conversion rates, that is, to share high-quality resource conversion rates provided by external price sources (i.e., share high-quality price sources), thereby improving the quality of resource quotes from multiple entities.
[0108] This means that the uploaded internal resource conversion rate carries a second business topic. Based on this second business topic, the acquired internal resource conversion rate can be distributedly uploaded to one or more message data processing nodes. Each of these message data processing nodes is configured with a second distributed message queue for storing the internal resource conversion rate. The business topic corresponding to this second distributed message queue is the second business topic. This second business topic is configured for the second type of resource conversion rate; for example, it could be "internal resource source," "internal resource conversion rate," etc., and this can be specifically set by relevant business personnel. The first and second distributed message queues can coexist in the same message data processing node.
[0109] It is understood that among the multiple entities associated with the first business object, there may be entity devices that have deployed a third resource processing service component (customer quotation service component). This entity device with the third resource processing service component can subscribe to the second type of resource conversion rate in the second distributed message queue from the message data processing node. Thus, the quotation query object (such as a user) can generate a resource quotation request and send it to the entity device with the third resource processing service component. The entity device with the third resource processing service component then performs a resource quotation based on the second type of resource conversion rate subscribed from the second distributed message queue and returns the determined resource quotation information to the quotation query object. The specific process executed by the entity device with the third resource processing service component through the third resource processing service component can be found in the relevant description of the following embodiments.
[0110] It is understood that the third resource processing service component can be deployed on any principal device, such as the first principal device or one or more second principal devices. Within a second principal device, some principal devices may deploy the second resource processing service component, some may deploy the third resource processing service component, or all principal devices may deploy both. There is no limitation on the type of service component deployed on multiple principal devices corresponding to multiple principals associated with the first business object. It is understood that the principal device deploying the second resource processing service component is used to access the second business object to obtain external resource conversion rates and upload them to the distributed message data processing system based on the first business topic. The principal device deploying the first resource processing service component is used to subscribe to the first type of resource conversion rate from the distributed message data processing system, process it to obtain an internal resource conversion rate, and upload it to the distributed message data processing system based on the second business topic. The principal device deploying the third resource processing service component is used to subscribe to the second type of resource conversion rate from the distributed message data processing system and use the second type of resource conversion rate for resource bidding.
[0111] For example, such as Figures 6-8 As shown, Figures 6-8 This is a schematic diagram of a resource pricing scenario provided in an embodiment of this application; wherein, as Figure 6The second principal device (D1, D2) corresponding to the second principal associated with the first business object is equipped with a second resource processing service component and a third resource processing service component. The first principal device D3 (i.e., the central principal device) corresponding to the first principal associated with the first business object is equipped with a first resource processing service component. The second business object 1 is the external price source accessed by the second principal device D1 corresponding to the second principal. The second business object 2 and the second business object 3 are the external price sources accessed by the second principal device D2 corresponding to the second principal. Therefore: S611, the second entity device D1 corresponding to the second entity sends a resource inquiry request 1 for the transaction resource pair to the terminal device associated with the second business object 1 through the second resource processing service component; S612, the second entity device D2 corresponding to the second entity sends a resource inquiry request 2 for the transaction resource pair to the terminal device associated with the second business object 2 through the second resource processing service component; S613, the second entity device D2 corresponding to the second entity sends a resource inquiry request 3 for the transaction resource pair to the terminal device associated with the second business object 3 through the second resource processing service component; S621, the terminal device associated with the second business object 1 issues a resource conversion rate 1 for the transaction resource pair based on the resource inquiry request 1; S622, the terminal device associated with the second business object 2 issues a resource conversion rate 2 for the transaction resource pair based on the resource inquiry request 2; S623, the terminal device associated with the second business object 3 issues a resource conversion rate 3 for the transaction resource pair based on the resource inquiry request 3; S631, the second entity device D1 corresponding to the second entity sends the received resources... Conversion rate 1 is used as external resource conversion rate 1 and uploaded to the message data processing node in the distributed message data processing system (including multiple message data processing nodes); S632, the second subject device D2 corresponding to the second subject uses the received resource conversion rate 2 and resource conversion rate 3 as external resource conversion rate 2 and uploads the external resource conversion rate 2 to the message data processing node in the distributed message data processing system (including multiple message data processing nodes); at this time, the message data processing node uses external resource conversion rate 1-2 as the first type of resource conversion rate and enqueues it into the first distributed message queue corresponding to the first business topic (for example, it can adopt the first-in-first-out direction); S64, after the first subject device D3 corresponding to the first subject subscribes to the first type of resource conversion rate from the distributed message data processing system through the first resource processing service component, the distributed message data processing system sends the first type of resource conversion rate existing in the first distributed message queue corresponding to the first business topic to the first subject device D3 corresponding to the first subject;S65. The first principal device D3, corresponding to the first principal, processes the first type of resource conversion rate through the first resource processing service component to obtain the internal resource conversion rate corresponding to the first type of resource conversion rate, and uploads the internal resource conversion rate to the message data processing node in the distributed message data processing system through the first resource processing service component; at this time, the message data processing node uses the internal resource conversion rate as the second type of resource conversion rate and enqueues it into the second distributed message queue corresponding to the second business topic (for example, it can adopt the first-in-first-out direction); S661. After the second principal device D1, corresponding to the second principal, subscribes to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component, the distributed message data processing system will enqueue the first type of resource conversion rate existing in the second distributed message queue corresponding to the second business topic. The two types of resource conversion rates are respectively distributed to the second principal device D1 corresponding to the second principal; S662, after the second principal device D2 and the second principal device D2 subscribe to the second type of resource conversion rates from the distributed message data processing system through the third resource processing service component, the distributed message data processing system distributes the second type of resource conversion rates existing in the second distributed message queue corresponding to the second business topic to the second principal device D2 corresponding to the second principal; subsequently, when the quotation query object (such as user, merchant, enterprise, etc.) in the location of the second principal device D1 generates a resource quotation request for the business transaction and sends it to the second principal device D1 corresponding to the second principal, the second principal device D1 can make a resource quotation based on the subscribed second type of resource conversion rate through the third resource processing service component.
[0112] For example, such as Figure 7 When the above Figure 6When the first entity device D3 corresponding to the first entity shown is also deployed with a third resource processing service component: S711, the second entity device D1 corresponding to the second entity sends a resource inquiry request 1 for the transaction resource pair to the terminal device associated with the second business object 1 through the second resource processing service component; S712, the second entity device D2 corresponding to the second entity sends a resource inquiry request 2 for the transaction resource pair to the terminal device associated with the second business object 2 through the second resource processing service component; S713, the second entity device D2 corresponding to the second entity sends a resource inquiry request 3 for the transaction resource pair to the terminal device associated with the second business object 3 through the second resource processing service component; S7 21. The terminal device associated with the second business object 1 issues a resource conversion rate 1 for the transaction resource pair based on resource inquiry request 1; S722. The terminal device associated with the second business object 2 issues a resource conversion rate 2 for the transaction resource pair based on resource inquiry request 2; S723. The terminal device associated with the second business object 3 issues a resource conversion rate 3 for the transaction resource pair based on resource inquiry request 3; S731. The second main device D1 corresponding to the second main body takes the received resource conversion rate 1 as the external resource conversion rate 1 and uploads the external resource conversion rate 1 to the message data processing node in the distributed message data processing system (including multiple message data processing nodes); S732. The second main device D1 corresponding to the second main body The main device D2 takes the received resource conversion rates 2 and 3 as external resource conversion rate 2 and uploads it to the message data processing nodes in the distributed message data processing system (including multiple message data processing nodes). At this time, the message data processing nodes take external resource conversion rates 1-2 as the first type of resource conversion rate and enqueue them into the first distributed message queue corresponding to the first business topic (for example, it can adopt the first-in-first-out direction). S74, after the first main device D3 corresponding to the first main device subscribes to the first type of resource conversion rate from the distributed message data processing system through the first resource processing service component, the distributed message data processing system will send the first business topic to the first distributed message queue. The first type of resource conversion rate existing in the first distributed message queue corresponding to the topic is sent to the first subject device D3 corresponding to the first subject; S75, the first subject device D3 corresponding to the first subject processes the first type of resource conversion rate through the first resource processing service component to obtain the internal resource conversion rate corresponding to the first type of resource conversion rate, and uploads the internal resource conversion rate to the message data processing node in the distributed message data processing system through the first resource processing service component; at this time, the message data processing node uses the internal resource conversion rate as the second type of resource conversion rate and enqueues it into the second distributed message queue corresponding to the second business topic (for example, it can adopt the first-in-first-out direction).S761. After the second main device D1 subscribes to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component, the distributed message data processing system sends the second type of resource conversion rate existing in the second distributed message queue corresponding to the second business topic to the second main device D1; S762. After the second main device D2 subscribes to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component, the distributed message data processing system sends the second type of resource conversion rate existing in the second distributed message queue corresponding to the second business topic to the second main device D2; S763. The first main device... After backup device D3 subscribes to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component, the distributed message data processing system distributes the second type of resource conversion rates existing in the second distributed message queue corresponding to the second business topic to the first principal device D3. Subsequently, when a quotation query object (such as a user, merchant, enterprise, etc.) in the location of the second principal device D1 corresponding to the second principal generates a resource quotation request for a business transaction and sends it to the second principal device D1 corresponding to the second principal, the second principal device D1 can perform resource quotation based on the subscribed second type of resource conversion rate through the third resource processing service component.
[0113] For example, such as Figure 8 When the above Figure 7When the first principal device D3 corresponding to the first principal shown also has a second resource processing service component deployed: the second business object 4 is an external price source accessed by the first principal device D3 corresponding to the first principal; therefore: S811, the second principal device D1 corresponding to the second principal sends a resource inquiry request 1 for the transaction resource pair to the terminal device associated with the second business object 1 through the second resource processing service component; S812, the second principal device D2 corresponding to the second principal sends a resource inquiry request 2 for the transaction resource pair to the terminal device associated with the second business object 2 through the second resource processing service component; S813, the second principal device D2 corresponding to the second principal sends a resource inquiry request 2 for the transaction resource pair to the terminal device associated with the second business object 2 through the second resource processing service component. S814. The terminal device associated with business object 3 sends a resource inquiry request 3 for the transaction resource pair; S821. The first entity device D3 corresponding to the first entity sends a resource inquiry request 4 for the transaction resource pair to the terminal device associated with the second business object 4 through the second resource processing service component; S822. The terminal device associated with the second business object 1 issues a resource conversion rate 1 for the transaction resource pair based on the resource inquiry request 1; S823. The terminal device associated with the second business object 2 issues a resource conversion rate 2 for the transaction resource pair based on the resource inquiry request 2; S824. The second business object 3 sends a resource conversion rate 3 for the transaction resource pair based on the resource inquiry request 3; S825. The second business object 4 sends a resource inquiry request 3 for the transaction resource pair. The terminal device associated with Elephant 4 issues a resource conversion rate 4 for the transaction resource pair based on resource inquiry request 4; S831, the second principal device D1 corresponding to the second principal takes the received resource conversion rate 1 as the external resource conversion rate 1 and uploads the external resource conversion rate 1 to the message data processing node in the distributed message data processing system (including multiple message data processing nodes); S832, the second principal device D2 corresponding to the second principal takes the received resource conversion rate 2 and resource conversion rate 3 as the external resource conversion rate 2 and uploads the external resource conversion rate 2 to the message data processing node in the distributed message data processing system; S833, the first principal device D3 takes the received resource conversion rate 4 as the external resource conversion rate 4... The external resource conversion rate is 3, and the external resource conversion rate 3 is uploaded to the message data processing node in the distributed message data processing system. At this time, the message data processing node takes the external resource conversion rates 1-3 as the first type of resource conversion rate and enqueues them into the first distributed message queue corresponding to the first business topic (for example, it can adopt the first-in-first-out direction). S84, after the first subject device D3 corresponding to the first subject subscribes to the first type of resource conversion rate from the distributed message data processing system through the first resource processing service component, the distributed message data processing system sends the first type of resource conversion rate existing in the first distributed message queue corresponding to the first business topic to the first subject device D3 corresponding to the first subject.S85. The first principal device D3, corresponding to the first principal, processes the first type of resource conversion rate through the first resource processing service component to obtain the internal resource conversion rate corresponding to the first type of resource conversion rate, and uploads the internal resource conversion rate to the message data processing node in the distributed message data processing system through the first resource processing service component; at this time, the message data processing node uses the internal resource conversion rate as the second type of resource conversion rate and enqueues it into the second distributed message queue corresponding to the second business topic (for example, it can adopt the first-in-first-out direction); S861. After the second principal device D1 subscribes to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component, the distributed message data processing system distributes the second type of resource conversion rates existing in the second distributed message queue corresponding to the second business topic to the second principal device D1; S862. The second principal device D2 distributes the second type of resource conversion rate through the third resource processing service component. After S863 and S864 respectively subscribe to the second type of resource conversion rate from the distributed message data processing system, the distributed message data processing system distributes the second type of resource conversion rate existing in the second distributed message queue corresponding to the second business topic to the second principal device D2; after S863 and S864 respectively subscribe to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component, the distributed message data processing system distributes the second type of resource conversion rate existing in the second distributed message queue corresponding to the second business topic to the first principal device D3; subsequently, when the quotation query object (such as user, merchant, enterprise, etc.) at the location of the second principal device D1 corresponding to the second principal generates a resource quotation request for the business transaction and sends it to the second principal device D1 corresponding to the second principal, the second principal device D1 corresponding to the second principal can make a resource quotation based on the subscribed second type of resource conversion rate through the third resource processing service component.
[0114] In this embodiment, the second entity device corresponding to the second subject (e.g., the subject) associated with the first business object (e.g., institution A) can obtain the first external resource conversion rate (i.e., the resource conversion rate provided by the external business object) from the accessed second business object (e.g., other institutions besides institution A that can provide resource conversion rates, such as offshore institutions, other institutions, etc. It can be understood that the second business object can be called the external business object of the first business object, or an external price source, external resource conversion rate provider, etc.). Based on the first business topic, it uploads this to the message data processing node in the distributed message data processing system. The message data processing node can then issue a first type of resource conversion rate, including the first external resource conversion rate, to the central entity device based on the first business topic. This central entity device is the first entity device corresponding to the first subject associated with the first business object (which can be a subject under institution A or a newly created subject). This allows for the aggregation of external resource conversion rates obtained by multiple subjects, removing data isolation between external resource conversion rates obtained by different subjects. When the central entity device receives this first type of resource conversion rate, it can process the resource data associated with the second business topic of the first business object. The strategy obtains resource conversion parameters and processes the first type of resource conversion rate based on these parameters to obtain an internal resource conversion rate associated with the second business theme. This internal resource conversion rate is essentially a unified processing of the first type of resource conversion rate to obtain the internal resource conversion rate provided by the first business object. Based on the second business theme, the internal resource conversion rate is uploaded to the message data processing node. The message data processing node can then use this internal resource conversion rate as the second type of resource conversion rate for the transaction resource pair. This second type of resource conversion rate is used to uniformly provide resource quotes to multiple entities. This allows multiple entities associated with the first business object (the first entity and the second entity) to share the same resource conversion rate. In other words, the resource conversion rate obtained by any entity through the accessed second business object can be used by other entities. Similarly, the internal resource conversion rate corresponding to the external resource conversion rate obtained by one entity can be obtained and used by another entity. All entities within the same organization can share and provide the same resource quote. Therefore, in scenarios with multiple entities associated with the same organization, the resource quotes of each entity can be optimized, thereby improving the quality of resource quotes from different entities.
[0115] For further details, please see Figure 9 , Figure 9 This is a flowchart illustrating a resource data processing method provided in an embodiment of this application, such as... Figure 9As shown, the method can be executed by the aforementioned central entity device (the first entity device corresponding to the first entity associated with the first business object). For example, the central entity device can be the one described above. Figure 1 Any one server in the server cluster 200 shown. The method may specifically include the following steps S201-S205:
[0116] S201, Receive message data processing node based on the first business theme and the first type of resource conversion rate of the transaction resource pair associated with the first subject.
[0117] S202: Obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object; perform resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme. The specific implementation methods of steps S201-S202 can be found in the relevant descriptions of the above embodiments, and will not be repeated here.
[0118] S203. Based on the second business theme, upload the internal resource conversion rate to the message data processing node.
[0119] It can be understood that the internal resource conversion rate is uploaded to the message data processing node in the form of a business quotation. Therefore, it could be as follows: a second business quotation corresponding to the internal resource conversion rate is generated; the second business quotation contains a second business timestamp corresponding to the internal resource conversion rate; the second business timestamp is the first business timestamp corresponding to the external resource conversion rate corresponding to the internal resource conversion rate; based on the second business topic, the second business quotation is uploaded to the message data processing node, so that the message data processing node adds the second business quotation to the second distributed message queue. The uploaded second business quotation carries the second business topic. This can be done by uploading to the message data processing node upon detecting a second business quotation, or by uploading second business quotations generated at regular intervals. The principle for uploading the first business quotation to the message data processing node is the same. In other words, the presence of a second business quotation in the topic publication information stored in the second distributed message queue is equivalent to the presence of a second type of resource conversion rate.
[0120] S204, Receive message data processing node based on the second business theme, the second type of resource conversion rate of the transaction resource pair associated with the first subject.
[0121] Wherein, if a third resource processing service component is deployed on the first principal device corresponding to the first principal, then the first principal device, acting as the central principal device, subscribes to topic publication information associated with the second business topic from the distributed message data processing system through the third resource processing service component. The topic publication information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic. It can be understood that when the second principal device also deploys the third resource processing service component, the process of subscribing to topic publication information associated with the second business topic from the distributed message data processing system is similar. Here, the process of the first principal device subscribing to topic publication information associated with the second business topic is used as an example for explanation.
[0122] Therefore, the second type of resource conversion rate of the transaction resource pair associated with the first subject sent by the message data processing node can be: generating a second resource subscription request for subscribing to the second business topic through the third resource processing service component; sending the second resource subscription request to the message data processing node, so that when the message data processing node has a second type of resource conversion rate of the transaction resource pair associated with the second business topic in the topic publication information stored in the second distributed message queue, it sends the second type of resource conversion rate to the central subject device based on the second business topic.
[0123] It is understandable that among the multiple principal devices corresponding to the multiple principals associated with the first business object, the principal devices that have deployed the third resource processing service component will all perform the above process, that is, subscribe to the second type of resource conversion rate of the transaction resource pair associated with the principal (first principal, second principal) from the distributed message data processing system.
[0124] It is understandable that when the message data processing node issues the second type of resource conversion rate, it issues the second business quotation containing the second type of resource conversion rate to the central master device deployed with the third resource processing service component. It is also understandable that after the central master device subscribes to the topic publication information stored in the second distributed message queue from the message data processing node, the message data processing node, upon determining that the second type of resource conversion rate exists in the topic publication information stored in the second distributed message queue, retrieves the second type of resource conversion rate from the topic publication information stored in the second distributed message queue and issues it to the central master device. Furthermore, it is understandable that the central master device can receive the second type of resource conversion rate issued by one or more message data processing nodes based on the second distributed message queue. This can be achieved by the central master device sending the second resource subscription request to the message data processing node configured with the second distributed message queue, or by the central master device sending the second resource subscription request to the message data processing node corresponding to the central master device, which then forwards it to the message data processing node configured with the second distributed message queue, enabling the message data processing node configured with the second distributed message queue to issue the second type of resource conversion rate from the second distributed message queue to the central master device.
[0125] Therefore, the central main device can, through the third resource processing service component, receive the second type of resource conversion rate from the message data processing node when a transaction resource pair associated with the first main device exists in the topic publication information stored in the second distributed message queue. Based on the second type of resource conversion rate issued by the second business topic, the central main device adds the received second type of resource conversion rate to the resource cache associated with the first main device. It can be understood that each main device deployed with the third resource processing service component will add the received second type of resource conversion rate issued by the message data processing node based on the second business topic to its respective associated resource cache.
[0126] S205. When a resource quotation request for a business transaction is received from a quotation query object, the transaction resource pair associated with the business transaction is taken as the target transaction resource pair. Based on the second type of resource conversion rate of the target transaction resource pair, the resource quotation conversion rate used to provide a quotation to the quotation query object is determined.
[0127] The central main equipment can perform resource quotations through a third resource processing service component. For example, based on the second type resource conversion rate of the target transaction resource pair, the resource quotation conversion rate used to provide quotations to the quotation query object can be determined by: obtaining the second type resource conversion rate of the target transaction resource pair from the resource cache through the third resource processing service component, and obtaining the second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair; obtaining the first maximum business timestamp from the second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair, and using the second type resource conversion rate corresponding to the first obtained maximum business timestamp as the target second type resource conversion rate; and determining the resource quotation conversion rate used to provide quotations to the quotation query object based on the target second type resource conversion rate and the resource quotation provision strategy associated with the business transaction. The business transaction can be an item purchase transaction, a virtual resource purchase transaction, or any transaction related to the exchange of different types of resources, such as a buy-sell transaction of a certain type of resource in the transaction resource pair. This resource quotation request is used to indicate the transaction resource pair to be queried and the specific business transaction information to be queried.
[0128] It is understandable that, due to the timeliness of resource conversion rates, the most up-to-date resource conversion rate can be considered the current optimal resource conversion rate. It is also understandable that the latest resource conversion rate is the one corresponding to the largest business timestamp obtained from the second business timestamp of the second type of resource conversion rate for the target transaction resource pair. Therefore, the resource quotation conversion rate used to provide quotations to the quotation query object can be determined based on the resource quotation provision strategy associated with the business transaction. For example, if the business transaction is a sale transaction of the first type of resource in the target transaction resource pair, it can be determined whether to increase the selling quotation rate of the first type of resource in the target second type of resource conversion rate based on the resource quotation provision strategy associated with the business transaction. Furthermore, if there are multiple target second type resource conversion rates, the optimal target second type resource conversion rate can be determined based on the resource quotation provision strategy associated with the business transaction to determine the resource quotation conversion rate. The resource quotation provision strategy can be configured by relevant business personnel according to the actual scenario. It is also understandable that the central main equipment can generate resource quotation information corresponding to the resource quotation conversion rate and return it to the quotation query object.
[0129] Optionally, since multiple second-type resource conversion rates are stored in the same second distributed message queue, and the central main device can obtain second-type resource conversion rates from multiple second distributed message queues from multiple message data processing nodes, before adding the received second-type resource conversion rate to the resource cache, it is also possible to: when the quote acquisition time corresponding to the third resource processing service component is the first quote acquisition time, use the second-type resource conversion rate obtained from the second distributed message queue as the resource conversion rate to be cached, and use the second business timestamp corresponding to the second-type resource conversion rate as the third comparison timestamp corresponding to the resource conversion rate to be cached; in the quote acquisition time corresponding to the third resource processing service component, use the quote acquisition time obtained before the first quote acquisition time as the second quote acquisition time, and use the second business timestamp corresponding to the second business timestamp to be compared with the resource conversion rate at the second quote acquisition time. The third historical resource conversion rate obtained is used as the third reference resource conversion rate, and the second business timestamp corresponding to the third historical resource conversion rate is used as the third reference timestamp. The third historical resource conversion rate is the internal resource conversion rate provided by the first business object for the transaction resource pair. One second message acquisition time corresponds to one third historical resource conversion rate. The third reference timestamp is compared with the third comparison timestamp to obtain the third timestamp comparison result. If the third timestamp comparison result indicates that the third reference timestamp is less than or equal to the third comparison timestamp, then the step of adding the received second type of resource conversion rate to the resource cache is executed. It can be understood that the process executed by the second main device with the third resource processing service component is the same as the description of the execution process of the central main device.
[0130] This can be understood as the moment when the third historical resource conversion rate is obtained before the first quote acquisition moment being defined as the second quote acquisition moment. The third historical resource conversion rate refers to a resource conversion rate of the same type as the conversion rate of the resource to be cached; that is, the transaction resource pair corresponding to the third historical resource conversion rate is the same as the transaction resource pair corresponding to the conversion rate of the resource to be cached. For example, if the exchange rate information between USD and CNY is obtained at the first quote acquisition moment, the moment when this exchange rate information is obtained before the first quote acquisition moment is defined as the second quote acquisition moment. Each time a third historical resource conversion rate is obtained, its corresponding acquisition moment is considered a third message acquisition moment. Therefore, one second quote acquisition moment corresponds to one third historical resource conversion rate. Optionally, the third historical resource conversion rate subscribed from the second distributed message queue at each second quote acquisition time can be used as the third reference resource conversion rate. Alternatively, the third historical resource conversion rate subscribed from the second distributed message queue at the maximum second quote acquisition time can be used as the third reference resource conversion rate. In this case, the second business timestamp corresponding to the third historical resource conversion rate can be used as the third reference timestamp. The third reference timestamp is compared with the third comparison timestamp. If (all) third reference timestamps are less than or equal to the third comparison timestamp, it means that the received cached resource conversion rate is the latest cached resource conversion rate among the subscribed resource conversion rates for the transaction resource pair. Then, the cached resource conversion rate can be cached. This ensures that when the central main device subscribes to the second type of resource conversion rate from the second distributed message queue, it subscribes to the latest second type of resource conversion rate.
[0131] Optionally, the third comparison timestamp can be used as the third maximum business timestamp associated with the transaction resource pair corresponding to the resource conversion rate to be cached. When the resource conversion rate of the transaction resource pair is subscribed to again (i.e., the new resource conversion rate to be cached), the business timestamp corresponding to the new resource conversion rate to be cached (i.e., the new third comparison timestamp) can be compared with the third maximum business timestamp associated with the transaction resource pair corresponding to the resource conversion rate to be cached. If the third comparison timestamp is greater than or equal to the third maximum business timestamp, the new resource conversion rate to be cached is processed. At the same time, the third maximum business timestamp associated with the transaction resource pair can be updated based on the business timestamp corresponding to the new resource conversion rate to be cached. The above process can be executed every time the second type of resource conversion rate of any transaction resource pair is subscribed to, so that the latest second type of resource conversion rate is subscribed to. That is, the latest second type of resource conversion rate is cached.
[0132] For example, taking a transaction resource pair of USD and RMB as an example, the subscribed resource conversion rate is the exchange rate information between USD and RMB. When the quote acquisition time corresponding to the third resource processing service component is displayed as the first quote acquisition time, the exchange rate information 1 between USD and RMB is received. Exchange rate information 1 is used as the resource conversion rate to be cached, and the second business timestamp corresponding to exchange rate information 1 is the third comparison timestamp corresponding to the resource conversion rate to be cached. The time when the historical exchange rate information between USD and RMB is subscribed before the first quote acquisition time is used as the second quote acquisition time. At this time, the historical exchange rate information is the third reference resource conversion rate, and the second business timestamp corresponding to the historical exchange rate information is the third reference timestamp. Alternatively, the second business timestamp corresponding to the historical exchange rate information at the maximum second quote acquisition time is used as the third reference timestamp. If the exchange rate information 1 is less than or equal to the third comparison timestamp, then exchange rate information 1 is considered the latest exchange rate information between USD and RMB and is cached. Optionally, the second business timestamp corresponding to exchange rate information 1 can be used as the third maximum business timestamp associated with USD and RMB. When exchange rate information 2 between USD and RMB is subscribed to again after the first quote acquisition time, the second business timestamp corresponding to exchange rate information 2 is compared with the aforementioned third maximum business timestamp. If the second business timestamp is greater than or equal to the third maximum business timestamp, then exchange rate information 2 is considered the latest exchange rate information between USD and RMB and is cached. At the same time, the third maximum business timestamp associated with USD and RMB can be updated using the second business timestamp corresponding to exchange rate information 2 to obtain the updated third maximum business timestamp associated with USD and RMB.
[0133] It is understood that the above involves each principal device, equipped with a third resource processing service component, subscribing to the second type of resource conversion rate and adding it to its respective associated resource cache. Optionally, a unified resource caching system can be added. When the message data processing node finds a transaction resource pair with a second type of resource conversion rate in the topic publication information stored in the second distributed message queue, it distributes the second type of resource conversion rate to the resource caching system associated with multiple principals based on the second business topic. The resource caching system then caches the second type of resource conversion rate subscribed to from the distributed message data processing system. It is understood that the resource caching system can cache the latest second type of resource conversion rate in the above manner. In this case, the principal devices corresponding to each principal do not need to subscribe to the second type of resource conversion rate from the distributed message data processing system.
[0134] Therefore, when making resource quotes, the target second-type resource conversion rate for resource quoting can be directly obtained from the resource caching system. For example, when a resource quote request is received from a quote query object for a business transaction, the transaction resource pair associated with the business transaction is taken as the target transaction resource pair; the quote query object is a business object used to query quotes from multiple entities; the second-type resource conversion rate of the target transaction resource pair is obtained from the resource caching system through the third resource processing service component, and the second business timestamp corresponding to the second-type resource conversion rate of the target transaction resource pair is obtained; the maximum business timestamp is obtained from the second business timestamps corresponding to the second-type resource conversion rate of the target transaction resource pair, and the second-type resource conversion rate corresponding to the obtained maximum business timestamp is taken as the target second-type resource conversion rate; based on the target second-type resource conversion rate and the resource quote provision strategy associated with the business transaction, the resource quote conversion rate used to provide quotes to the quote query object is determined.
[0135] For example, such as Figures 10-13 As shown, Figures 10-13This is a schematic diagram of a distributed resource pricing scenario provided in an embodiment of this application; taking an organization A with three entities (entity A, entity B, and entity C) as an example, each entity's corresponding entity device is equipped with a second resource processing service component and a third resource processing service component, and entity A's corresponding entity device A is equipped with a first resource processing service component, i.e., entity C is the central entity, and entity C's corresponding entity device C is the central entity device; a distributed message data processing system is established between the entities, and the distributed nodes (message data processing nodes) in this distributed message data processing system are configured with a first distributed message queue associated with a first business topic and a second distributed message queue associated with a second business topic; therefore, S3 11. Main device A accesses the associated second business object 1 through the deployed second resource processing service component. When main device A receives the resource conversion rate 1 provided by the second business object 1 through the second resource processing service component, it filters and processes it to obtain the external resource conversion rate 1; S312. Main device B accesses the associated second business object 2 through the deployed second resource processing service component. When main device B receives the resource conversion rate 2 provided by the second business object 2 through the second resource processing service component, it filters and processes it to obtain the external resource conversion rate 2; S313. Main device B accesses the associated second business object 3 through the deployed second resource processing service component. When main device B receives the resource conversion rate 2 provided by the second business object 2 through the second resource processing service component, it filters and processes it to obtain the external resource conversion rate 2; When the service component receives the resource conversion rate 3 provided by the second business object 3, it filters and processes it to obtain the external resource conversion rate 2; S314, the main device C accesses the associated second business object 4 through the deployed second resource processing service component. When the main device C receives the resource conversion rate 3 provided by the second business object 4 through the second resource processing service component, it filters and processes it to obtain the external resource conversion rate 4; S321, the main device A uploads the determined external resource conversion rate 1 to the distributed message data processing system based on the first business theme; S322, the main device B uploads the determined external resource conversion rate 2 to the distributed message data processing system based on the first business theme; S323, the main device C uploads the external resource conversion rate 2 to the distributed message data processing system based on the first business theme; The first business topic uploads the determined external resource conversion rate 3 to the distributed message data processing system; the distributed nodes (message data processing nodes) in the distributed message data processing system add the received external resource conversion rates 1-3 as the first type of resource conversion rates to the first distributed message queue (i.e., enqueuing the first type of resource conversion rate); S33, the main device C can subscribe to the first type of resource conversion rate from the distributed message data processing system through the first resource processing service component, that is, subscribe to the first business topic; S34, the distributed nodes in the distributed message data processing system send the first type of resource conversion rate in the first distributed message queue to the main device C (i.e., dequeuing the first type of resource conversion rate).
[0136] Furthermore, such as Figure 11 At this point, in S41, when the main device C obtains the first type of resource conversion rate, it can process it through the first resource processing service component to obtain the internal resource conversion rate, and upload the determined internal resource conversion rate to the distributed message data processing system based on the second business theme; the distributed nodes in the distributed message data processing system add the received internal resource conversion rate as the second type of resource conversion rate to the second distributed message queue (i.e., enqueuing the second type of resource conversion rate); in S421, the main device A can subscribe to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component, that is, subscribe to the second business theme. In other words, when any second type of resource conversion rate exists in the second distributed message queue, the main device A can subscribe to any existing second type of resource conversion rate; in S422, the main device B can subscribe to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component, that is, subscribe to the second business theme. In other words, when any second type of resource conversion rate exists in the second distributed message queue, the main device B can subscribe to any existing second type of resource conversion rate; in S423, the main device C can subscribe to the second type of resource conversion rate from the distributed message data processing system through the third resource processing service component. The distributed message data processing system subscribes to the second type of resource conversion rate, which is equivalent to subscribing to the second business topic. This means that whenever any second type of resource conversion rate exists in the second distributed message queue, the principal device C can subscribe to that existing second type of resource conversion rate. S431, the distributed nodes in the distributed message data processing system send the second type of resource conversion rate from the second distributed message queue to the principal device A (i.e., dequeueing the second type of resource conversion rate). S432, the distributed nodes in the distributed message data processing system send the second type of resource conversion rate from the second distributed message queue to the principal device B (i.e., the second type of resource conversion rate is dequeued). S433: The distributed node in the distributed message data processing system sends the second type of resource conversion rate from the second distributed message queue to the main device C (i.e., the dequeueing of the second type of resource conversion rate); S441: The main device A can cache the received second type of resource conversion rate through the third resource processing service component; S442: The main device B can cache the received second type of resource conversion rate through the third resource processing service component; S443: The main device C can cache the received second type of resource conversion rate through the third resource processing service component; Optionally, such as Figure 12Alternatively, in step S51, when the main device C obtains the internal resource conversion rate, it uploads the internal resource conversion rate to the distributed message data processing system based on the second business theme; in step S52, the resource caching system uniformly subscribes to the second type of resource conversion rate from the distributed message data processing system; in step S53, when any second type of resource conversion rate exists in the second distributed message queue, the existing second type of resource conversion rate is sent to the resource caching system for unified caching; in step S54, the main device AC can read the required second type of resource conversion rate from the resource caching system through the third resource processing service component.
[0137] like Figure 13 S911, the quotation query object corresponding to entity A sends a resource quotation request 1 for the business transaction; S912, the quotation query object corresponding to entity B sends a resource quotation request 2 for the business transaction; S913, the quotation query object corresponding to entity C sends a resource quotation request 3 for the business transaction; S921, entity device A reads the target second type resource conversion rate 1 corresponding to resource quotation request 1 from the resource cache through the third resource service processing component to determine the resource quotation conversion rate 1 used to provide a quotation to the quotation query object; S922, entity device B reads the target second type resource corresponding to resource quotation request 2 from the resource cache through the third resource service processing component. S923. Conversion rate 2 is used to determine the resource quotation conversion rate 2 used to provide a quotation to the quotation query object; S934. Main device C reads the target second type resource conversion rate 3 corresponding to resource quotation request 3 from the resource cache through the third resource service processing component to determine the resource quotation conversion rate 3 used to provide a quotation to the quotation query object; S935. Main device A returns the resource quotation information 1 corresponding to resource quotation conversion rate 1 to the quotation query object; S936. Main device B returns the resource quotation information 2 corresponding to resource quotation conversion rate 2 to the quotation query object; S937. Main device C returns the resource quotation information 3 corresponding to resource quotation conversion rate 3 to the quotation query object. Figure 13 For specific information (such as the distributed message data processing system, message data processing nodes, etc.), please refer to the above. Figures 10-12 The relevant information described in the examples involved.
[0138] In this context, it can be understood that the distributed message data processing system can be a Kafka system (a high-throughput distributed publish-subscribe messaging system), a Pulsar system (a distributed message publish / subscribe delivery platform), and so on. It can also be understood that the first distributed message queue and the second distributed message queue can belong to the same distributed message data processing system or to different distributed message data processing systems. For example, a distributed message data processing system includes a first subsystem (such as a Kafka system) and a second subsystem (such as a Pulsar system). The first subsystem (which may include multiple first distributed nodes) is used to configure a first distributed message queue for subject devices to subscribe to a first type of resource conversion rate. The second subsystem (which may include multiple second distributed nodes) is used to configure a second distributed message queue for subject devices to subscribe to a second type of resource conversion rate. That is, the subject device deploying the second resource processing service component uploads the external resource conversion rate to the first distributed node in the first subsystem, and the central subject device deploying the first resource processing service component subscribes to the first type of resource conversion rate from the first distributed node in the first subsystem and uploads the internal resource conversion rate to the second distributed node in the second subsystem. The subject device deploying the third resource processing service component subscribes to the second type of resource conversion rate from the second distributed node in the second subsystem to improve resource pricing. It can be understood that multiple subjects can access external pricing sources negotiated in their respective regions, and after filtering the resource conversion rates provided by the external pricing sources, they all upload them to the distributed message data processing system based on the first business topic. The central entity can subscribe to the first business topic from the distributed message data processing system, process the subscribed first-type resource conversion rate to obtain the internal resource conversion rate, and upload it to the distributed message data processing system based on the second business topic. At this point, multiple entities can subscribe to the second business topic from the distributed message data processing system and cache the subscribed second-type resource conversion rate for use in customer pricing. This enables unified access, processing, and pricing of resource conversion rates, allowing multiple entities to share high-quality pricing resources.
[0139] Furthermore, it reduces an entity's dependence on the second business object (the accessed price source). When processing resource quotations from multiple entities, it separates customer quoting and price source access, reducing coupling and dependency. An entity's quotation quality no longer depends on the accessed external price source but can utilize the high-quality resource conversion rates received by all entities. Simultaneously, the processed external resource conversion rates are information provided by external price sources in various regions, better assisting the first business object in providing quotations. It can be understood that when a newly created entity cannot access external price sources, it can subscribe to second-type resource conversion rates that allow resource quoting by deploying a third-party resource processing service component, thus enabling it to provide customer quoting capabilities and conduct business normally. Optionally, for some entities, if the resource conversion rate of a certain transaction resource pair provided by the accessed external price source is not high-quality, the entity can choose not to obtain the resource conversion rate of that transaction resource pair.
[0140] In this embodiment, the second entity device corresponding to the second subject (e.g., the subject) associated with the first business object (e.g., institution A) can upload the first external resource conversion rate (which can be understood as the resource conversion rate provided by the external business object) to the message data processing node in the distributed message data processing system based on the first business topic when it obtains the first external resource conversion rate (which can be understood as the resource conversion rate provided by the external business object) from the accessed second business object (e.g., other institutions besides institution A, such as offshore institutions, other institutions, etc.). The message data processing node can then issue a first type of resource conversion rate, including the first external resource conversion rate, to the central entity device based on the first business topic. This central entity device is the first entity device corresponding to the first subject associated with the first business object (which can be the subject under institution A or a newly created subject). This allows for the aggregation of external resource conversion rates obtained by multiple subjects, removing data isolation between external resource conversion rates obtained by different subjects. At this time, the central entity device receives... When the first type of resource conversion rate is reached, resource conversion parameters can be obtained from the resource data processing strategy associated with the second business theme of the first business object. Based on the resource conversion parameters, the first type of resource conversion rate is processed to obtain the internal resource conversion rate associated with the second business theme (which can be understood as processing the first type of resource conversion rate uniformly to obtain the internal resource conversion rate provided by the first business object, i.e., the internally provided resource conversion rate). Based on the second business theme, the internal resource conversion rate is uploaded to the message data processing node. The message data processing node can use the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme. This second type of resource conversion rate is the resource conversion rate used to uniformly provide resource quotations to multiple entities. For example, the message data processing node receives the second type of resource conversion rate of the transaction resource pair associated with the first entity based on the second business theme, and when it receives the resource quotation request sent by the quotation query object for the business transaction, it determines the resource quotation conversion rate used to provide quotation to the quotation query object based on the second type of resource conversion rate of the transaction resource pair associated with the business transaction. This is understandable because it allows multiple entities (the first entity and the second entity) associated with the first business object to share the same resource conversion rate. In other words, the resource conversion rate obtained by any entity through the accessed second business object can be used by other entities. That is, the internal resource conversion rate corresponding to the external resource conversion rate obtained by one entity can be obtained and used by another entity. All entities in the same organization can share and provide the same resource quote. Thus, in scenarios where multiple entities are associated with the same organization, optimizing the resource quote of each entity can improve the quality of resource quotes from different entities.
[0141] For further details, please see Figure 14 , Figure 14 This is a flowchart illustrating a resource data processing method provided in an embodiment of this application, such as... Figure 14 As shown, the method can be executed by the aforementioned message data processing node (a distributed node in a distributed message data processing system). For example, the message data processing node can be one of the aforementioned... Figure 1 Any distributed node in the distributed message data processing system 100 shown. The method may specifically include the following steps S301-S303:
[0142] S301. When the first type of resource conversion rate of the transaction resource pair associated with the first entity is obtained, the first type of resource conversion rate of the transaction resource pair associated with the first entity is sent to the central entity device based on the first business theme.
[0143] The central master device obtains resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object corresponding to the central master device. Based on the resource conversion parameters, it performs resource data processing on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme. The central master device is the first master device corresponding to the first master associated with the first business object. The first master is determined from multiple masters associated with the first business object. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second master device corresponding to the second master associated with the first business object based on the first business theme, obtained by the message data processing node; the first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second master for the transaction resource pair. The second master is the master other than the first master among the multiple masters associated with the first business object. The second business object is a business object used to provide the resource conversion rate of the transaction resource pair to multiple masters, and the second business object is different from the first business object.
[0144] It is understood that if a first resource processing service component is deployed on the first principal device (or second principal device) corresponding to the first principal (or second principal device), then the first principal device (or second principal device) as the central principal device is used to subscribe to topic publication information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publication information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic.
[0145] Therefore, when obtaining the first type of resource conversion rate of the transaction resource pair associated with the first entity (or the second entity), the method of sending the first type of resource conversion rate of the transaction resource pair associated with the first entity (or the second entity) to the central entity device (or the second entity device) based on the first business theme can be as follows: after receiving the first resource subscription request generated by the central entity device (or the second entity device) through the first resource processing service component for subscribing to the first business theme, if it is determined in the theme publication information stored in the first distributed message queue that there is a first type of resource conversion rate of the transaction resource pair associated with the first business theme, then when obtaining the first type of resource conversion rate of the transaction resource pair from the theme publication information stored in the first distributed message queue, the first type of resource conversion rate is sent to the central entity device (or the second entity device) based on the first business theme.
[0146] Optionally, the first type of resource conversion rate can be a first external resource conversion rate uploaded by the central main device based on the first business theme, a second external resource conversion rate uploaded by the second main device based on the first business theme, or a third external resource conversion rate uploaded by the terminal device associated with the second business object based on the first business theme. In other words, access to the distributed message data processing system can be granted to the second business object, and the terminal device associated with the second business object can directly provide the resource conversion rate of the transaction resource pair that conforms to the resource data format, thereby eliminating the need to deploy the second resource processing service component in the main device.
[0147] Therefore, when the second business object has resource upload permissions, the first type of resource conversion rate also includes the third external resource conversion rate uploaded by the terminal device associated with the second business object based on the first business topic, obtained by the message data processing node. The third external resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair. That is, when the message data processing node receives the third external resource conversion rate (in accordance with the resource data format) uploaded by the terminal device corresponding to the second business object based on the first business topic, it uses the third external resource conversion rate as the first type of resource conversion rate and adds it to the first distributed message queue. It can be understood that the message data processing node can generate a resource inquiry request and send it to the terminal device corresponding to the second business object. The terminal device corresponding to the second business object then generates the corresponding first business quotation and returns it to the message data processing node to add the first business quotation to the first distributed message queue.
[0148] For example, such as Figure 15 As shown, Figure 15This is a schematic diagram illustrating a scenario for uploading external resource conversion rates according to an embodiment of this application. If the central main device is equipped with a second resource processing service component, it can access the terminal device associated with the second business object 151 through the second resource processing service component, and obtain the resource conversion rate 1 for the transaction resource pair from the terminal device associated with the second business object 151 to determine the second external resource conversion rate, and then upload the second external resource conversion rate to the distributed message data processing system (including multiple message data processing nodes). Alternatively, if the second main device is equipped with a second resource processing service component, it can access the terminal device associated with the second business object 152 through the second resource processing service component, and obtain the resource conversion rate 1 for the transaction resource pair from the terminal device associated with the second business object 152. For the resource conversion rate 2 of the transaction resource pair, a first external resource conversion rate is determined, and the first external resource conversion rate is uploaded to the distributed message data processing system; or, if the distributed message data processing system grants resource upload permission to the second business object 153, that is, the second business object 153 has resource upload permission, then the terminal device associated with the second business object 153 can directly obtain the resource conversion rate for the transaction resource pair to determine a third external resource conversion rate that conforms to the resource data format (it can be understood that the first external resource conversion rate and the second external resource conversion rate also conform to the resource data format), and upload the third external resource conversion rate to the distributed message data processing system; the aforementioned three situations can exist simultaneously, or only one or two of them can exist.
[0149] S302. When receiving the internal resource conversion rate uploaded by the central main device based on the second business theme, the obtained internal resource conversion rate is used as the second type of resource conversion rate of the transaction resource pair based on the second business theme.
[0150] The second type of resource conversion rate is the resource conversion rate used to provide unified resource quotations to multiple entities.
[0151] It is understood that if a third resource processing service component is deployed on the first principal device corresponding to the first principal, then the first principal device, as the central principal device, is used to subscribe to topic publication information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publication information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic.
[0152] Therefore, when obtaining the second type of resource conversion rate of the transaction resource pair associated with the first entity (or the second entity), the method of sending the second type of resource conversion rate of the transaction resource pair associated with the first entity (or the second entity) to the central entity device (or the second entity device) based on the second business theme can be as follows: After receiving the second resource subscription request generated by the central entity device (or the second entity device) through the third resource processing service component for subscribing to the second business theme, if it is determined in the theme publication information stored in the second distributed message queue that there is a second type of resource conversion rate of the transaction resource pair associated with the second business theme, then when obtaining the second type of resource conversion rate of the transaction resource pair from the theme publication information stored in the second distributed message queue, the second type of resource conversion rate is sent to the central entity device (or the second entity device) based on the second business theme, and the central entity device (or the second entity device) caches the received second type of resource conversion rate.
[0153] Alternatively, a resource caching system can be deployed. Therefore, after receiving the second resource subscription request generated by the resource caching system for subscribing to the second business topic, if it is determined in the topic publication information stored in the second distributed message queue that there is a second type of resource conversion rate for a transaction resource pair associated with the second business topic, then when the second type of resource conversion rate for the transaction resource pair associated with the first subject is obtained from the topic publication information stored in the second distributed message queue, the second type of resource conversion rate is sent to the resource caching system based on the second business topic, and the resource caching system uniformly caches the received second type of resource conversion rate.
[0154] For example, such as Figure 16 As shown, Figure 16This is a schematic diagram of an interactive process for resource data processing provided in an embodiment of this application; wherein, S11, the central main device accesses the terminal device associated with the second business object through the second resource processing service component. After accessing the second business object, it can generate a resource inquiry request for the transaction resource pair and send the resource inquiry request to the terminal device associated with the second business object; S12, the terminal device associated with the second business object sends the resource conversion rate for the transaction resource pair to the central main device based on the resource inquiry request; S13, the central main device obtains a second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate, and sends the second external resource conversion rate based on the first business topic. S14. The second main device accesses the terminal device associated with the second business object through the second resource processing service component. After accessing the second business object, it can generate a resource inquiry request for the transaction resource pair and send the resource inquiry request to the terminal device associated with the second business object; S15. The terminal device associated with the second business object sends the resource conversion rate for the transaction resource pair to the second main device based on the resource inquiry request; S16. The second main device obtains the first external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate, and uploads the first external resource conversion rate to the message data processing node based on the first business topic; S17. Message The data processing node uses the second external resource conversion rate uploaded by the central main device based on the first business theme and the first external resource conversion rate uploaded by the central main device based on the first business theme as the first type of resource conversion rate, and adds the first type of resource conversion rate to the first distributed message queue corresponding to the first business theme; S18, the central main device generates a first resource subscription request for subscribing to the first business theme through the first resource processing service component, and sends the first resource subscription request to the message data processing node; S19, when the message data processing node obtains the first type of resource conversion rate of the transaction resource pair associated with the first main device from the first distributed message queue, it adds the first type of resource conversion rate of the transaction resource pair associated with the first main device based on the first business theme. The first type of resource conversion rate for the transaction resource pair is sent to the central master device; S110, the central master device obtains resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object, and performs resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme; S111, the central master device uploads the internal resource conversion rate to the message data processing node based on the second business theme; S112, the message data processing node uses the internal resource conversion rate uploaded by the central master device based on the second business theme as the second type of resource conversion rate, and adds the second type of resource conversion rate to the second distributed message queue corresponding to the second business theme;S113. The central main device generates a second resource subscription request for subscribing to the second business topic through the second resource processing service component, and sends the second resource subscription request to the message data processing node; S114. When the message data processing node obtains the second type resource conversion rate of the transaction resource pair associated with the first subject from the second distributed message queue, it sends the second type resource conversion rate of the transaction resource pair associated with the first subject to the central main device based on the second business topic; S115. The second main device generates a second resource subscription request for subscribing to the second business topic through the second resource processing service component, and sends the second resource subscription request to the message data processing node; S116. When the message data processing node obtains the second type resource conversion rate of the transaction resource pair associated with the first subject from the second distributed message queue, it sends the second type resource conversion rate of the transaction resource pair associated with the first subject to the central main device based on the second business topic; The business subject sends the second type of resource conversion rate of the transaction resource pair associated with the first subject to the second subject device; S117, the central subject device adds the received second type of resource conversion rate to the resource cache associated with the first subject device; S118, the quotation query object generates a resource quotation request for the business transaction through the terminal device and sends the resource quotation request to the central subject device; S119, when the central subject device receives the resource quotation request, it takes the transaction resource pair associated with the business transaction as the target transaction resource pair, and determines the resource quotation conversion rate used to provide a quotation to the quotation query object based on the second type of resource conversion rate of the target transaction resource pair, and returns the resource quotation information corresponding to the resource quotation conversion rate to the quotation query object; it can be understood that the operation of the second subject device upon receiving the second type of resource conversion rate is the same as described above. The specific implementation principles of steps S1-S119 can be found in the relevant descriptions of the above embodiments, and will not be repeated here.
[0155] In this embodiment, the second entity device corresponding to the second subject (e.g., the subject) associated with the first business object (e.g., institution A) can upload the first external resource conversion rate (which can be understood as the resource conversion rate provided by the external business object) to the message data processing node in the distributed message data processing system based on the first business topic when it obtains the first external resource conversion rate (which can be understood as the resource conversion rate provided by the external business object) from the accessed second business object (e.g., other institutions that can provide resource conversion rates besides institution A, such as offshore institutions, other institutions, etc.). The message data processing node can then send the first type of resource conversion rate of the transaction resource pair associated with the first subject to the central entity device based on the first business topic when it obtains the first type of resource conversion rate of the transaction resource pair associated with the first subject. The central entity device is the first entity device corresponding to the first subject associated with the first business object (which can be the subject under institution A or a newly created subject). This allows for the aggregation of external resource conversion rates obtained by multiple entities, eliminating data isolation between external resource conversion rates obtained by different entities. When the central entity receives the first type of resource conversion rate, it can obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object. Based on the resource conversion parameters, it processes the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme (which can be understood as uniformly processing the first type of resource conversion rate to obtain the internal resource conversion rate provided by the first business object, i.e., the internally provided resource conversion rate). Based on the second business theme, the internal resource conversion rate is uploaded to the message data processing node. When the message data processing node receives the internal resource conversion rate uploaded by the central entity based on the second business theme, it can use the obtained internal resource conversion rate as the second type of resource conversion rate for the transaction resource pair. This second type of resource conversion rate is used to uniformly provide resource quotations to multiple entities. This is understandable because it allows multiple entities (the first entity and the second entity) associated with the first business object to share the same resource conversion rate. In other words, the resource conversion rate obtained by any entity through the accessed second business object can be used by other entities. That is, the internal resource conversion rate corresponding to the external resource conversion rate obtained by one entity can be obtained and used by another entity. All entities in the same organization can share and provide the same resource quote. Thus, in scenarios where multiple entities are associated with the same organization, optimizing the resource quote of each entity can improve the quality of resource quotes from different entities.
[0156] For further details, please see Figure 17 , Figure 17This is a schematic diagram of the structure of a resource data processing device provided in an embodiment of this application. Figure 17 As shown, the resource data processing device 1 can be applied to a computer device. It should be understood that the resource data processing device 1 can be a computer program (including program code) running on the computer device; for example, the resource data processing device 1 can be an application software. It is understood that the resource data processing device 1 can be used to execute the corresponding steps in the methods provided in the embodiments of this application. Figure 17 As shown, the resource data processing device 1 may include: a first resource receiving module 11, a resource data processing module 12, and an internal resource uploading module 13;
[0157] The first resource receiving module 11 is used to receive a first type of resource conversion rate of a transaction resource pair associated with a first subject, issued by a message data processing node based on a first business theme; the message data processing node is a distributed node in a distributed message data processing system associated with the first business theme; the first type of resource conversion rate includes at least a first external resource conversion rate uploaded by the second subject device corresponding to the second subject associated with the first business object, obtained by the message data processing node based on the first business theme; the first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second subject for the transaction resource pair; the second subject is a subject other than the first subject among multiple subjects; the second business object is a business object used to provide the resource conversion rate of the transaction resource pair to multiple subjects, and the second business object is different from the first business object;
[0158] The resource data processing module 12 is used to obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object, and to perform resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme.
[0159] The internal resource upload module 13 is used to upload the internal resource conversion rate to the message data processing node based on the second business theme, so that the message data processing node can use the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to uniformly provide resource quotations to multiple entities.
[0160] Wherein, if a first resource processing service component is deployed on the first principal device corresponding to the first principal, the first principal device, which serves as the central principal device, is used to subscribe to topic publication information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publication information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic;
[0161] The first resource receiving module 11 also includes:
[0162] The first subscription unit 111 is used to generate a first resource subscription request for subscribing to a first business topic through the first resource processing service component;
[0163] The first subscription unit 111 is also used to send the first resource subscription request to the message data processing node, so that when the message data processing node has a first type of resource conversion rate of transaction resource pair associated with the first business topic in the topic publication information stored in the first distributed message queue, it will send the first type of resource conversion rate to the central main device based on the first business topic.
[0164] Wherein, if a first resource processing service component is deployed on the first main device corresponding to the first main device, the first main device, as the central main device, is used to determine the internal resource conversion rate associated with the second business theme through the first resource processing service component;
[0165] Resource data processing module 12 includes:
[0166] The time period acquisition unit 121 is used to acquire the target time period indicated by the resource processing strategy through the first resource processing service component;
[0167] Volatility acquisition unit 122 is used to acquire the resource volatility of the first type of resource conversion rate within the target period;
[0168] Resource conversion unit 123 is used to determine the conversion rate fluctuation value corresponding to the first type of resource conversion rate based on the first type of resource conversion rate and resource volatility, and to use the conversion rate fluctuation value corresponding to the first type of resource conversion rate as a resource conversion parameter;
[0169] Resource conversion unit 123 is also used to superimpose resource conversion parameters onto the first type of resource conversion rate to obtain an internal resource conversion rate associated with the second business theme.
[0170] Wherein, when a second resource processing service component is deployed in the first principal device corresponding to the first principal, the first type of resource conversion rate also includes the second external resource conversion rate uploaded by the first principal device based on the first business theme, which is obtained by the message data processing node; the second external resource conversion rate is the resource conversion rate provided by the second business object accessed by the first principal for the transaction resource pair.
[0171] The first resource receiving module 11 includes:
[0172] The device access unit 112 is used to access the terminal device associated with the second business object through the second resource processing service component when the first main device is used as the central main device;
[0173] The external resource distribution unit 113 is used to receive the resource conversion rate distributed by the terminal device associated with the second business object for the transaction resource pair, and based on the received resource conversion rate, obtain the second external resource conversion rate for uploading to the message data processing node.
[0174] The external resource distribution unit 113 includes:
[0175] The first resource determination subunit 1131 is used to take the received resource conversion rate as the resource conversion rate to be uploaded, and to obtain a reasonable resource conversion rate range associated with the resource conversion rate to be uploaded.
[0176] The first resource determination subunit 1131 is further configured to use the resource conversion rate to be uploaded as the second external resource conversion rate for uploading to the message data processing node if the conversion rate of the resource to be uploaded is within a reasonable range.
[0177] The received resource conversion rate is the resource conversion rate in the first service quotation provided by the second service object; the first service quotation is obtained by the terminal device associated with the second service object after receiving the resource inquiry request sent by the first subject for the transaction resource pair.
[0178] External resource distribution unit 113 includes:
[0179] The second resource determination subunit 1132 is used to, when the resource acquisition time corresponding to the second resource processing service component is the reference resource acquisition time, take the received resource conversion rate as the resource conversion rate to be uploaded, and take the first business timestamp corresponding to the received resource conversion rate as the reference business timestamp corresponding to the resource conversion rate to be uploaded; the first business timestamp corresponding to the received resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the acquired resource inquiry request;
[0180] The second resource determination subunit 1132 is also used to obtain the effective time interval associated with the conversion rate of the resource to be uploaded;
[0181] The second resource determination subunit 1132 is further configured to use the conversion rate of the resource to be uploaded as the second external resource conversion rate for uploading to the message data processing node if the time interval determined based on the reference business timestamp and the reference resource acquisition time is less than or equal to the effective time interval.
[0182] The received resource conversion rate is the resource conversion rate in the first service quotation provided by the second service object; the first service quotation is obtained by the terminal device associated with the second service object after receiving the resource inquiry request sent by the first subject for the transaction resource pair.
[0183] External resource distribution unit 113 includes:
[0184] The third resource determination subunit 1133 is used to, when the resource acquisition time corresponding to the second resource processing service component is the first resource acquisition time, take the received resource conversion rate as the resource conversion rate to be uploaded, and take the first business timestamp corresponding to the received resource conversion rate as the first comparison timestamp corresponding to the resource conversion rate to be uploaded; the first business timestamp corresponding to the received resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the acquired resource inquiry request;
[0185] The third resource determination subunit 1133 is further configured to, in the resource acquisition time corresponding to the second resource processing service component, take the resource acquisition time acquired before the first resource acquisition time as the second resource acquisition time, take the first historical resource conversion rate received from the terminal device associated with the second business object at the second resource acquisition time as the first reference resource conversion rate, and take the first business timestamp corresponding to the first historical resource conversion rate as the first reference timestamp; the first historical resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair; one second message acquisition time corresponds to one first historical resource conversion rate;
[0186] The third resource determination subunit 1133 is also used to compare the first reference timestamp with the first comparison timestamp to obtain the first timestamp comparison result.
[0187] The third resource determination subunit 1133 is further configured to use the resource conversion rate to be uploaded as the second external resource conversion rate for uploading to the message data processing node if the first timestamp comparison result indicates that the first timestamp to be referenced is less than or equal to the first timestamp to be compared.
[0188] Among them, the first type of resource conversion rate in the topic publication information stored in the first distributed message queue is the resource conversion rate in the first business quotation provided by the second business object; the first business quotation is obtained by the terminal device associated with the second business object after obtaining the resource inquiry request sent by the second subject for the transaction resource pair;
[0189] Before obtaining resource transformation parameters from the resource data processing strategy associated with the second business topic of the first business object, the first resource receiving module 11 further includes:
[0190] The first timestamp acquisition unit 114 is used to, when the message acquisition time corresponding to the first resource processing service component is the first message acquisition time, take the first type of resource conversion rate obtained from the first distributed message queue as the resource conversion rate to be processed, and take the first business timestamp corresponding to the first type of resource conversion rate as the second comparison timestamp corresponding to the resource conversion rate to be processed; the first business timestamp corresponding to the first type of resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the acquired resource inquiry request;
[0191] The first timestamp acquisition unit 114 is further configured to, in the message acquisition time corresponding to the first resource processing service component, take the message acquisition time acquired before the first message acquisition time as the second message acquisition time, take the second historical resource conversion rate acquired from the first distributed message queue at the second message acquisition time as the second reference resource conversion rate, and take the first business timestamp corresponding to the second historical resource conversion rate as the second reference timestamp; the second historical resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair; one second message acquisition time corresponds to one second historical resource conversion rate;
[0192] The first timestamp comparison unit 114 is also used to compare the second timestamp to be referenced with the second timestamp to be compared, and to obtain the second timestamp comparison result.
[0193] The first timestamp comparison unit 114 is further configured to notify the resource data processing module 12 to perform the step of obtaining resource conversion parameters from the resource data processing strategy associated with the second business subject of the first business object if the second timestamp comparison result indicates that the second reference timestamp is less than or equal to the second comparison timestamp.
[0194] Wherein, if a third resource processing service component is deployed on the first principal device corresponding to the first principal, the first principal device, as the central principal device, is used to subscribe to topic publication information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publication information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic;
[0195] The first resource receiving module 11 also includes:
[0196] The second subscription unit 115 is used to generate a second resource subscription request for subscribing to a second business topic through the third resource processing service component;
[0197] The second subscription unit 115 is also used to send the second resource subscription request to the message data processing node, so that when the message data processing node has a second type of resource conversion rate of transaction resource pair associated with the second business topic in the topic publication information stored in the second distributed message queue, it will send the second type of resource conversion rate to the central main device based on the second business topic.
[0198] The internal resource upload module 13 includes:
[0199] The quotation generation unit 131 is used to generate a second business quotation corresponding to the internal resource conversion rate; the second business quotation contains a second business timestamp corresponding to the internal resource conversion rate; the second business timestamp is the first business timestamp corresponding to the external resource conversion rate corresponding to the internal resource conversion rate.
[0200] The quotation upload unit 132 is used to upload the second business quotation to the message data processing node based on the second business theme, so that the message data processing node adds the second business quotation to the second distributed message queue and uses the internal resource conversion rate in the second business quotation as the second type of resource conversion rate.
[0201] The resource data processing module 12 also includes:
[0202] Resource caching unit 124 is used to receive, through the third resource processing service component, the second type of resource conversion rate of the transaction resource pair associated with the first subject in the topic publication information stored in the second distributed message queue when the message data processing node has a second type of resource conversion rate, based on the second type of resource conversion rate issued by the second business topic, and add the received second type of resource conversion rate to the resource cache associated with the first subject device.
[0203] The resource quotation unit 125 is used to select the transaction resource pair associated with the business transaction as the target transaction resource pair when it receives a resource quotation request sent by the quotation query object for a business transaction; the quotation query object is a business object used to query quotations from multiple entities.
[0204] The resource inquiry unit 125 is also used to obtain the second type of resource conversion rate of the target transaction resource pair from the resource cache through the third resource processing service component, and to obtain the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair;
[0205] The resource inquiry unit 125 is also used to obtain the first maximum business timestamp from the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair, and use the second type of resource conversion rate corresponding to the first maximum business timestamp as the target second type of resource conversion rate.
[0206] Resource inquiry unit 125 is also used to determine the resource quotation conversion rate for providing quotations to quotation query objects based on the target second type of resource conversion rate and the resource quotation provision strategy associated with business transactions.
[0207] Before adding the received second-type resource conversion rate to the resource cache, the resource data processing module 12 further includes:
[0208] The timestamp comparison unit 126 is used to take the second type of resource conversion rate obtained from the second distributed message queue as the resource conversion rate to be cached when the quotation acquisition time corresponding to the third resource processing service component is the first quotation acquisition time, and to take the second business timestamp corresponding to the second type of resource conversion rate as the third comparison timestamp corresponding to the resource conversion rate to be cached.
[0209] The timestamp comparison unit 126 is further configured to, in the quote acquisition time corresponding to the third resource processing service component, take the quote acquisition time obtained before the first quote acquisition time as the second quote acquisition time, take the third historical resource conversion rate obtained from the second distributed message queue at the second quote acquisition time as the third reference resource conversion rate, and take the second business timestamp corresponding to the third historical resource conversion rate as the third reference timestamp; the third historical resource conversion rate is the internal resource conversion rate provided by the first business object for the transaction resource pair; one second message acquisition time corresponds to one third historical resource conversion rate;
[0210] The timestamp comparison unit 126 is also used to compare the third reference timestamp with the third comparison timestamp to obtain the third timestamp comparison result;
[0211] The timestamp comparison unit 126 is further configured to notify the resource caching unit to perform the step of adding the received second type of resource conversion rate to the resource cache if the third timestamp comparison result indicates that the third reference timestamp is less than or equal to the third comparison timestamp.
[0212] Among them, the message data processing node is used to send the type resource conversion rate to the resource caching system associated with multiple subjects based on the second business topic when there is a second type resource conversion rate of transaction resource pairs in the topic publication information stored in the second distributed message queue;
[0213] Resource data processing module 12 also includes:
[0214] The resource caching unit 124 is used to, when receiving a resource quotation request sent by the quotation query object for a business transaction, use the transaction resource pair associated with the business transaction as the target transaction resource pair; the quotation query object is a business object used to query quotations from multiple entities.
[0215] Resource inquiry unit 125 is used to obtain the second type of resource conversion rate of the target transaction resource pair from the resource caching system through the third resource processing service component, and obtain the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair;
[0216] The resource inquiry unit 125 is also used to obtain the maximum business timestamp from the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair, and use the second type of resource conversion rate corresponding to the obtained maximum business timestamp as the target second type of resource conversion rate.
[0217] Resource inquiry unit 125 is also used to determine the resource quotation conversion rate for providing quotations to quotation query objects based on the target second type of resource conversion rate and the resource quotation provision strategy associated with business transactions.
[0218] The specific implementation methods of the first resource receiving module 11, the resource data processing module 12, and the internal resource uploading module 13 can be found in the relevant descriptions in the above embodiments, and will not be repeated here. It should be understood that the beneficial effects obtained by using the same method will also not be repeated here.
[0219] For further details, please see Figure 18 , Figure 18 This is a schematic diagram of the structure of a resource data processing device provided in an embodiment of this application. Figure 18 As shown, the resource data processing device 2 can be applied to a computer device. It should be understood that the resource data processing device 2 can be a computer program (including program code) running on the computer device; for example, the resource data processing device 2 can be an application software. It is understood that the resource data processing device 2 can be used to execute the corresponding steps in the methods provided in the embodiments of this application. Figure 18 As shown, the resource data processing device 2 may include: a first resource distribution module 21 and an internal resource receiving module 22;
[0220] The first resource distribution module 21 is used to distribute the first type of resource conversion rate of the transaction resource pair associated with the first subject to the central subject device based on the first business theme when the first type of resource conversion rate of the transaction resource pair associated with the first subject is obtained. This allows the central subject device to obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object corresponding to the central subject device, and to perform resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme. The central subject device is the first subject device corresponding to the first subject associated with the first business object. The first subject is determined from multiple subjects associated with the first business object. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second subject device corresponding to the second subject associated with the first business object based on the first business theme, obtained by the message data processing node. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second subject for the transaction resource pair. The second subject is a subject other than the first subject among multiple subjects. The second business object is a business object used to provide the resource conversion rate of the transaction resource pair to multiple subjects, and the second business object is different from the first business object.
[0221] The internal resource receiving module 22 is used to, when receiving the internal resource conversion rate uploaded by the central main device based on the second business theme, use the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to uniformly provide resource quotations to multiple entities.
[0222] Wherein, if a first resource processing service component is deployed on the first principal device corresponding to the first principal, the first principal device, which serves as the central principal device, is used to subscribe to topic publication information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publication information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic;
[0223] The first resource distribution module 21 includes:
[0224] The first conversion rate distribution unit 211 is configured to, after receiving a first resource subscription request for subscribing to a first business topic generated by the central main device through the first resource processing service component, if it is determined in the topic publication information stored in the first distributed message queue that there is a first type of resource conversion rate for a transaction resource pair associated with the first business topic, then, when obtaining the first type of resource conversion rate for the transaction resource pair from the topic publication information stored in the first distributed message queue, distribute the first type of resource conversion rate to the central main device based on the first business topic.
[0225] Wherein, when the second business object has resource upload permission, the first type of resource conversion rate also includes the third external resource conversion rate obtained by the message data processing node based on the first business topic uploaded by the terminal device associated with the second business object; the third external resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair;
[0226] The first resource distribution module 21 also includes:
[0227] When the external resource receiving unit 212 receives the third external resource conversion rate that conforms to the resource data format uploaded by the terminal device corresponding to the second service object based on the first service topic, it uses the third external resource conversion rate as the first type of resource conversion rate and adds the first type of resource conversion rate to the first distributed message queue.
[0228] Wherein, if a third resource processing service component is deployed on the first principal device corresponding to the first principal, the first principal device, as the central principal device, is used to subscribe to topic publication information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publication information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic;
[0229] The first resource distribution module 21 also includes:
[0230] After receiving a second resource subscription request generated by the central main device through the third resource processing service component for subscribing to the second business topic, the second conversion rate distribution unit 213, if it determines in the topic publication information stored in the second distributed message queue that there is a second type of resource conversion rate for a transaction resource pair associated with the second business topic, then, when obtaining the second type of resource conversion rate for the transaction resource pair from the topic publication information stored in the second distributed message queue, distributes the second type of resource conversion rate to the central main device based on the second business topic.
[0231] The specific implementation methods of the first resource distribution module 21 and the internal resource receiving module 22 can be found in the relevant descriptions in the above embodiments, and will not be repeated here. It should be understood that the beneficial effects obtained by using the same method will also not be repeated here.
[0232] Further, please see Figure 19 , Figure 19 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 19As shown, the computer device 1900 can be a terminal or a server; this is not a limitation. For ease of understanding, this application uses a computer device as an example of a terminal. The computer device 1900 may include: a processor 1901, a network interface 1904, and a memory 1905. Furthermore, the computer device 1900 may also include: a user interface 1903, and at least one communication bus 1902. The communication bus 1902 is used to implement communication between these components. The user interface 1903 may also include a standard wired interface and a wireless interface. The network interface 1904 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1905 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 1905 may also be at least one storage device located remotely from the aforementioned processor 1901. Figure 19 As shown, the memory 1905, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.
[0233] The network interface 1904 in the computer device 1900 can also provide network data interaction functionality. Figure 19 In the computer device 1900 shown, the network interface 1904 provides network data interaction functionality; the user interface 1903 is mainly used to provide an input interface for the user; and the processor 1901 can be used to call the device control application stored in the memory 1905 to execute the above-mentioned functions. Figure 4 , Figure 9 and Figure 14 The description of the resource data processing method in the corresponding embodiments can also be executed as described above. Figure 19 The description of the resource data processing device 1 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated here.
[0234] In one possible implementation, memory 1905 is used to store program instructions. Processor 1901 can invoke the program instructions to perform the following steps:
[0235] The message data processing node receives a first type of resource conversion rate for a transaction resource pair associated with a first subject, issued by a first business theme. The message data processing node is a distributed node in a distributed message data processing system associated with the first business theme. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second subject device corresponding to the second subject associated with the first business object, obtained by the message data processing node, based on the first business theme. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second subject for the transaction resource pair. The second subject is a subject other than the first subject among multiple subjects. The second business object is a business object used to provide resource conversion rates for transaction resource pairs to multiple subjects, and the second business object is different from the first business object.
[0236] Resource conversion parameters are obtained from the resource data processing strategy associated with the second business theme of the first business object. Based on the resource conversion parameters, resource data processing is performed on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme.
[0237] The internal resource conversion rate is uploaded to the message data processing node based on the second business theme, so that the message data processing node can use the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to provide resource quotations to multiple entities in a unified manner.
[0238] Wherein, if a first resource processing service component is deployed on the first principal device corresponding to the first principal, the first principal device, which serves as the central principal device, is used to subscribe to topic publication information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publication information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic;
[0239] Processor 1901 is also used for:
[0240] The first resource subscription request for subscribing to the first business topic is generated through the first resource processing service component.
[0241] The first resource subscription request is sent to the message data processing node, so that when the message data processing node has a first type of resource conversion rate for a transaction resource pair associated with the first business topic in the topic publication information stored in the first distributed message queue, it will distribute the first type of resource conversion rate to the central main device based on the first business topic.
[0242] Wherein, if a first resource processing service component is deployed on the first main device corresponding to the first main device, the first main device, as the central main device, is used to determine the internal resource conversion rate associated with the second business theme through the first resource processing service component;
[0243] When processor 1901 obtains resource conversion parameters from a resource data processing strategy associated with a second business subject of a first business object, performs resource data processing on a first type of resource conversion rate based on the resource conversion parameters, and obtains an internal resource conversion rate associated with the second business subject, it specifically performs the following:
[0244] The target time period indicated by the resource processing strategy is obtained through the first resource processing service component;
[0245] Obtain the resource volatility of the first type of resource conversion rate within the target time period;
[0246] The conversion rate fluctuation value corresponding to the first type of resource conversion rate is determined based on the first type of resource conversion rate and resource volatility, and the conversion rate fluctuation value corresponding to the first type of resource conversion rate is used as a resource conversion parameter;
[0247] By superimposing the resource conversion parameters onto the first type of resource conversion rate, the internal resource conversion rate associated with the second business theme is obtained.
[0248] Wherein, when a second resource processing service component is deployed in the first principal device corresponding to the first principal, the first type of resource conversion rate also includes the second external resource conversion rate uploaded by the first principal device based on the first business theme, which is obtained by the message data processing node; the second external resource conversion rate is the resource conversion rate provided by the second business object accessed by the first principal for the transaction resource pair.
[0249] Processor 1901 is also used for:
[0250] When the first main device is used as the central main device, the terminal device associated with the second business object is accessed through the second resource processing service component;
[0251] Receive the resource conversion rate issued by the terminal device associated with the second business object for the transaction resource pair, and obtain the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate.
[0252] Specifically, when processor 1901 obtains a second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate, it is used for:
[0253] The received resource conversion rate is used as the resource conversion rate to be uploaded, and a reasonable resource conversion rate range associated with the resource conversion rate to be uploaded is obtained;
[0254] If the conversion rate of the resource to be uploaded is within a reasonable range, then the conversion rate of the resource to be uploaded will be used as the second external resource conversion rate for uploading to the message data processing node.
[0255] The received resource conversion rate is the resource conversion rate in the first service quotation provided by the second service object; the first service quotation is obtained by the terminal device associated with the second service object after receiving the resource inquiry request sent by the first subject for the transaction resource pair.
[0256] When processor 1901 is used to obtain a second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate, it is specifically used for:
[0257] When the resource acquisition time corresponding to the second resource processing service component is the reference resource acquisition time, the received resource conversion rate is used as the resource conversion rate to be uploaded, and the first business timestamp corresponding to the received resource conversion rate is used as the reference business timestamp corresponding to the resource conversion rate to be uploaded; the first business timestamp corresponding to the received resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the obtained resource inquiry request;
[0258] Obtain the valid time interval associated with the conversion rate of the resource to be uploaded;
[0259] If the time interval determined based on the reference business timestamp and the reference resource acquisition time is less than or equal to the valid time interval, then the conversion rate of the resource to be uploaded will be used as the second external resource conversion rate for uploading to the message data processing node.
[0260] The received resource conversion rate is the resource conversion rate in the first service quotation provided by the second service object; the first service quotation is obtained by the terminal device associated with the second service object after receiving the resource inquiry request sent by the first subject for the transaction resource pair.
[0261] When processor 1901 is used to obtain a second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate, it is specifically used for:
[0262] When the resource acquisition time corresponding to the second resource processing service component is the first resource acquisition time, the received resource conversion rate is used as the resource conversion rate to be uploaded, and the first business timestamp corresponding to the received resource conversion rate is used as the first comparison timestamp corresponding to the resource conversion rate to be uploaded; the first business timestamp corresponding to the received resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the obtained resource inquiry request;
[0263] In the resource acquisition time corresponding to the second resource processing service component, the resource acquisition time acquired before the first resource acquisition time is taken as the second resource acquisition time, the first historical resource conversion rate received from the terminal device associated with the second business object at the second resource acquisition time is taken as the first reference resource conversion rate, and the first business timestamp corresponding to the first historical resource conversion rate is taken as the first reference timestamp; the first historical resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair; one second message acquisition time corresponds to one first historical resource conversion rate;
[0264] Compare the first reference timestamp with the first comparison timestamp to obtain the first timestamp comparison result.
[0265] If the first timestamp comparison result indicates that the first reference timestamp is less than or equal to the first comparison timestamp, then the resource conversion rate to be uploaded will be used as the second external resource conversion rate for uploading to the message data processing node.
[0266] Among them, the first type of resource conversion rate in the topic publication information stored in the first distributed message queue is the resource conversion rate in the first business quotation provided by the second business object; the first business quotation is obtained by the terminal device associated with the second business object after obtaining the resource inquiry request sent by the second subject for the transaction resource pair;
[0267] Before retrieving resource transformation parameters from a resource data processing strategy associated with a second business subject of the first business object, processor 1901 is further configured to:
[0268] When the message acquisition time corresponding to the first resource processing service component is the first message acquisition time, the first type of resource conversion rate obtained from the first distributed message queue is used as the resource conversion rate to be processed, and the first business timestamp corresponding to the first type of resource conversion rate is used as the second comparison timestamp corresponding to the resource conversion rate to be processed; the first business timestamp corresponding to the first type of resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the acquired resource inquiry request;
[0269] In the message acquisition time corresponding to the first resource processing service component, the message acquisition time acquired before the first message acquisition time is taken as the second message acquisition time, the second historical resource conversion rate acquired from the first distributed message queue at the second message acquisition time is taken as the second reference resource conversion rate, and the first business timestamp corresponding to the second historical resource conversion rate is taken as the second reference timestamp; the second historical resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair; one second message acquisition time corresponds to one second historical resource conversion rate;
[0270] The second reference timestamp is compared with the second comparison timestamp to obtain the second timestamp comparison result.
[0271] If the second timestamp comparison result indicates that the second reference timestamp is less than or equal to the second comparison timestamp, then the step of obtaining resource conversion parameters from the resource data processing strategy associated with the second business subject of the first business object is executed.
[0272] Wherein, if a third resource processing service component is deployed on the first principal device corresponding to the first principal, the first principal device, as the central principal device, is used to subscribe to topic publication information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publication information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic;
[0273] Processor 1901 is also used for:
[0274] The third resource processing service component generates a second resource subscription request for subscribing to the second business topic.
[0275] The second resource subscription request is sent to the message data processing node so that when the message data processing node has a second type of resource conversion rate for a transaction resource pair associated with the second business topic in the topic publication information stored in the second distributed message queue, it will distribute the second type of resource conversion rate to the central main device based on the second business topic.
[0276] Specifically, when processor 1901 is used to upload the internal resource conversion rate to the message data processing node based on the second business topic, it is used for:
[0277] Generate a second business quotation corresponding to the internal resource conversion rate; the second business quotation contains a second business timestamp corresponding to the internal resource conversion rate; the second business timestamp is the first business timestamp corresponding to the external resource conversion rate corresponding to the internal resource conversion rate.
[0278] The second business quotation is uploaded to the message data processing node based on the second business theme, so that the message data processing node adds the second business quotation to the second distributed message queue and uses the internal resource conversion rate in the second business quotation as the second type of resource conversion rate.
[0279] The processor 1901 is also used for:
[0280] When the message data processing node receives a second type of resource conversion rate for a transaction resource pair associated with the first subject in the topic publication information stored in the second distributed message queue, it adds the received second type of resource conversion rate to the resource cache associated with the first subject device based on the second type of resource conversion rate issued by the second business topic.
[0281] When a resource quotation request is received from a quotation query object for a business transaction, the transaction resource pair associated with the business transaction is taken as the target transaction resource pair; the quotation query object is a business object used to query quotations from multiple entities.
[0282] The second type of resource conversion rate of the target transaction resource pair is obtained from the resource cache through the third resource processing service component, and the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair is obtained.
[0283] Obtain the maximum business timestamp from the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair, and use the second type of resource conversion rate corresponding to the maximum business timestamp as the target second type of resource conversion rate;
[0284] Based on the target type 2 resource conversion rate and the resource pricing strategy associated with business transactions, determine the resource pricing conversion rate used to provide pricing to pricing query objects.
[0285] Specifically, before adding the received second-type resource conversion rate to the resource cache, the processor 1901 is also used for:
[0286] When the quotation acquisition time corresponding to the third resource processing service component is the first quotation acquisition time, the second type of resource conversion rate obtained from the second distributed message queue will be used as the resource conversion rate to be cached, and the second business timestamp corresponding to the second type of resource conversion rate will be used as the third comparison timestamp corresponding to the resource conversion rate to be cached.
[0287] In the quote acquisition time corresponding to the third resource processing service component, the quote acquisition time obtained before the first quote acquisition time is taken as the second quote acquisition time, the third historical resource conversion rate obtained from the second distributed message queue at the second quote acquisition time is taken as the third reference resource conversion rate, and the second business timestamp corresponding to the third historical resource conversion rate is taken as the third reference timestamp; the third historical resource conversion rate is the internal resource conversion rate provided by the first business object for the transaction resource pair; one second message acquisition time corresponds to one third historical resource conversion rate;
[0288] The third reference timestamp is compared with the third comparison timestamp to obtain the third timestamp comparison result.
[0289] If the third timestamp comparison result indicates that the third reference timestamp is less than or equal to the third comparison timestamp, then the step of adding the received second type of resource conversion rate to the resource cache is executed.
[0290] Among them, the message data processing node is used to send the type resource conversion rate to the resource caching system associated with multiple subjects based on the second business topic when there is a second type resource conversion rate of transaction resource pairs in the topic publication information stored in the second distributed message queue;
[0291] Processor 1901 is also used for:
[0292] When a resource quotation request is received from a quotation query object for a business transaction, the transaction resource pair associated with the business transaction is taken as the target transaction resource pair; the quotation query object is a business object used to query quotations from multiple entities.
[0293] The third resource processing service component obtains the second type of resource conversion rate of the target transaction resource pair from the resource caching system, and obtains the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair.
[0294] Obtain the first maximum business timestamp from the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair, and use the second type of resource conversion rate corresponding to the first maximum business timestamp as the target second type of resource conversion rate;
[0295] Based on the target type 2 resource conversion rate and the resource pricing strategy associated with business transactions, determine the resource pricing conversion rate used to provide pricing to pricing query objects.
[0296] In one possible implementation, memory 1905 is used to store program instructions. Processor 1901 can invoke the program instructions to perform the following steps:
[0297] When the first type of resource conversion rate of the transaction resource pair associated with the first entity is obtained, the first type of resource conversion rate of the transaction resource pair associated with the first entity is sent to the central entity device based on the first business theme. This allows the central entity device to obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object corresponding to the central entity device. Based on the resource conversion parameters, the central entity device performs resource data processing on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme. The central entity device is the first entity device corresponding to the first entity associated with the first business object. The first entity is determined from multiple entities associated with the first business object. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second entity device corresponding to the second entity associated with the first business object based on the first business theme, obtained by the message data processing node. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second entity for the transaction resource pair. The second entity is a entity other than the first entity among multiple entities. The second business object is a business object used to provide resource conversion rates of transaction resource pairs to multiple entities, and the second business object is different from the first business object.
[0298] When the central main device receives the internal resource conversion rate uploaded based on the second business theme, the obtained internal resource conversion rate is used as the second type of resource conversion rate for the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to provide resource quotations to multiple entities in a unified manner.
[0299] Wherein, if a first resource processing service component is deployed on the first principal device corresponding to the first principal, the first principal device, which serves as the central principal device, is used to subscribe to topic publication information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publication information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic;
[0300] When processor 1901 obtains the first type of resource conversion rate of the transaction resource pair associated with the first entity and sends the first type of resource conversion rate of the transaction resource pair associated with the first entity to the central entity device based on the first business topic, it is specifically used for:
[0301] After receiving the first resource subscription request generated by the central main device through the first resource processing service component for subscribing to the first business topic, if it is determined in the topic publication information stored in the first distributed message queue that there is a first type of resource conversion rate for a transaction resource pair associated with the first business topic, then when the first type of resource conversion rate for the transaction resource pair is obtained from the topic publication information stored in the first distributed message queue, the first type of resource conversion rate is sent to the central main device based on the first business topic.
[0302] Wherein, when the second business object has resource upload permission, the first type of resource conversion rate also includes the third external resource conversion rate obtained by the message data processing node based on the first business topic uploaded by the terminal device associated with the second business object; the third external resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair;
[0303] Processor 1901 is also used for:
[0304] When a third external resource conversion rate conforming to the resource data format is received from the terminal device corresponding to the second business object based on the first business topic, the third external resource conversion rate is used as the first type of resource conversion rate and added to the first distributed message queue.
[0305] Wherein, if a third resource processing service component is deployed on the first principal device corresponding to the first principal, the first principal device, as the central principal device, is used to subscribe to topic publication information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publication information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic;
[0306] Processor 1901 is also used for:
[0307] After receiving the second resource subscription request generated by the central main device through the third resource processing service component for subscribing to the second business topic, if it is determined in the topic publication information stored in the second distributed message queue that there is a second type of resource conversion rate for a transaction resource pair associated with the second business topic, then when the second type of resource conversion rate for the transaction resource pair is obtained from the topic publication information stored in the second distributed message queue, the second type of resource conversion rate is sent to the central main device based on the second business topic.
[0308] In specific implementations, the device, processor 1901, memory 1905, etc., described in the embodiments of this application can execute the implementation methods described in the above method embodiments, or they can execute the implementation methods described in the embodiments of this application, which will not be repeated here.
[0309] Furthermore, it should be noted that this application embodiment also provides a computer-readable storage medium, which stores a computer program executed by the resource data processing device 1 and resource data processing device 2 mentioned above. The computer program includes computer instructions, and when the processor executes the computer instructions, it can execute the aforementioned... Figure 4 , Figure 9 and Figure 14 The description of the resource data processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application. As an example, computer instructions can be deployed and executed on a single computing device, or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network. These multiple computing devices distributed across multiple locations and interconnected via a communication network can constitute a blockchain system.
[0310] For further details, please see Figure 20 , Figure 20 This is a schematic diagram of a resource data processing system provided in an embodiment of this application. The resource data processing system 3 may include a central main device 3a and message data processing nodes 3b; wherein, the central main device 3a may be a server in the server cluster described in the above embodiment, for example, the central main device 3a may be the aforementioned... Figure 1 Any one of the servers in the server cluster 200 shown will not be described further here. The message data processing node 3b can be a distributed node in the distributed message data processing system described in the above embodiments. For example, the message data processing node 3b can be one of the aforementioned... Figure 1 Any distributed node in the distributed message data processing system 100 shown will not be described further here. Furthermore, the beneficial effects of using the same method will also not be described in detail.
[0311] Furthermore, it should be noted that this application also provides a computer program product or computer program, which may include computer instructions, which may be stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions, causing the computer device to perform the aforementioned actions. Figure 4 , Figure 9 and Figure 14The description of the resource data processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer program products or computer program embodiments related to this application, please refer to the description of the method embodiments of this application.
[0312] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0313] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.
[0314] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.
[0315] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0316] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A resource data processing method, characterized in that, The method is executed by a central main device; the central main device is the first main device corresponding to the first main device associated with the first business object; The first entity is determined from a plurality of entities associated with the first business object; the method includes: The message data processing node receives a first type of resource conversion rate for a transaction resource pair associated with the first subject, issued by a first business theme. The message data processing node is a distributed node in a distributed message data processing system associated with the first business theme. The first type of resource conversion rate includes at least a first external resource conversion rate uploaded by the message data processing node based on the first business theme by a second subject device corresponding to the second subject associated with the first business object. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second subject for the transaction resource pair. The second subject is a subject other than the first subject among the plurality of subjects. The second business object is a business object used to provide the resource conversion rate of the transaction resource pair to the plurality of subjects, and the second business object is different from the first business object. Resource conversion parameters are obtained from the resource data processing strategy associated with the second business theme of the first business object. Based on the resource conversion parameters, resource data processing is performed on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme. The internal resource conversion rate is uploaded to the message data processing node based on the second business theme, so that the message data processing node uses the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to uniformly provide resource quotations to the multiple entities.
2. The method according to claim 1, characterized in that, If a first resource processing service component is deployed on the first principal device corresponding to the first principal, then the first principal device, which serves as the central principal device, is used to subscribe to topic publication information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publication information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic. The method further includes: The first resource processing service component generates a first resource subscription request for subscribing to the first business topic. The first resource subscription request is sent to the message data processing node, so that when the message data processing node has the first type of resource conversion rate of the transaction resource pair associated with the first business topic in the topic publication information stored in the first distributed message queue, it sends the first type of resource conversion rate to the central main device based on the first business topic.
3. The method according to claim 1, characterized in that, If a first resource processing service component is deployed on the first main device corresponding to the first main device, then the first main device, which is the central main device, is used to determine the internal resource conversion rate associated with the second business topic through the first resource processing service component; The step of obtaining resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object, and performing resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme includes: The target time period indicated by the resource processing strategy is obtained through the first resource processing service component; Obtain the resource volatility of the first type of resource conversion rate during the target time period; Based on the first type of resource conversion rate and the resource volatility, the conversion rate fluctuation value corresponding to the first type of resource conversion rate is determined, and the conversion rate fluctuation value corresponding to the first type of resource conversion rate is used as the resource conversion parameter; The resource conversion parameters are superimposed on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme.
4. The method according to claim 1, characterized in that, When a second resource processing service component is deployed in the first main device corresponding to the first main device, the first type of resource conversion rate also includes the second external resource conversion rate uploaded by the first main device based on the first business topic, which is obtained by the message data processing node; The second external resource conversion rate is the resource conversion rate provided by the second business object accessed by the first entity for the transaction resource pair; The method further includes: When the first main device is used as the central main device, the terminal device associated with the second business object is accessed through the second resource processing service component; The system receives the resource conversion rate issued by the terminal device associated with the second business object for the transaction resource pair, and obtains the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate.
5. The method according to claim 4, characterized in that, The step of obtaining the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate includes: The received resource conversion rate is used as the resource conversion rate to be uploaded, and a reasonable resource conversion rate range associated with the resource conversion rate to be uploaded is obtained; If the conversion rate of the resource to be uploaded is within the reasonable conversion rate range, then the conversion rate of the resource to be uploaded will be used as the second external resource conversion rate for uploading to the message data processing node.
6. The method according to claim 4, characterized in that, The received resource conversion rate is the resource conversion rate in the first service quotation provided by the second service object; the first service quotation is obtained by the terminal device associated with the second service object after receiving the resource inquiry request sent by the first subject for the transaction resource pair; The step of obtaining the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate includes: When the resource acquisition time corresponding to the second resource processing service component is the reference resource acquisition time, the received resource conversion rate is used as the resource conversion rate to be uploaded, and the first business timestamp corresponding to the received resource conversion rate is used as the reference business timestamp corresponding to the resource conversion rate to be uploaded; the first business timestamp corresponding to the received resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the obtained resource inquiry request; Obtain the valid time interval associated with the conversion rate of the resource to be uploaded; If the time interval determined based on the reference service timestamp and the reference resource acquisition time is less than or equal to the effective time interval, then the resource conversion rate to be uploaded is used as the second external resource conversion rate for uploading to the message data processing node.
7. The method according to claim 4, characterized in that, The received resource conversion rate is the resource conversion rate in the first service quotation provided by the second service object; the first service quotation is obtained by the terminal device associated with the second service object after receiving the resource inquiry request sent by the first subject for the transaction resource pair; The step of obtaining the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate includes: When the resource acquisition time corresponding to the second resource processing service component is the first resource acquisition time, the received resource conversion rate is used as the resource conversion rate to be uploaded, and the first business timestamp corresponding to the received resource conversion rate is used as the first comparison timestamp corresponding to the resource conversion rate to be uploaded; the first business timestamp corresponding to the received resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the obtained resource inquiry request; In the resource acquisition time corresponding to the second resource processing service component, the resource acquisition time acquired before the first resource acquisition time is taken as the second resource acquisition time, the first historical resource conversion rate received from the terminal device associated with the second business object at the second resource acquisition time is taken as the first reference resource conversion rate, and the first business timestamp corresponding to the first historical resource conversion rate is taken as the first reference timestamp; the first historical resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair; one second message acquisition time corresponds to one first historical resource conversion rate; The first reference timestamp is compared with the first comparison timestamp to obtain the first timestamp comparison result. If the first timestamp comparison result indicates that the first reference timestamp is less than or equal to the first comparison timestamp, then the resource conversion rate to be uploaded is used as the second external resource conversion rate for uploading to the message data processing node.
8. The method according to claim 2, characterized in that, The resource conversion rate of the first type in the topic publication information stored in the first distributed message queue is the resource conversion rate in the first service quotation provided by the second service object; the first service quotation is obtained by the terminal device associated with the second service object after obtaining the resource inquiry request sent by the second subject for the transaction resource pair; Before obtaining resource transformation parameters from the resource data processing strategy associated with the second business topic of the first business object, the method further includes: When the message acquisition time corresponding to the first resource processing service component is the first message acquisition time, the first type of resource conversion rate obtained from the first distributed message queue is used as the resource conversion rate to be processed, and the first business timestamp corresponding to the first type of resource conversion rate is used as the second comparison timestamp corresponding to the resource conversion rate to be processed; the first business timestamp corresponding to the first type of resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object from the acquired resource inquiry request; In the message acquisition time corresponding to the first resource processing service component, the message acquisition time acquired before the first message acquisition time is taken as the second message acquisition time, the second historical resource conversion rate acquired from the first distributed message queue at the second message acquisition time is taken as the second reference resource conversion rate, and the first business timestamp corresponding to the second historical resource conversion rate is taken as the second reference timestamp; the second historical resource conversion rate is the resource conversion rate provided by the second business object for the transaction resource pair; one second message acquisition time corresponds to one second historical resource conversion rate; The second reference timestamp is compared with the second comparison timestamp to obtain the second timestamp comparison result. If the second timestamp comparison result indicates that the second reference timestamp is less than or equal to the second comparison timestamp, then the step of obtaining resource conversion parameters from the resource data processing strategy associated with the second business subject of the first business object is executed.
9. The method according to claim 8, characterized in that, If a third resource processing service component is deployed on the first principal device corresponding to the first principal, then the first principal device, which serves as the central principal device, is used to subscribe to topic publication information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publication information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic. The method further includes: The third resource processing service component generates a second resource subscription request for subscribing to the second business topic. The second resource subscription request is sent to the message data processing node so that when the message data processing node finds a second type of resource conversion rate for the transaction resource pair associated with the second business topic in the topic publication information stored in the second distributed message queue, it distributes the second type of resource conversion rate to the central main device based on the second business topic.
10. The method according to claim 9, characterized in that, The step of uploading the internal resource conversion rate to the message data processing node based on the second business topic includes: Generate a second service quotation corresponding to the internal resource conversion rate; the second service quotation includes a second service timestamp corresponding to the internal resource conversion rate; the second service timestamp is the first service timestamp corresponding to the external resource conversion rate corresponding to the internal resource conversion rate. Based on the second business theme, the second business quotation is uploaded to the message data processing node, so that the message data processing node adds the second business quotation to the second distributed message queue and uses the internal resource conversion rate in the second business quotation as the second type of resource conversion rate.
11. The method according to claim 10, characterized in that, The method further includes: When the message data processing node receives a second type of resource conversion rate from the topic publication information stored in the second distributed message queue that is associated with the first subject, the third resource processing service component adds the received second type of resource conversion rate to the resource cache associated with the first subject device based on the second type of resource conversion rate issued by the second business topic. When a resource quotation request is received from a quotation query object for a business transaction, the transaction resource pair associated with the business transaction is taken as the target transaction resource pair; the quotation query object is a business object used to query quotations from the multiple entities. The third resource processing service component obtains the second type of resource conversion rate of the target transaction resource pair from the resource cache, and obtains the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair; Obtain the maximum business timestamp from the second business timestamp corresponding to the second type of resource conversion rate of the target transaction resource pair, and use the second type of resource conversion rate corresponding to the obtained maximum business timestamp as the target second type of resource conversion rate; Based on the target second type of resource conversion rate and the resource quotation provisioning strategy associated with the business transaction, a resource quotation conversion rate for providing quotations to the quotation query object is determined.
12. The method according to claim 11, characterized in that, Before adding the received second type of resource conversion rate to the resource cache, the method further includes: When the quote acquisition time corresponding to the third resource processing service component is the first quote acquisition time, the second type of resource conversion rate obtained from the second distributed message queue will be used as the resource conversion rate to be cached, and the second business timestamp corresponding to the second type of resource conversion rate will be used as the third comparison timestamp corresponding to the resource conversion rate to be cached. In the quote acquisition time corresponding to the third resource processing service component, the quote acquisition time obtained before the first quote acquisition time is taken as the second quote acquisition time, the third historical resource conversion rate obtained from the second distributed message queue at the second quote acquisition time is taken as the third reference resource conversion rate, and the second business timestamp corresponding to the third historical resource conversion rate is taken as the third reference timestamp; the third historical resource conversion rate is the internal resource conversion rate provided by the first business object for the transaction resource pair; one second message acquisition time corresponds to one third historical resource conversion rate; The third reference timestamp is compared with the third comparison timestamp to obtain the third timestamp comparison result. If the third timestamp comparison result indicates that the third reference timestamp is less than or equal to the third comparison timestamp, then the step of adding the received second type of resource conversion rate to the resource cache is performed.
13. A resource data processing method, characterized in that, The method is executed by a message data processing node; the message data processing node is a distributed node in a distributed message data processing system; the method includes: Upon obtaining the first type of resource conversion rate for a transaction resource pair associated with the first entity, the first type of resource conversion rate for the transaction resource pair associated with the first entity is sent to the central entity device based on the first business theme. This allows the central entity device to obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object corresponding to the central entity device. Based on the resource conversion parameters, the central entity device performs resource data processing on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business theme. The central entity device is the first entity device corresponding to the first entity associated with the first business object. The first entity is determined from multiple entities associated with the first business object. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second entity device corresponding to the second entity associated with the first business object based on the first business theme, obtained by the message data processing node. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second entity for the transaction resource pair. The second entity is a entity other than the first entity among the multiple entities. The second business object is a business object used to provide the resource conversion rate of the transaction resource pair to the multiple entities, and the second business object is different from the first business object. Upon receiving the internal resource conversion rate uploaded by the central main device based on the second business theme, the obtained internal resource conversion rate is used as the second type of resource conversion rate for the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to uniformly provide resource quotations to the multiple entities.
14. The method according to claim 13, characterized in that, If a first resource processing service component is deployed on the first principal device corresponding to the first principal, then the first principal device, which serves as the central principal device, is used to subscribe to topic publication information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publication information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic. Upon obtaining the first type of resource conversion rate for the transaction resource pair associated with the first entity, the step of sending the first type of resource conversion rate for the transaction resource pair associated with the first entity to the central entity device based on the first business theme includes: After receiving the first resource subscription request generated by the central main device through the first resource processing service component for subscribing to the first business topic, if it is determined in the topic publication information stored in the first distributed message queue that there is a first type of resource conversion rate for the transaction resource pair associated with the first business topic, then when the first type of resource conversion rate of the transaction resource pair is obtained from the topic publication information stored in the first distributed message queue, the first type of resource conversion rate is sent to the central main device based on the first business topic.
15. The method according to claim 13, characterized in that, If a third resource processing service component is deployed on the first principal device corresponding to the first principal, then the first principal device, which serves as the central principal device, is used to subscribe to topic publication information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publication information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic. The method further includes: After receiving the second resource subscription request generated by the central main device through the third resource processing service component for subscribing to the second business topic, if it is determined in the topic publication information stored in the second distributed message queue that there is a second type of resource conversion rate for the transaction resource pair associated with the second business topic, then when the second type of resource conversion rate of the transaction resource pair is obtained from the topic publication information stored in the second distributed message queue, the second type of resource conversion rate is sent to the central main device based on the second business topic.
16. A resource data processing device, characterized in that, The device operates on a central main device, which is the first main device corresponding to the first main device associated with the first business object; The first entity is determined from a plurality of entities associated with the first business object; the apparatus includes: A first resource receiving module is configured to receive a first type of resource conversion rate for a transaction resource pair associated with the first subject, issued by a message data processing node based on a first business theme; the message data processing node is a distributed node in a distributed message data processing system associated with the first business theme; the first type of resource conversion rate includes at least a first external resource conversion rate uploaded by a second subject device corresponding to a second subject associated with the first business subject, obtained by the message data processing node, based on the first business theme; the first external resource conversion rate is the resource conversion rate provided by a second business object accessed by the second subject for the transaction resource pair; the second subject is a subject other than the first subject among the plurality of subjects; the second business object is a business object used to provide the resource conversion rate of the transaction resource pair to the plurality of subjects, and the second business object is different from the first business object; The resource data processing module is used to obtain resource conversion parameters from the resource data processing strategy associated with the second business theme of the first business object, and perform resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain the internal resource conversion rate associated with the second business theme; An internal resource upload module is used to upload the internal resource conversion rate to the message data processing node based on the second business theme, so that the message data processing node uses the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme; the second type of resource conversion rate is a resource conversion rate used to uniformly provide resource quotations to the multiple entities.
17. A resource data processing device, characterized in that, The device operates on a message data processing node, which is a distributed node in a distributed message data processing system; the device includes: The first resource distribution module is used to, upon obtaining a first type of resource conversion rate for a transaction resource pair associated with a first entity, distribute the first type of resource conversion rate for the transaction resource pair associated with the first entity to a central entity device based on a first business theme. This allows the central entity device to obtain resource conversion parameters from a resource data processing strategy associated with a second business theme of a first business object corresponding to the central entity device, and to perform resource data processing on the first type of resource conversion rate based on the resource conversion parameters to obtain an internal resource conversion rate associated with the second business theme. The central entity device is the first entity device corresponding to the first entity associated with the first business object. The first entity is determined from multiple entities associated with the first business object. The first type of resource conversion rate includes at least the first external resource conversion rate uploaded by the second entity device corresponding to the second entity associated with the first business object based on the first business theme, obtained by the message data processing node. The first external resource conversion rate is the resource conversion rate provided by the second business object accessed by the second entity for the transaction resource pair. The second entity is a entity other than the first entity among the multiple entities. The second business object is a business object used to provide the resource conversion rate of the transaction resource pair to the multiple entities, and the second business object is different from the first business object. The internal resource receiving module is used to, upon receiving the internal resource conversion rate uploaded by the central main device based on the second business theme, use the obtained internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business theme; the second type of resource conversion rate is the resource conversion rate used to uniformly provide resource quotations to the multiple entities.
18. A computer device, characterized in that, Including memory and processor; The memory is connected to the processor, the memory is used to store computer programs, and the processor is used to invoke the computer programs so that the computer device performs the method according to any one of claims 1-15.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any one of claims 1-15.
20. A computer program product, characterized in that, Includes a computer program / instruction that, when executed by a processor, implements the method according to any one of claims 1-15.