Resource data processing method and device, equipment and medium
By aggregating and processing external resource conversion rates into uniform internal rates through a central device, the solution addresses uneven quotation quality across entities within an organization, ensuring consistent and optimized resource quotations.
Patent Information
- Application Number
- CN202310731470.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-19
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2043-06-19
AI Technical Summary
In a multi-entity organization scenario, different entities provide uneven quality of resource quotations due to using external resource conversion rates from separate external institutions, making it difficult to ensure consistent quotation quality across all entities.
A central subject device aggregates and processes external resource conversion rates from various business objects, converting them into uniform internal rates for consistent quotation across all entities, using a distributed message data processing system.
This approach ensures that all entities within the organization share the same resource conversion rate, optimizing and improving the quality of resource quotations uniformly provided by each entity.
Smart Images

Figure CN119168723A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a resource data processing method, device, equipment and medium. Background Art
[0002] At present, for a certain institution, as the business of the institution expands, there may be multiple entities of the same institution distributed in different regions, and these entities in different regions are independently operated. For example, for ease of understanding, here we take the multiple entities associated with the same institution (for example, institution 1) including entity A and entity B as an example. At this time, the resource conversion rate provider connected to entity A can be other external institutions different from institution 1 (for example, institution 2), and the resource conversion rate provider connected to entity B can be other external institutions different from institution 1 (for example, institution 3). This means that entity A can provide customer quotations by obtaining the external resource conversion rate (for example, resource conversion rate X) provided by institution 2 for a certain transaction resource pair when connected to institution 2, and entity B can provide customer quotations by obtaining another external resource conversion rate (for example, resource conversion rate Y) provided by institution 3 for the transaction resource pair when connected to institution 3.
[0003] Based on this, the inventors have found in practice that when different entities in the same organization quote to customers through the external resource conversion rates obtained from their respective external organizations, the quality of resource quotations provided by different entities will be uneven (i.e., entity A provides customer quotations through the above resource conversion rate X, while entity B provides customer quotations through the above resource conversion rate Y). This means that in a multi-entity scenario, it is difficult to ensure the quality of the resource quotations provided by each entity when making quotations to customers. Summary of the invention
[0004] The embodiments of the present application provide a resource data processing method, apparatus, device and medium, which can optimize the resource quotation of each subject in a scenario where multiple subjects are associated with the same organization, thereby improving the resource quotation quality of different subjects.
[0005] On the one hand, an embodiment of the present application provides a resource data processing method, which is executed by a central subject device; the central subject device is a first subject device corresponding to a first subject associated with a first business object; the first subject is determined from multiple subjects associated with the first business object; the method includes:
[0006] 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 topic; the message data processing node is a distributed node in a distributed message data processing system associated with the first business topic; the first type of resource conversion rate at least includes a first external resource conversion rate uploaded by a second subject device corresponding to a second subject associated with a first business object acquired by the message data processing node based on the first business topic; the first external resource conversion rate is a 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 multiple subjects; the second business object is a business object used to provide resource conversion rates of transaction resource pairs to multiple subjects, and the second business object is different from the first business object;
[0007] Acquire a resource conversion parameter from a resource data processing strategy associated with a second business subject of the first business object, perform resource data processing on a first type resource conversion rate based on the resource conversion parameter, and obtain an internal resource conversion rate associated with the second business subject;
[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 uses the acquired 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 multiple entities.
[0009] On the other hand, an embodiment of the present application provides 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 subject is obtained, the first type of resource conversion rate of the transaction resource pair associated with the first subject is sent to the central subject device based on the first business subject, so that the central subject device obtains the resource conversion parameter from the resource data processing strategy associated with the second business subject of the first business object corresponding to the central subject device, performs resource data processing on the first type of resource conversion rate based on the resource conversion parameter, and obtains the internal resource conversion rate associated with the second business subject; the central subject device is a 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 at least includes a first external resource conversion rate uploaded by a second subject device corresponding to the second subject associated with the first business object based on the first business subject obtained by the message data processing node; the first external resource conversion rate is a resource conversion rate provided by the second business object connected to the second subject for the transaction resource pair; the second subject is a subject other than the first subject among the 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;
[0011] When the internal resource conversion rate uploaded by the central subject device based on the second business theme is received, 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 a resource conversion rate used to provide unified resource quotations to multiple subjects.
[0012] On the one hand, an embodiment of the present application provides a resource data processing device, the device running on a central subject device, the central subject device is a first subject device corresponding to a first subject associated with a first business object; the first subject is determined from multiple subjects associated with the first business object; the device includes:
[0013] A 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, which is issued by a message data processing node based on a first business topic; the message data processing node is a distributed node in a distributed message data processing system associated with the first business topic; the first type of resource conversion rate at least includes a first external resource conversion rate uploaded by a second subject device corresponding to a second subject associated with a first business object acquired by the message data processing node based on the first business topic; the first external resource conversion rate is a resource conversion rate provided by a second business object connected to 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 of transaction resource pairs to multiple subjects, and the second business object is different from the first business object;
[0014] A resource data processing module, configured to obtain a resource conversion parameter from a resource data processing strategy associated with a second business subject of the first business object, and perform resource data processing on a first type resource conversion rate based on the resource conversion parameter to obtain an internal resource conversion rate associated with the second business subject;
[0015] 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 acquired 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 multiple entities.
[0016] On the other hand, an embodiment of the present application provides a resource data processing device, which runs on a message data processing node, and the message data processing node is a distributed node in a distributed message data processing system; the device includes:
[0017] A first resource delivery module is used to deliver the first type of resource conversion rate of the transaction resource pair associated with the first subject to a central subject device based on a first business theme when a first type of resource conversion rate of the transaction resource pair associated with the first subject is obtained, so that the central subject device obtains a resource conversion parameter from a resource data processing strategy associated with a second business theme of a first business object corresponding to the central subject device, performs resource data processing on the first type of resource conversion rate based on the resource conversion parameter, and obtains an internal resource conversion rate associated with the second business theme; the central subject device is a 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 at least includes a first external resource conversion rate uploaded by a second subject device corresponding to the second subject associated with the first business object based on the first business theme acquired by the message data processing node; the first external resource conversion rate is a resource conversion rate provided by a second business object connected to the second subject for the transaction resource pair; the second subject is a subject other than the first subject among the multiple subjects; the second business object is a business object used to provide resource conversion rates of transaction resource pairs to multiple subjects, and the second business object is different from the first business object;
[0018] The internal resource receiving module is used to, when receiving the internal resource conversion rate uploaded by the central subject device based on the second business subject, use the acquired internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business subject; the second type of resource conversion rate is a resource conversion rate used to uniformly provide resource quotations to multiple subjects.
[0019] On one hand, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method provided in the above aspect of the embodiment of the present application.
[0020] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor, so that a computer device with a processor executes the method provided in the above aspect of the embodiment of the present application.
[0021] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method provided in the above aspect.
[0022] In an embodiment of the present application, a second subject device corresponding to a second subject (such as a subject) associated with a first business object (such as institution A) can obtain a first external resource conversion rate (it can be understood that the resource conversion rate provided by the external business object is an external resource conversion rate) from a connected second business object (such as an institution other than institution A that can provide a resource conversion rate, such as an offshore institution, a foreign exchange bank, other institutions, etc., it can be understood that the second business object can be called an external business object of the first business object, and can also be called an external price source, an external resource conversion rate provider, etc.), and upload the message data to the distributed message data processing system based on the first business topic. The processing node, the message data processing node can send the first type of resource conversion rate including the first external resource conversion rate to the central subject device based on the first business subject. The central subject device is the first subject device corresponding to the first subject associated with the first business object (which can refer to the original subject under the organization A or a newly created subject). In this way, the external resource conversion rates obtained by multiple subjects can be aggregated, and the data isolation between the external resource conversion rates obtained by different subjects can be removed. At this time, when the central subject device receives the first type of resource conversion rate, it can obtain the resource data processing strategy associated with the second business subject of the first business object. Take the resource conversion parameter, perform resource data processing on the first type of resource conversion rate based on the resource conversion parameter, and obtain the internal resource conversion rate associated with the second business theme (it can be understood that the first type of resource conversion rate is uniformly processed to obtain the internal resource conversion rate provided by the first business object, that is, the resource conversion rate provided internally, that is, the first business object can be regarded as an internal price source), and upload the internal resource conversion rate to the message data processing node based on the second business theme. The message data processing node can use the acquired 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 used to It can be understood that multiple subjects uniformly provide resource conversion rates for resource quotations, so that multiple subjects (first subject and second subject) associated with the first business object can share the same resource conversion rate, that is, the resource conversion rate obtained by any subject through the connected second business object can be used by other subjects, that is, the internal resource conversion rate corresponding to the external resource conversion rate obtained by one subject can be obtained and used by another subject, and all subjects of the same organization can share and provide the same resource quotation. Therefore, in the scenario where there are multiple subjects associated with the same organization, the resource quotation of each subject can be optimized, thereby improving the resource quotation quality of different subjects. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;
[0025] Figure 2 It is a schematic diagram of a resource data processing process provided by an embodiment of the present application;
[0026] Figure 3 This is a schematic diagram of a price inquiry scenario provided by an embodiment of the present application;
[0027] Figure 4 This is a schematic diagram of a resource data processing method provided in an embodiment of the present application. Figure 1 ;
[0028] Figure 5 This is a schematic diagram of a scenario for screening resource conversion rates provided in an embodiment of the present application;
[0029] Figure 6 This is a resource quotation scenario provided by the embodiment of the present application. Figure 1 ;
[0030] Figure 7 This is a resource quotation scenario provided by the embodiment of the present application. Figure 2 ;
[0031] Figure 8 This is a resource quotation scenario provided by the embodiment of the present application. Figure 3 ;
[0032] Fig. 9 This is a schematic diagram of a resource data processing method provided in an embodiment of the present application. Figure 2 ;
[0033] Fig.10 This is a schematic diagram of a distributed resource quotation scenario provided by an embodiment of the present application. Figure 1 ;
[0034] Fig.11 This is a schematic diagram of a distributed resource quotation scenario provided by an embodiment of the present application. Figure 2 ;
[0035] Fig.12 This is a schematic diagram of a distributed resource quotation scenario provided by an embodiment of the present application. Figure 3 ;
[0036] Fig.13This is a schematic diagram of a distributed resource quotation scenario provided by an embodiment of the present application. Figure 4 ;
[0037] Fig.14 This is a schematic diagram of a resource data processing method provided in an embodiment of the present application. Figure 3 ;
[0038] Fig.15 This is a schematic diagram of a scenario of uploading external resource conversion rate provided by an embodiment of the present application;
[0039] Fig.16 It is a schematic diagram of an interactive process of resource data processing provided by an embodiment of the present application;
[0040] Fig.17 is a structural diagram of a resource data processing device provided in an embodiment of the present application;
[0041] Fig.18 is a structural diagram of a resource data processing device provided in an embodiment of the present application;
[0042] Fig.19 is a structural schematic diagram of a computer device provided in an embodiment of the present application;
[0043] Fig. 20 It is a schematic diagram of a resource data processing system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] See also Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. 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), and the number of distributed nodes is not limited here. Figure 1 As shown, the multiple distributed nodes may include distributed node 100a, distributed node 100b, ..., distributed node 100n; Figure 1As shown, distributed nodes 100a, distributed nodes 100b, ..., distributed nodes 100n can respectively establish network connections with servers in server cluster 200, so that distributed nodes in the distributed message data processing system can exchange data with servers in server cluster 200 through the network connection. Accordingly, server cluster 200 may include one or more servers (also referred to as main devices), and the number of servers is not limited here. Figure 1 As shown, the multiple servers may include server 200a, server 200b, ..., server 200n; Figure 1 As shown, the server 200a, the server 200b, ..., the server 200n can respectively 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 exchange data 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, and the number of terminal devices is not limited here.
[0046] It is understandable that if Figure 1 Each terminal device shown in the figure may be installed with a target application. When the target application is running in each terminal device, it can be respectively connected to Figure 1 The servers in the server cluster shown perform data interaction, so that the servers in the server cluster can 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 a transaction resource pair before executing a business transaction (for example, before a user (e.g., user A) executes a business transaction with another user (e.g., user B)).
[0048] The target application may include an application with a business data processing function (e.g., a price inquiry function, a transaction execution function, etc.). The terminal device may generate a resource quotation request (quotation inquiry request) for a business transaction through the price inquiry function of the target application, and send it to a server in the server cluster to obtain a corresponding resource quotation, or the terminal device may execute a business transaction through the transaction execution function of the target application, such as converting a certain amount of one type of resource into a certain amount of another type of resource, and using the other type of resource to purchase a specified item (e.g., converting a certain amount of US dollars into a certain amount of RMB to purchase a specified airline ticket).
[0049] Among them, it can be understood that the applications here can specifically include multimedia applications (for example, video applications), entertainment applications (for example, game applications), educational applications, shopping applications, resource management applications, instant messaging applications, etc. These applications can have multimedia data (for example, text and pictures) loading and display functions, and can also have item purchase or resource (asset) transfer functions. Exemplarily, the application can be a social application, an educational application, a short video application, a resource transfer application, etc. Among them, the application can be an independent application that can be installed in a terminal device and run in the current operating system of the terminal device; the application can also be an embedded sub-application in a certain application (such as an instant messaging application, an educational application, etc.) (for example, the embedded sub-program can specifically be a small program), and the specific form of the application will not be limited here.
[0050] Among them, it can be understood that the main device corresponding to each of the multiple main bodies associated with the first business object can be one or more servers. Here, the main device corresponding to a main body is a server as an example, so the embodiment of the present application can use any server in the above-mentioned server cluster (such as server 200a) as the central main device (i.e., the first main device) and the remaining servers in the server cluster as the second main device. The second main device can each access different second business objects for providing resource conversion rates of transaction resource pairs. When the second main device obtains the resource conversion rate of the transaction resource pair from the accessed second business object, it can be used as the first external resource conversion rate and uploaded to the message data processing node in the distributed message data processing system. At this time, it can be a second main device corresponding to a message data processing node, or multiple second main devices correspond to a message data processing node, which is not limited here. The message data processing node in the distributed message data processing system can use the received first external resource conversion rate as the first type of resource conversion rate and send it to the central main device. The central main device can process the first type of resource conversion rate to obtain the internal resource conversion rate and upload it to the message data processing node in the distributed message data processing system. When receiving the internal resource conversion rate, the message data processing node uses it as the second type resource conversion rate of the transaction resource pair, and the second type resource conversion rate of the transaction resource pair is used to uniformly provide resource quotations to multiple entities. For example, the message data processing node in the distributed message data processing system sends the second type resource conversion rate to the second entity device. When the user sends a resource quotation request for a business transaction through a terminal device (such as terminal device 200a), the terminal device can send the resource quotation request to the corresponding second entity device, and the second entity device makes relevant customer quotations based on the second type resource conversion rate of the transaction resource pair indicated by the resource quotation request.
[0051] In addition, it can be understood that the device corresponding to the second business object connected to each second main body device can be a terminal device or a server. The second main body 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 sheet including the resource conversion rate of the transaction resource pair, and returns it to the second main body device, so that the second main body device receives the resource conversion rate of the transaction resource pair provided by the second business object to which it is connected.
[0052] It can be understood that the first subject device and the second subject device are collectively referred to as subject devices. That is, the subject devices corresponding to the multiple subjects associated with the first business object. The central subject device can be an additionally configured subject device dedicated to processing the first type of resource conversion rate, that is, the newly created subject among the multiple subjects is the central subject (that is, the first subject), or it can be a subject device that can simultaneously process the first type of resource conversion rate and has all or part of the functions of the second subject device, that is, a subject is selected from the existing subjects as the central subject, and the subject device corresponding to the selected subject is the central subject device. For example, the second main body device obtains the resource conversion rate of the provided transaction resource pair from the second business object to which it is connected through the second resource processing service component (for example, it can be called an external resource processing service component, an external resource access service component, etc.). When the central main body device is also deployed with the second resource processing service component, the central main body device can access the second business object through the second resource processing service component (the second business objects accessed by different main devices may be different), and obtain the resource conversion rate of the provided transaction resource pair from the accessed second business object (for example, it is called a second external resource conversion rate). The central main body 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 body device receives the second type of resource conversion rate issued by the message data processing node through the third resource processing service component (for example, it can be called a customer quotation service component, etc.), and when receiving a resource quotation request for a business transaction, it makes a resource quotation based on the second type of resource conversion rate. When the central main body device is also deployed with the third resource processing service component, the central main body 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 be used to receive resource quotation requests sent by users through terminal devices, such as when receiving a resource quotation request for a business transaction, it makes a resource quotation based on the second type of resource conversion rate.
[0054] Among them, the above-mentioned terminal devices may specifically include: smart phones, tablet computers, laptops, desktop computers, smart TVs, smart speakers, desktop computers, smart watches, smart cars, smart voice interaction devices, smart home appliances and other smart terminals with multimedia data processing functions (for example, text data display functions), but are not limited to this. It should be understood that the embodiments of the present application are not limited here. Among them, the server in the server cluster or the distributed node in the distributed message data processing system can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0055] Understandably, Figure 1 The possible network architecture of the technical solution of the present application is merely exemplified and does not limit the specific architecture of the technical solution of the present application. That is, the technical solution of the present application can also provide other forms of network architecture.
[0056] For further understanding, please refer to Figure 2 , Figure 2It is a schematic diagram of a resource data processing process provided by an embodiment of the present application. Among them, the first business object is associated with multiple subjects, and the multiple subjects are related and independent. The multiple subjects include a first subject 20a and a second subject (such as a second subject 20b and a second subject 20c, and the number of the second subjects is not limited here, and only two second subjects are taken as an example here), the first subject 20a corresponds to a first subject device, and the first subject device is also called a central subject device, the second subject 20b corresponds to a second subject device, and the second subject 20c corresponds to a second subject device. Each second subject device is connected to a second business object, and the second business objects connected to different second subject devices can be different, and each second subject device can be connected to one or more second business objects. Here, the second subject 20b corresponds to the second subject device to access a second business object (21a), and the second subject 20c corresponds to the second subject device to access multiple second business objects (21b, ..., 21n) as an example, and the number of second business objects connected to each second subject (second subject device) is not limited here.Therefore: S211, the second subject 20b corresponds to the second subject device to obtain the resource conversion rate a21 of the provided transaction resource pair from the connected second business object 21a; S212, the second subject 20c corresponds to the second subject device to obtain the resource conversion rate a22 of the provided transaction resource pair from the connected second business object 21b; S213, the second subject 20c corresponds to the second subject device to obtain the resource conversion rate a23 of the provided transaction resource pair from the connected second business object 21n (the operation after the second subject 20c corresponds to the second subject device to access other second business objects is the same); S221, the second subject 20b corresponds to the second subject device to use the resource conversion rate a21 as the first external resource conversion rate b21, and upload it to the message data processing node in the distributed message data processing system based on the first business topic; S222, the second subject 20c corresponds to the second subject device to use the resource conversion rate a22 and the resource conversion rate a23 as the first external resource conversion rate b22, and upload it 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 comprises a plurality of message data processing nodes; S23, the message data processing node uses the uploaded first external resource conversion rate b21 and the first external resource conversion rate b22 as the first type resource conversion rate of the transaction resource pair associated with the first subject based on the first business subject, and sends them to the first subject device corresponding to the first subject 20a based on the first business subject; S24, the first subject device 22 obtains the resource conversion parameter from the resource data processing strategy associated with the second business subject of the first business object, performs resource data processing on the first type resource conversion rate based on the resource conversion parameter, and obtains the internal resource conversion rate associated with the second business subject; S25, the first subject device 22 uploads the internal resource conversion rate to the message data processing node based on the second business subject; S26, the message data processing node uses the obtained internal resource conversion rate as the second type resource conversion rate of the transaction resource pair based on the second business subject, and the second type resource conversion rate can be used to uniformly provide resource quotations to multiple subjects associated with the first business object.
[0057] It can be understood that there is data isolation between multiple subjects, that is, the resource conversion rate of the transaction resource pair obtained by the subject device corresponding to each subject from the connected second business object cannot be directly transmitted to each other through data interaction. Therefore, the resource conversion rate of the transaction resource pair obtained by the subject device corresponding to each subject can be summarized through a distributed message data processing system, and at the same time, the central subject device uniformly processes it into an internal resource conversion rate associated with the second business subject to obtain the second type of resource conversion rate of the transaction resource pair for uniformly providing resource quotations to multiple subjects. In other words, the multiple subjects can all obtain the second type of resource conversion rate, thereby realizing the sharing of resource conversion rates among multiple subjects.
[0058] It can be understood that the present application can be applied to resource conversion rate queries in any field. For example, it can be applied to foreign exchange scenarios, that is, it can be used to query the resource conversion rate of transaction resource pairs associated with foreign exchange scenarios. For example, in foreign exchange scenarios, there is a situation where one currency in a pair of currency combinations is bought and another currency is sold, that is, the exchange between currencies (such as being able to exchange x1 currency A for y1 currency B). At this time, the first type of resource included in the transaction resource pair can be a currency, and the second type of resource included can be another currency. The resource conversion rate is the conversion rate between the two currencies in a pair of currency combinations, that is, the exchange rate. Another example can be applied to game scenarios, that is, it can be used to query the resource conversion rate of transaction resource pairs associated with game scenarios. For example, in the point exchange scenario, there is a situation where game coins are bought and game diamonds are sold (such as being able to exchange x1 game diamonds for y1 game coins X). At this time, the first type of resource included in the transaction resource can be a game diamond, and the second type of resource included can be a game coin. 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 the present application can be an offline store shopping scenario. For example, user A can be a physical merchant that only supports the first type of resources (for example, Hong Kong dollars (i.e., HKD)), and user B can be a shopping user holding the above-mentioned second type of resources (for example, RMB (i.e., CNY)). The first type of resources and the second type of resources constitute a transaction resource pair. It can be understood that in this offline store shopping scenario, when user B confirms to purchase a target item with a value of Q Hong Kong dollars in the store where user A is located, the payment process of user B is essentially to convert a certain amount of RMB into Q Hong Kong dollars according to a certain resource conversion rate, and pay the Q Hong Kong dollars to user A 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. Among them, when querying the resource conversion rate, the target application can generate a resource quotation request for a business transaction (such as a commodity payment transaction for purchasing a target item), and send the resource quotation request to the second main device (or the first main device), or the background server of the target application sends the resource quotation request to the second main device (or the first main device) to obtain the corresponding resource quotation. It can be understood that the first business object to which the second main device (or the first main device) belongs is a resource conversion platform (for example, a currency exchange platform). As the first business object of the resource conversion platform, an optimal resource quotation can be provided for each inquiry participant (i.e., user A) participating in the inquiry.
[0060] For ease of understanding, the following is an introduction to the technical terms involved in the technical fields to which the solutions of the embodiments of the present application may be applied:
[0061] 1. Trading resource pairs and resource conversion rate:
[0062] Among them, the transaction resource pair includes a first type of resource and a second type of resource, and the first type of resource and the second type of resource are different. In different scenarios, the first type of resource and the second type of resource included in the transaction resource pair are different. It should be understood that the first type of resource and the second type of resource involved in the embodiment of the present application can be collectively referred to as virtual resources. For example, the virtual resources here can specifically be universal currencies with a value fluctuation range such as US dollars, Hong Kong dollars, and RMB in foreign exchange scenarios; for another example, the virtual resources here can specifically be game coins, game experience points, game points, and game diamonds in game scenarios. For another example, the virtual resources here can also be virtual fireworks, virtual balloons, virtual airplanes, etc. in social scenarios. There is no limitation on the transaction resource pair here.
[0063] Among them, the resource conversion rate is used to indicate the exchange between the first type of resources and the second type of resources in the transaction resource pair. For example, taking the transaction resource pair of game coins and game diamonds as an example, assuming that in the first transaction direction mentioned above, the resource conversion rate can indicate: 1.25 game coins can be equivalently exchanged for 1 game diamond, where 1.25 is the resource quantity of the first type of resources mentioned above, and 1 is the resource quantity of the second type of resources mentioned above. At this time, the resource conversion rate indicates the conversion rate in the first transaction direction (that is, the transaction direction of selling game diamonds to buy game coins). That is, when a user pays 1 game diamond, 1.25 game coins can be exchanged for the user in the first transaction direction. Optionally, in the second transaction direction, the resource conversion rate may indicate that 1.25 game coins can be equivalently exchanged for 0.95 game diamonds. Then, 1 here is the resource quantity of the first type of resources, and 0.95 here is the resource quantity of the second type of resources. At this time, the resource conversion rate indicates that the conversion rate (also known as the quotation 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., ASK direction) (e.g., 0.8) will be higher than the conversion rate in the second transaction direction (i.e., BID direction) (e.g., 0.76). That is, when the user actually pays 1.25 game coins, 0.95 game coins can be exchanged for the user in the first transaction direction.
[0064] 2. Business timestamp.
[0065] It is understood that the resource conversion rate can be carried in the form of a business quotation, and the business quotation of a transaction resource pair is used to indicate the buying and selling information of the first type of resource (or the second type of resource) in the transaction resource pair. Figure 3As shown, Figure 3 is a schematic diagram of a price inquiry scenario provided in an embodiment of the present application; the second subject (such as Figure 2 When the second subject device corresponding to the second subject 20c in the example obtains the resource conversion rate of the transaction resource pair provided by the connected second business object 21b, a resource inquiry request for the transaction resource pair (for example, the first type of resource is AAA and the second type of resource is BBB) can be generated. The resource inquiry request carries a request timestamp (for example, 9pm on February 14, 2023). The request timestamp is the transaction system timestamp T in the resource inquiry request. The second subject sends the resource inquiry request to the second business object (for example, Figure 2 The terminal device corresponding to the second subject 24c) in the resource inquiry request obtains the resource conversion rate of the transaction resource pair indicated by the resource inquiry request by the terminal device corresponding to the second business object, and generates the 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, and the second subject device corresponding to the second subject obtains the resource conversion rate of the queried transaction resource pair from the first business quotation (for example, the conversion rate in the transaction direction of buying AAA is 0.8210, and the conversion rate in the transaction 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] Among them, it can be understood that the business object that can provide the resource conversion rate of the transaction resource pair is also called a business institution (i.e., the resource conversion rate provider, price source), such as an institution, an offshore institution, etc. For an institution, multiple independent business entities can be associated (such as a subject, such as the second subject mentioned above, optionally, the first subject can be an independent subject for resource conversion rate processing, or a subject with the same function as the second subject). For example, the institution (such as the resource conversion platform) sets up a subject in country A, which can be used as a specific resource conversion sub-platform under the resource conversion platform, and can query the resource conversion rate for users connected to country A. It can be understood that institutions need to conduct business in different regions and countries, or even in the same region or country because they need to conduct business in different fields, so they need to apply for the corresponding subject license required for business development and establish the corresponding subject for business development, and the subjects are often isolated from each other and operated independently as required.
[0067] It can be understood that for the subject of an institution (such as the first business object), the resource conversion rate provider other than the institution (such as the second business object) can be regarded as an external resource conversion rate provider (external price source), and the resource conversion rate obtained by the first business object from the second business object is the external resource conversion rate for the first business object (the first type of resource conversion rate), and the resource conversion rate used for the first business object to provide resource quotations to the outside is the internal resource conversion rate for the first business object (the second type of resource conversion rate). The subject devices corresponding to the multiple subjects associated with the first business object can access different second business objects to obtain the external resource conversion rate provided by the second business object. It can be understood that for a subject, the indicated external resource conversion rate provider can be accessed through the configuration and negotiation of relevant business personnel. The second business objects accessed by different subjects can be different. It can be understood that in some scenarios, when institution A (the first business object) conducts foreign exchange business, it is restricted by the laws and regulations of various countries and regions, and most of them cannot conduct business in multiple countries and regions through one subject. Therefore, it is necessary to establish independent subjects in multiple countries and regions around the world to conduct business and operations separately. In order to support the exchange business of each subject, the subject needs to realize the ability to quote foreign exchange to customers (i.e., provide resource quotes). Therefore, each subject will access the exchange rate price supplier (i.e., the price source, resource conversion rate provider) locally. The exchange rate price supplier connected can be called the second business object, which is used to provide resource conversion rates to multiple subjects of institution A). After accessing its price source, the external resource conversion rate obtained can be processed to obtain the internal resource conversion rate, which is used to realize the foreign exchange quotation to customers. For example, institution A (i.e., the first business object) is associated with subjects 1-3. Subject 1 can access institution B, institution C and offshore institution A. Institution B, institution C and offshore institution A can be the second business object connected to subject 1; subject 2 can access institution D and offshore institution B. Institution D and offshore institution B can be the second business object connected to subject 2; subject 3 can access offshore institution C. Offshore institution C can be the second business object connected to subject 3.
[0068] Among them, the distributed nodes (message data processing nodes) in the above-mentioned distributed message data processing system can be configured with a message queue for storing resource conversion rates. The central main device can subscribe to the first type of resource conversion rate in the message queue to the message data processing node. It can be understood that publish and subscribe means that the publisher generates data to the message center (message data processing node), and the subscriber subscribes to the messages of interest. The message center sends the relevant messages or data to the corresponding subscribers according to the subscribers' subscriptions. The specific process is that the message center adds the data produced by the publisher to the corresponding message queue, that is, enqueues, and each message queue is the same topic; then the message center will take out the messages from the message queue of the corresponding topic one by one according to the topic subscribed by the subscriber and deliver them to the subscriber (or consumer) to complete the dequeue.
[0069] In addition, the distributed message data processing system can be a blockchain system, which can be a distributed system formed by connecting the multiple distributed nodes through network communication. Among them, the distributed nodes can form a peer-to-peer (P2P) network, and the P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP) protocol. 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 mechanism and encryption algorithm. It is mainly used to organize data in chronological order and encrypt it into an account book so that it cannot be tampered with or forged. At the same time, data can be verified, stored and updated. When the message data processing node is connected to the blockchain system and becomes a blockchain node, due to the tamper-proof and anti-counterfeiting characteristics of the blockchain, the embodiment of the present application can ensure the authenticity and security of the data details (such as the first external resource conversion rate and the business timestamp) in the first business quotation sheet written into the blockchain account book when the first business quotation sheet containing the first external resource conversion rate is written into the blockchain account book, so that the results obtained after the relevant data processing based on these data are more reliable. It can be seen that the embodiment of the present application can share the uniformly processed internal resource conversion rate through the distributed message data processing system to ensure the quality of resource quotations provided by multiple entities of the same organization.
[0070] It should be noted that when the computer device in the embodiment of the present application obtains the user's personal data information and other data, it can 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 and other data are currently being collected. Only after the user issues a confirmation operation on the prompt interface or pop-up window, the relevant steps of data acquisition are started, otherwise it ends.
[0071] It is understandable that in the specific implementation of this application, business data of users, enterprises, institutions and other objects may be involved (for example, 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, it is necessary to obtain the permission or consent of users, enterprises, institutions and other objects, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0072] For further information, see Figure 4 , Figure 4 is a flow chart of a resource data processing method provided in an embodiment of the present application, such as Figure 4 As shown, the method can be executed by the central subject device mentioned above (the first subject device corresponding to the first subject associated with the first business object), for example, the central subject device can be the above Figure 1 Any server in the server cluster 200 shown. The method may specifically include the following steps S101-S103:
[0073] S101: Receive a first type 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 topic.
[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 a message data processing node can correspond to one or more subject devices (such as a first subject device or a second subject device). The function and execution logic of each message data processing node are the same.
[0075] Among them, the first subject is determined from multiple subjects associated with the first business object. It can be understood that the multiple subjects associated with the first business object may include a first subject (i.e., a central subject) and a second subject (i.e., a conventional subject). The second subject is a subject other than the first subject among the multiple subjects associated with the first business object. The first subject may be an existing subject associated with the first business object, or a newly created subject. For example, the first business object is associated with N subjects (N is a positive integer greater than 1), and the N subjects can be used to access their respective external resource conversion rate providers to obtain resource conversion rates for transaction resource pairs and make resource quotations. Optionally, one subject can be selected from the N subjects as the first subject, so that the remaining subjects in the N subjects except the selected subject are the second subjects, and the N subjects are the multiple subjects associated with the first business object. Alternatively, a new subject can be created as the first subject, so that the N subjects are all second subjects, and the N subjects and the newly created subject are the multiple subjects associated with the first business object. It can be understood that each subject may correspond to one or more devices (such as a server), the device corresponding to the first subject is a first subject device, and the device corresponding to the second subject is a second subject device.
[0076] Among them, the first type of resource conversion rate at least includes 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 topic acquired 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. It can be understood that the second business object is a business object used to provide a resource conversion rate of a transaction resource pair to multiple subjects (that is, a second business object is a business object used to provide a resource conversion rate of a transaction resource pair to a subject accessing the second business object), that is, 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 respectively to obtain different resource conversion rates provided for the transaction resource pair, such as multiple exchange rate information of the US dollar and the RMB. It can be understood that for a subject device that can access the second business object, one or more second business objects can be accessed, and the number of objects of the second business object accessed by a subject device is not limited here.
[0077] It can be understood that the second subject device corresponding to the second subject can obtain the resource conversion rate provided for the transaction resource pair from the terminal device corresponding to the connected 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 subject device 1 corresponding to the second subject 1 can obtain the resource conversion rate 1 provided for the transaction resource pair from the terminal device 1 corresponding to the connected second business object 1 as the first external resource conversion rate; the second subject device 2 corresponding to the second subject 2 can obtain the resource conversion rate 2 provided for the transaction resource pair from the terminal device 2 corresponding to the connected second business object 2 as the first external resource conversion rate. The second subject device corresponding to the second subject can upload the obtained first external resource conversion rate to the message data processing node corresponding to the second subject device corresponding to the second subject in the distributed message data processing system based on the first business theme. It can be 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 set by relevant business personnel.
[0078] Among them, the second subject device corresponding to the second subject can execute the above process through the deployed second resource processing service component. That is to say, the second subject device corresponding to the second subject 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, and obtain the first external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate. Correspondingly, when the second resource processing service component is also deployed in the first subject device corresponding to the first subject, the first subject device corresponding to the first subject will also execute the relevant process executed by the second subject device corresponding to the above second subject through the second resource processing service component, that is, obtain the resource conversion rate provided by the connected second business object for the transaction resource pair and upload it to the corresponding message data processing node (i.e., execution process one). Therefore, the above execution process one is described in detail here by taking the first subject device corresponding to the first subject as an example.
[0079] It can be understood that at this time, the first type of resource conversion rate not only includes 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, but also includes the second external resource conversion rate uploaded by the first subject device based on the first business topic obtained by the message data processing node, and the second external resource conversion rate is the resource conversion rate provided by the second business object connected to the first subject for the transaction resource pair.
[0080] Therefore, 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 resource conversion rate issued by the terminal device associated with the second business object for the transaction resource pair is received, and based on the received resource conversion rate, the second external resource conversion rate for uploading to the message data processing node is obtained. In other words, the central main device can access the terminal device associated with the second business object associated with the central main device, so that the terminal device associated with the second business object issues the resource conversion rate of the transaction resource pair. The second business object accessed by the central main device and the second business object accessed by the second main device can be different.
[0081] It is understood that when the central main device receives the resource conversion rate, it can filter and process the resource conversion rate to determine whether to use the resource conversion rate as the second external resource conversion rate uploaded to the message data processing node. It is understood that the second main device will similarly filter and process the resource conversion rate issued by the terminal device associated with the second business object connected to the transaction resource to determine the second external resource conversion rate uploaded to the message data processing node. The filtering process performed by the central main device is used as an example for explanation.
[0082] Wherein, based on the received resource conversion rate, a method for obtaining the second external resource conversion rate for uploading to the message data processing node can be: using the received resource conversion rate as the resource conversion rate to be uploaded, and obtaining a reasonable resource conversion rate range associated with the resource conversion rate to be uploaded; if the resource conversion rate to be uploaded is within the reasonable resource conversion rate range, the resource conversion rate to be uploaded is used as the second external resource conversion rate for uploading to the message data processing node. Wherein, the reasonable resource conversion rate range refers to the reasonable range where the resource conversion rate of the transaction resource pair should be located. When the obtained resource conversion rate to be uploaded is not within the reasonable resource conversion rate range, it can be regarded as a resource conversion rate of poor quality to be uploaded, and it can be filtered, so as to improve the quality of the resource conversion rate. For example, the reasonable resource conversion rate range of the transaction resource pair is 6 to 7. If the resource conversion rate to be uploaded is 8, the resource conversion rate to be uploaded is not within the reasonable resource conversion rate range, and the resource conversion rate to be uploaded is filtered; if the resource conversion rate to be uploaded is 6.5, the resource conversion rate to be uploaded is within the reasonable resource conversion rate range, and the resource conversion rate to be uploaded is used as the second external resource conversion rate to be uploaded.
[0083] Among them, the received resource conversion rate 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 first subject for the transaction resource pair. It can be understood that, that is, the central subject device can generate a resource inquiry request for the transaction resource pair, and send the resource inquiry request to the terminal device associated with the connected second business object, and the terminal device associated with the connected second business object generates the first business quotation corresponding to the transaction resource pair, and sends the first business quotation to the central subject device. At this time, the central subject device can obtain the resource conversion rate of the transaction resource pair and the business timestamp corresponding to the resource conversion rate from the first business quotation (that is, the transaction system timestamp carried in the resource inquiry request). Among them, the business timestamp corresponding to the resource conversion rate can be regarded as the release timestamp (release time) of the resource conversion rate, that is, when the terminal device associated with the second business object releases the resource conversion rate of the transaction resource pair, it writes the timestamp in the business quotation where the resource conversion rate of the transaction resource pair is located.
[0084] Among them, the central main body device can generate a resource inquiry request for the transaction resource pair according to the resource conversion rate update time (for example, every 3 seconds), and send the resource inquiry request to the terminal device associated with the connected second business object. Optionally, the central main body device may have different resource conversion rate update times for different transaction resource pairs or different second business objects connected. For example, for transaction resource pairs that need to be updated faster, the resource conversion rate update time can be shorter, and for transaction resource pairs that need to be updated slower, the resource conversion rate update time can be longer. For the second business object that is farther away, the resource conversion rate update time can be shorter, and for the second business object that is closer, the resource conversion rate update time can be longer. The resource conversion rate update time can be configured by relevant business personnel. It can be understood that the process of generating a resource inquiry request by the second main body device is the same as the above.
[0085] Therefore, based on the received resource conversion rate, the second method for obtaining the second external resource conversion rate for uploading to the message data processing node can be: 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 in 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, the resource conversion rate to be uploaded is used as the second external resource conversion rate for uploading 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 body device obtains the resource conversion rate and uses it as the resource conversion rate to be uploaded.
[0086] Among them, it can be understood that the reference resource acquisition time is the time 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 release time of the resource conversion rate of the transaction resource pair. If the time interval between the acquisition time and the release time of the resource conversion rate to be uploaded is greater than the effective time interval, it can be regarded that the resource conversion rate to be uploaded has hysteresis and is an expired resource conversion rate, so the resource conversion rate to be uploaded can be filtered. For example, the effective time interval of the transaction resource pair is 3 minutes. If the reference business timestamp corresponding to the resource conversion rate to be uploaded is 7:16 and the reference resource acquisition time is 7:18, the time interval is 2 minutes, which is less than the effective time interval, and the resource conversion rate to be uploaded can be used as the second external resource conversion rate to be uploaded; if the reference business timestamp corresponding to the resource conversion rate to be uploaded is 7:16 and the reference resource acquisition time is 7:20, the time interval is 4 minutes, which is greater than the effective time interval, and the resource conversion rate to be uploaded is filtered.
[0087] Among them, based on the received resource conversion rate, a third method for obtaining the second external resource conversion rate for uploading to the message data processing node can be: 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 to-be-compared 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 in 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. At a second resource acquisition moment, a first historical resource conversion rate received from a terminal device associated with a second business object at a second resource acquisition moment is used as a first resource conversion rate to be referenced, and a first business timestamp corresponding to the first historical resource conversion rate is used as the first timestamp to be referenced; the first historical resource conversion rate is a resource conversion rate provided by the second business object for a transaction resource pair; a second message acquisition moment corresponds to a first historical resource conversion rate; a timestamp comparison is performed between the first timestamp to be referenced and the first timestamp to be compared to obtain a first timestamp comparison result; 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, the resource conversion rate to be uploaded is used as a second external resource conversion rate for uploading to the message data processing node.
[0088] It can be understood that before the first resource acquisition moment, the moment when the first historical resource conversion rate is acquired is the second resource acquisition moment. The first historical resource conversion rate refers to the resource conversion rate of the same type as the resource conversion rate 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 resource conversion rate to be uploaded. For example, the exchange rate information between the US dollar and the RMB is acquired at the first resource acquisition moment, and before the first resource acquisition moment, the moment when the exchange rate information between the US dollar and the RMB is acquired is the second resource acquisition moment. Each time a first historical resource conversion rate is acquired, the corresponding acquisition moment is taken as 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 moment can be used as the first resource conversion rate to be referenced, or the maximum second resource acquisition moment can be obtained, and the first historical resource conversion rate received from the terminal device associated with the second business object at the maximum second resource acquisition moment can be used as the first resource conversion rate to be referenced. At this time, the first business timestamp corresponding to the first historical resource conversion rate can be used as the first timestamp to be referenced, and the first timestamp to be referenced and the first timestamp to be compared are compared. If (all) the first timestamps to be referenced are less than or equal to the first timestamp to be compared, it means that the resource conversion rate to be uploaded received at this time is the latest resource conversion rate among the resource conversion rates obtained for the transaction resource pair, and the resource conversion rate to be uploaded can be used as the second external resource conversion rate. In this way, the second external resource conversion rate can be the latest resource conversion rate when it is uploaded to the message data processing node.
[0089] Optionally, at this time, 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 next time, the business timestamp corresponding to the new resource conversion rate to be uploaded (i.e., the new first timestamp to be compared) and the first maximum business timestamp associated with the transaction resource pair corresponding to the resource conversion rate to be uploaded can be compared. When 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. Each time the resource conversion rate of any transaction resource pair is obtained, the above process can be performed 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 of USD and RMB as an example, 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, and the exchange rate information 1 is used as the resource conversion rate to be uploaded, and the first business timestamp corresponding to the exchange rate information 1 is the first timestamp to be compared 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 which the historical exchange rate information is the first resource conversion rate to be referenced, and the first business timestamp corresponding to the historical exchange rate information is the first timestamp to be referenced, or the first business timestamp corresponding to the historical exchange rate information corresponding to the maximum second resource acquisition time is the first timestamp to be referenced. When the first timestamp to be referenced is less than or equal to At the first timestamp to be compared, the exchange rate information 1 is regarded as the latest exchange rate information between the U.S. dollar and the RMB, and is used as the second external resource conversion rate; optionally, the first business timestamp corresponding to the exchange rate information 1 can be used as the first maximum business timestamp associated with the U.S. dollar and the RMB. After the first resource acquisition moment, when the exchange rate information 2 between the U.S. dollar and the RMB is acquired again, the first business timestamp corresponding to the exchange rate information 2 and the above-mentioned first maximum business timestamp are compared. If the first business timestamp is greater than or equal to the first maximum business timestamp, the exchange rate information 2 is regarded as the latest exchange rate information between the U.S. dollar and the RMB, and is used as the second external resource conversion rate. At the same time, the first maximum business timestamp associated with the U.S. dollar and the RMB can be updated by the first business timestamp corresponding to the exchange rate information 2 to obtain the updated first maximum business timestamp associated with the U.S. dollar and the RMB.
[0091] Among them, it can be understood that, based on the received resource conversion rate, the second external resource conversion rate for uploading to the message data processing node can also be a combination of any one or more of the above-mentioned methods 1 to 3 (i.e., the resource conversion rate screening method). For example, taking the combination of method 1 and method 2 as an example, it can be that 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 effective time interval, the resource conversion rate to be uploaded is used as the second external resource conversion rate for uploading to the message data processing node. For another example, taking the combination of methods 1 to 3 as an example, it can be that 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 effective time interval, and the first timestamp comparison result indicates that the first reference timestamp is less than or equal to the first timestamp to be compared, the resource conversion rate to be uploaded is used as the second external resource conversion rate for uploading to the message data processing node. No limitation is made here.
[0092] It can be understood that the second external resource conversion rate exists in the form of being written into the first business quotation sheet, so when uploading the second external resource conversion rate, the first business quotation sheet 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 can be understood that among the multiple subject devices corresponding to the multiple subjects associated with the first business object, the subject devices deployed with the second resource processing service component will all execute the above process and upload the obtained external resource conversion rate (the first external resource conversion rate and / or the second external resource conversion rate) to the message data processing node. Among them, the subject device deployed with the second resource processing service component can upload the determined external resource conversion rate 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 rate as the first type of resource conversion rate, and add the first type of resource conversion rate to the first distributed message queue corresponding to the first business topic for subscription by the central subject device. Among them, the message data processing nodes corresponding to different subject devices can be the same or different. The message data processing node corresponding to each subject 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 can be understood that when the central main body device obtains the first type of resource conversion rate issued 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, that is, the central main body device can subscribe to the first type of resource conversion rate in the first distributed message queue to the message data processing node.
[0095] It is understandable that if a first resource processing service component (also referred to as an internal quotation service component, an internal processing service component, etc.) is deployed on the first subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the first business topic from the distributed message data processing system through the first resource processing service component. The topic publishing information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic. It is understandable that the topic publishing information associated with the first business topic contains the first business quotation sheet where the first type of resource conversion rate is located, that is, the first type of resource conversion rate exists.
[0096] Therefore, the central main body device generates a first resource subscription request for subscribing to the first business topic through the first resource processing service component; sends the first resource subscription request 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 publishing information stored in the first distributed message queue, the first type of resource conversion rate is sent to the central main body device based on the first business topic. It can be sent by the central main body device to the message data processing node configured with the first distributed message queue, or it can be sent by the central main body device to the message data processing node corresponding to the central main body device, and forwarded by the message data processing node corresponding to the central main body device to the message data processing node configured with the first distributed message queue, so that the message data processing node configured with the first distributed message queue can send the first type of resource conversion rate in the first distributed message queue to the central main body device. It can be understood that when the message data processing node sends the first type of resource conversion rate, it sends the first business quotation sheet where the first type of resource conversion rate is located to the central main body device. It can be understood that after the central main body device subscribes to the topic publishing information stored in the first distributed message queue from the message data processing node, when the message data processing node determines that there is a first type of resource conversion rate in the topic publishing information stored in the first distributed message queue, it obtains the first type of resource conversion rate from the topic publishing information stored in the first distributed message queue and sends it to the central main body device. It can be understood that the central main body device can receive the first type of resource conversion rate sent from one or more message data processing nodes based on the first distributed message queue, and uniformly process the first type of resource conversion rate.
[0097] That is to say, among the multiple subject devices corresponding to the multiple subjects associated with the first business object, the subject device deployed with the first resource processing service component is the central subject device, which is used to subscribe to the first type of resource conversion rate from the distributed message data processing system. In this way, the external resource conversion rates obtained by the subject devices corresponding to the multiple subjects through the connected second business object are aggregated and uniformly processed, thereby eliminating the data isolation between different subjects.
[0098] S102: Obtain resource conversion parameters from a resource data processing strategy associated with a second business subject of the first business object, perform resource data processing on a first type resource conversion rate based on the resource conversion parameters, and obtain an internal resource conversion rate associated with the second business subject.
[0099] In some embodiments, when the central main body device receives the first type of resource conversion rate, it can perform internal unified processing on it to obtain an internal resource conversion rate that can be used by the first business object to quote external resources. Among them, processing the first type of resource conversion rate can be to add risk to the first type of resource conversion rate, so as to achieve global risk quotation control. Determining the internal resource conversion rate associated with the second business subject can specifically be: 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 fluctuation 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 fluctuation value corresponding to the first type of resource conversion rate as the resource conversion parameter; superimposing the resource conversion parameter on the first type of resource conversion rate to obtain the internal resource conversion rate associated with the second business subject. For example, if the resource volatility of the first type resource conversion rate of transaction resource pair A is 5% within 3 hours, and the first type resource conversion rate is 8, the product of the first type resource conversion rate and the resource volatility can be used as the conversion rate volatility value corresponding to the first type resource conversion rate (5%*8=0.4), and the resource conversion parameter is superimposed on the first type resource conversion rate to obtain the internal resource conversion rate corresponding to the first type resource conversion rate (8+0.4=8.4), that is, the internal resource conversion rate of transaction resource pair A. It can be understood that the higher the resource volatility, the higher the risk of a certain transaction resource pair, and the higher the risk markup, so that the resource conversion rate used by any subject when making a resource quotation for a certain transaction resource pair can be adjusted.
[0100] Optionally, determining the internal resource conversion rate associated with the second business theme can also be specifically: 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, superimposing the resource conversion parameter on the first type of resource conversion rate, and obtaining the internal resource conversion rate associated with the second business theme. Among them, 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 of the transaction resource pair corresponding to the first type of resource conversion rate within the target time period. It can be understood that when the transaction processing volume is more, it means that the number of buy and sell transaction operations of the transaction resource pair corresponding to the first type of resource conversion rate is more, and the more likely there is a transaction risk, such as the transaction return rate may increase, which will also affect the fluctuation of the resource conversion rate of the transaction resource pair, so it can be processed based on the transaction processing volume. Among them, the corresponding relationship between different transaction processing volumes and the conversion rate superposition value can be set by relevant business personnel according to experience. In other words, it can be quoted to customers after independent price increase through the resource processing strategy used for business operations.
[0101] Optionally, since multiple first-type resource conversion rates are stored in the same first distributed message queue, and the central subject device can obtain multiple first-type resource conversion rates in the first distributed message queue from multiple message data processing nodes, the first-type resource conversion rate can be first screened when obtaining the first-type resource conversion rate from the first distributed message queue. It can be understood that the first-type resource conversion rate in the topic publishing 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.
[0102] Therefore, before obtaining the resource conversion parameter from the resource data processing strategy associated with the second business subject 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, 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 timestamp to be compared 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 in the obtained resource inquiry request; at the message acquisition time corresponding to the first resource processing service component, the message acquisition time obtained before the first message acquisition time is used as The second message acquisition moment is the second historical resource conversion rate obtained from the first distributed message queue at the second message acquisition moment as the second resource conversion rate to be referenced, and the first business timestamp corresponding to the second historical resource conversion rate is the second timestamp to be referenced; 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 moment corresponds to one second historical resource conversion rate; the second timestamp to be referenced is timestamped and compared with the second timestamp to be compared to obtain a second timestamp comparison result; if the second timestamp comparison result indicates that the second timestamp to be referenced is less than or equal to the second timestamp to be compared, 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.
[0103] Among them, it can be understood that before the first message acquisition moment, the moment when the second historical resource conversion rate is acquired is the second message acquisition moment. The second historical resource conversion rate refers to the 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, the exchange rate information between the US dollar and the RMB is acquired at the first message acquisition moment, and before the first message acquisition moment, the moment when the exchange rate information between the US dollar and the RMB is acquired is the second message acquisition moment. Each time a second historical resource conversion rate is acquired, the corresponding acquisition moment is taken as 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 moment can be used as the second resource conversion rate to be referenced, or the maximum second message acquisition moment can be obtained, and the second historical resource conversion rate subscribed from the first distributed message queue at the maximum second message acquisition moment can be used as the second resource conversion rate to be referenced. At this time, 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 and the second comparison timestamp are compared. 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 received 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 processed internally. In this way, when the central main body 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, at this time, the second timestamp to be compared can be used as the second maximum business timestamp associated with the transaction resource pair corresponding to the resource conversion rate to be processed. When the resource conversion rate of the transaction resource pair (i.e., the new resource conversion rate to be processed) is subscribed to next time, the business timestamp corresponding to the new resource conversion rate to be processed (i.e., the new second timestamp to be compared) and the second maximum business timestamp associated with the transaction resource pair corresponding to the resource conversion rate to be processed can be compared. When the second timestamp to be compared is greater than or equal to the second maximum business timestamp, the new resource conversion rate to be processed is processed. At the same time, the second 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 processed. The above process can be performed each time the first type resource conversion rate of any transaction resource pair is subscribed to, so that the subscription is the latest first type resource conversion rate.
[0105] For example, Figure 5 As shown, Figure 5It is a schematic diagram of a scenario for screening resource conversion rates provided by an embodiment of the present application, wherein, taking the transaction resource pair of USD and RMB as an example, the subscribed resource conversion rate is the exchange rate information between USD and RMB, and when the message acquisition time (i.e., 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, and the exchange rate information 1 is used as the resource conversion rate to be processed, and the first business timestamp (timestamp P1) corresponding to the exchange rate information 1 is the second timestamp to be compared corresponding to the resource conversion rate to be processed; before the first message acquisition time, the USD and RMB are subscribed. The moment of the historical exchange rate information between the currencies is used as the second message acquisition moment (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, and the first business timestamp corresponding to the historical exchange rate information is the second reference timestamp (timestamp P2, P3, ..., Px; P2=19:32, P3=19:31, ..., Px=19:28)), or the first business timestamp corresponding to the historical exchange rate information corresponding to the maximum second resource acquisition moment (T2) is 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, such as P2 < P1), the exchange rate information 1 is regarded as the latest exchange rate information between the US dollar and the RMB, and is processed to obtain the internal exchange rate information corresponding to the exchange rate information 1, and upload it to the message data processing node; if any second reference timestamp is greater than the second comparison timestamp (timestamp P1 = 19:31, such as P2 > P1), the exchange rate information 1 is filtered; optionally, the first business timestamp corresponding to the exchange rate information 1 can be used as the exchange rate information between the US dollar and the RMB. The second maximum business timestamp associated with RMB, when the exchange rate information Y between the US dollar and the RMB is subscribed to again after the first message acquisition moment, the first business timestamp corresponding to the exchange rate information Y and the above-mentioned second maximum business timestamp are compared. If the first business timestamp is greater than or equal to the second maximum business timestamp, the exchange rate information Y is regarded as the latest exchange rate information between the US dollar and the RMB, and is processed. At the same time, the second maximum business timestamp associated with the US dollar and the RMB can be updated through the first business timestamp corresponding to the exchange rate information Y to obtain the updated first maximum business timestamp associated with the US dollar and the RMB.
[0106] S103: Upload the internal resource conversion rate to the message data processing node based on the second business theme.
[0107] Among them, 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, and the second type of resource conversion rate is a resource conversion rate used to uniformly provide resource quotations to multiple entities. In other words, multiple entities can simultaneously obtain the second type of resource conversion rate to make resource quotations. In this way, multiple entities can share high-quality resource conversion rates, that is, they can share high-quality resource conversion rates provided by external price sources (i.e., share high-quality price sources), which can improve the resource quotation quality of multiple entities.
[0108] Among them, it can be understood that the uploaded internal resource conversion rate carries the second business theme. The acquired internal resource conversion rate can be distributedly uploaded to one or more message data processing nodes based on the second business theme. The one or more message data processing nodes are configured with a second distributed message queue for storing the internal resource conversion rate. The business theme corresponding to the second distributed message queue is the second business theme. It can be understood that the second business theme is a business theme configured for the second type of resource conversion rate, such as "internal price source", "internal resource conversion rate", etc., which can be specifically set by relevant business personnel. The first distributed message queue and the second distributed message queue can exist in the same message data processing node at the same time.
[0109] It can be understood that among the subject devices corresponding to the multiple subjects associated with the first business object, there may be a subject device deployed with a third resource processing service component (customer quotation service component), and the subject device deployed with the third resource processing service component can subscribe to the second type of resource conversion rate in the second distributed message queue to the message data processing node. In this way, the quotation query object (such as a user) can generate a resource quotation request and send the resource quotation request to the subject device deployed with the third resource processing service component. The subject device deployed with the third resource processing service component will make a resource quotation based on the second type of resource conversion rate subscribed from the second distributed message queue, and return the determined resource quotation information to the quotation query object. The specific process performed by the subject device deployed with the third resource processing service component through the third resource processing service component can be referred to the relevant description of the following embodiment.
[0110] It can be understood that the third resource processing service component can be deployed in any main body device, such as the first main body device, one or more second main body devices. In the second main body device corresponding to the second main body, some main body devices can deploy the second resource processing service component, some main body devices can deploy the third resource processing service component, or all main body devices can deploy the second resource processing service component and the third resource processing service component. The type of service components deployed in the multiple main body devices corresponding to the multiple main bodies associated with the first business object is not limited here. It can be understood that the main body device deploying the second resource processing service component is used to access the second business object to obtain the external resource conversion rate, and upload it to the distributed message data processing system based on the first business topic. The main body 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 the internal resource conversion rate, and upload it to the distributed message data processing system based on the second business topic. The main body 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 make resource quotations through the second type of resource conversion rate.
[0111] For example, Figure 6-Figure 8 As shown, Figure 6-Figure 8 is a schematic diagram of a resource quotation scenario provided in an embodiment of the present application; wherein, Figure 6The second subject device (D1, D2) corresponding to the second subject associated with the first business object is deployed with a second resource processing service component and a third resource processing service component, and the first subject device D3 (i.e., the central subject device) corresponding to the first subject associated with the first business object is deployed with a first resource processing service component; the second business object 1 is the external price source connected to the second subject device D1 corresponding to the second subject, and the second business object 2 and the second business object 3 are the external price sources connected to the second subject device D2 corresponding to the second subject. Therefore: S611, the second subject device D1 corresponding to the second subject 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 subject device D2 corresponding to the second subject 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 subject device D2 corresponding to the second subject 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 of 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 of 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 of the transaction resource pair based on the resource inquiry request 3; S631, the second subject device D1 corresponding to the second subject sends the received resource The conversion rate 1 is used as the external resource conversion rate 1, and the external resource conversion rate 1 is 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 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 (including multiple message data processing nodes); at this time, the message data processing node uses the external resource conversion rate 1-2 as the first type of resource conversion rate, and queues it into the first distributed message queue corresponding to the first business topic (for example, it can be a 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 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 an 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 queues it into the second distributed message queue corresponding to the second business topic (for example, it can be a first-in-first-out direction); S661. After the second subject device D1 corresponding to the second subject subscribes to the second type of resource conversion rate to the distributed message data processing system through the third resource processing service component, the distributed message data processing system will process the first type of resource conversion rate in the second distributed message queue corresponding to the second business topic. The second type of resource conversion rate is sent to the second subject device D1 corresponding to the second subject respectively; S662, after the second subject device D2 corresponding to the second subject subscribes to the second type of resource conversion rate to 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 in the second distributed message queue corresponding to the second business topic to the second subject device D2 corresponding to the second subject respectively; subsequently, when the quotation query object (such as a user, merchant, enterprise, etc.) where the second subject device D1 corresponding to the second subject is located generates a resource quotation request for a business transaction and sends it to the second subject device D1 corresponding to the second subject, the second subject device D1 corresponding to the second subject 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, Figure 7 , when the above Figure 6When the first subject device D3 corresponding to the first subject shown is also deployed with a third resource processing service component: S711, the second subject device D1 corresponding to the second subject 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 subject device D2 corresponding to the second subject 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 subject device D2 corresponding to the second subject 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; S714. 21. The terminal device associated with the second business object 1 issues a resource conversion rate 1 of the transaction resource pair based on the resource inquiry request 1; S722. The terminal device associated with the second business object 2 issues a resource conversion rate 2 of the transaction resource pair based on the resource inquiry request 2; S723. The terminal device associated with the second business object 3 issues a resource conversion rate 3 of the transaction resource pair based on the resource inquiry request 3; S731. The second subject device D1 corresponding to the second subject uses 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 subject device D1 corresponding to the second subject uses 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); The main device D2 uses 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 (including multiple message data processing nodes); at this time, the message data processing node uses the external resource conversion rate 1-2 as the first type of resource conversion rate, and queues it into the first distributed message queue corresponding to the first business topic (for example, it can be a first-in-first-out direction); S74, after the first main device D3 corresponding to the first main body subscribes to the first type of resource conversion rate to the distributed message data processing system through the first resource processing service component, the distributed message data processing system 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 queues it into the second distributed message queue corresponding to the second business topic (for example, it can be a 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 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 in the second distributed message queue corresponding to the second business topic to the second main device D2; S763, the first main device After the device D3 subscribes to the second type 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 resource conversion rate in the second distributed message queue corresponding to the second business topic to the first subject device D3; subsequently, when the quotation query object (such as a user, merchant, enterprise, etc.) at the location of the second subject device D1 corresponding to the second subject generates a resource quotation request for a business transaction and sends it to the second subject device D1 corresponding to the second subject, the second subject device D1 corresponding to the second subject can make a resource quotation based on the subscribed second type resource conversion rate through the third resource processing service component. ;
[0113] For example, Figure 8 , when the above Figure 7When the first subject device D3 corresponding to the first subject shown in the figure is also deployed with a second resource processing service component: the second business object 4 is the external price source connected to the first subject device D3 corresponding to the first subject; therefore: S811, the second subject device D1 corresponding to the second subject 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 subject device D2 corresponding to the second subject 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 subject device D2 corresponding to the second subject 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; The terminal device associated with business object 3 sends a resource inquiry request 3 for the transaction resource pair; S814, the first subject device D3 corresponding to the first subject 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; S821, the terminal device associated with the second business object 1 issues a resource conversion rate 1 of the transaction resource pair based on the resource inquiry request 1; S822, the terminal device associated with the second business object 2 issues a resource conversion rate 2 of the transaction resource pair based on the resource inquiry request 2; S823, the terminal device associated with the second business object 3 issues a resource conversion rate 3 of the transaction resource pair based on the resource inquiry request 3; S824, the second business object The terminal device associated with the object 4 issues the resource conversion rate 4 of the transaction resource pair based on the resource inquiry request 4; S831, the second subject device D1 corresponding to the second subject uses 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 subject device D2 corresponding to the second subject uses 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 subject device D3 uses the received resource conversion rate 4 as the external resource conversion rate The external resource conversion rate 3 is obtained, 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 uses the external resource conversion rate 1-3 as the first type of resource conversion rate, and queues it into the first distributed message queue corresponding to the first business topic (for example, it can be a 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 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 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 an 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 queues it into the second distributed message queue corresponding to the second business topic (for example, it can be a first-in-first-out direction); S861. After the second subject 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 in the second distributed message queue corresponding to the second business topic to the second subject device D1 respectively; S862. The second subject device D2 uses the third resource processing service component to After the second type of resource conversion rate is subscribed to the distributed message data processing system, the distributed message data processing system sends the second type of resource conversion rate in the second distributed message queue corresponding to the second business topic to the second subject device D2; S863, after the first subject device D3 subscribes to the second type of resource conversion rate to 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 in the second distributed message queue corresponding to the second business topic to the first subject device D3; subsequently, when the quotation query object (such as a user, merchant, enterprise, etc.) at the location of the second subject device D1 corresponding to the second subject generates a resource quotation request for a business transaction and sends it to the second subject device D1 corresponding to the second subject, the second subject device D1 corresponding to the second subject can make a resource quotation based on the subscribed second type of resource conversion rate through the third resource processing service component. ;
[0114] In an embodiment of the present application, a second subject device corresponding to a second subject (such as a subject) associated with a first business object (such as an institution A) can obtain a first external resource conversion rate (it can be understood that the resource conversion rate provided by the external business object is an external resource conversion rate) from the connected second business object (such as an institution other than institution A that can provide a resource conversion rate, such as an offshore institution, other institutions, etc. It can be understood that the second business object can be called an external business object of the first business object, and can also be called an external price source, an external resource conversion rate provider, etc.), and upload it to a message data processing node in a distributed message data processing system based on the first business topic. The message data processing node can send a first type of resource conversion rate including the first external resource conversion rate to a central subject device based on the first business topic. The central subject device is a first subject device corresponding to the first subject associated with the first business object (which can refer to a subject under institution A or a newly created subject). In this way, the external resource conversion rates obtained by multiple subjects can be aggregated, and the data isolation between the external resource conversion rates obtained by different subjects can be removed. At this time, when the central subject device receives the first type of resource conversion rate, it can be obtained from the resource data processing associated with the second business topic of the first business object. The resource conversion parameter is obtained in the strategy, and the resource data processing is performed on the first type of resource conversion rate based on the resource conversion parameter to obtain the internal resource conversion rate associated with the second business subject (it can be understood that the first type of resource conversion rate is uniformly processed to obtain the internal resource conversion rate provided by the first business object, that is, the resource conversion rate provided internally), and the internal resource conversion rate is uploaded to the message data processing node based on the second business subject. 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 subject. The second type of resource conversion rate is a resource conversion rate for uniformly providing resource quotations to multiple subjects. It can be understood that in this way, multiple subjects (first subject and second subject) associated with the first business object can share the same resource conversion rate, that is, the resource conversion rate obtained by any subject through the accessed second business object can be used by other subjects, that is, the internal resource conversion rate corresponding to the external resource conversion rate obtained by one subject can be obtained and used by another subject, and all subjects of the same organization can share and provide the same resource quotation, thereby optimizing the resource quotation of each subject in the scenario where there are multiple subjects associated with the same organization, and thus improving the resource quotation quality of different subjects.
[0115] For further information, see Fig. 9 , Fig. 9 is a flow chart of a resource data processing method provided in an embodiment of the present application, such as Fig. 9As shown, the method can be executed by the central subject device mentioned above (the first subject device corresponding to the first subject associated with the first business object), for example, the central subject device can be the above Figure 1 Any server in the server cluster 200 shown. The method may specifically include the following steps S201-S205:
[0116] S201: Receive a first type 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 topic.
[0117] S202, obtaining a resource conversion parameter from a resource data processing strategy associated with the second business subject of the first business object, performing resource data processing on the first type resource conversion rate based on the resource conversion parameter, and obtaining an internal resource conversion rate associated with the second business subject. The specific implementation of steps S201-S202 can refer to the relevant description of the above embodiment, which will not be repeated here.
[0118] S203: Upload the internal resource conversion rate to the message data processing node based on the second business theme.
[0119] Among them, 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 can be: generating 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; uploading 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. The uploaded second business quotation carries the second business theme. It can be uploaded to the message data processing node when the second business quotation is detected, or it can be uploaded to the message data processing node after a period of time, and the message data processing node will upload the second business quotation. The principle of uploading the first business quotation to the message data processing node is the same. That is to say, the existence of the second business quotation in the topic publishing information stored in the second distributed message queue is equivalent to the existence of the second type of resource conversion rate.
[0120] S204: Receive a second type resource conversion rate of a transaction resource pair associated with the first subject issued by the message data processing node based on the second business topic.
[0121] Among them, if a third resource processing service component is deployed on the first subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the second business topic from the distributed message data processing system through the third resource processing service component. The topic publishing 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 subject device is also deployed with the third resource processing service component, the process of subscribing to the topic publishing information associated with the second business topic to the distributed message data processing system is the same. Here, the process of the first subject device subscribing to the topic publishing information associated with the second business topic is explained as an example.
[0122] Therefore, the second type resource conversion rate of the transaction resource pair associated with the first subject issued by the receiving message data processing node can be: generating a second resource subscription request for subscribing to the second business topic through a 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 the second type resource conversion rate of the transaction resource pair associated with the second business topic in the topic publishing information stored in the second distributed message queue, the second type resource conversion rate is issued to the central subject device based on the second business topic.
[0123] It can be understood that among the multiple subject devices corresponding to the multiple subjects associated with the first business object, the subject devices deployed with the third resource processing service component will all execute the above process, that is, subscribe to the second type of resource conversion rate of the transaction resource pairs associated with the subjects (first subject, second subject) to the distributed message data processing system.
[0124] It can be understood that when the message data processing node issues the second type of resource conversion rate, it issues the second service quotation sheet where the second type of resource conversion rate is located to the central main body device deployed with the third resource processing service component. It can be understood that after the central main body device subscribes to the topic publishing information stored in the second distributed message queue from the message data processing node, when the message data processing node determines that there is a second type of resource conversion rate in the topic publishing information stored in the second distributed message queue, it obtains the second type of resource conversion rate from the topic publishing information stored in the second distributed message queue and issues it to the central main body device. It can be understood that the central main body 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. The central main body device can send the second resource subscription request to the message data processing node configured with the second distributed message queue, or the central main body device can send the second resource subscription request to the message data processing node corresponding to the central main body device, and the message data processing node corresponding to the central main body device forwards it to the message data processing node configured with the second distributed message queue, so that the message data processing node configured with the second distributed message queue can issue the second type of resource conversion rate in the second distributed message queue to the central main body device.
[0125] Thus, the central subject device can receive the second type resource conversion rate of the transaction resource pair associated with the first subject in the topic publishing information stored in the second distributed message queue from the message data processing node through the third resource processing service component, and based on the second type resource conversion rate issued by the second business topic, add the received second type resource conversion rate to the resource cache associated with the first subject device. It can be understood that when each subject device deployed with the third resource processing service component receives the second type resource conversion rate issued by the message data processing node based on the second business topic, it will add it to the resource cache associated with each subject.
[0126] S205. When receiving a resource quotation request sent by the quotation query object for a business transaction, taking the transaction resource pair associated with the business transaction as the target transaction resource pair, and determining the resource quotation conversion rate for providing a quotation to the quotation query object based on the second type resource conversion rate of the target transaction resource pair.
[0127] Among them, the central main body device can make resource quotation through the third resource processing service component. For example, based on the second type resource conversion rate of the target transaction resource pair, determining the resource quotation conversion rate used to provide the quotation to the quotation query object can be, through the third resource processing service component to obtain the second type resource conversion rate of the target transaction resource pair from the resource cache, and obtain the second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair; obtain 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 use the second type resource conversion rate corresponding to the first maximum business timestamp obtained as the target second type resource conversion rate; based on the target second type resource conversion rate and the resource quotation provision strategy associated with the business transaction, determine the resource quotation conversion rate used to provide the quotation to the quotation query object. Among them, the business transaction can be an item purchase transaction or a virtual resource purchase transaction, or a buy and sell transaction of a certain type of resource in the transaction resource pair, etc. Any transaction related to the exchange business between different types of resources. The 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 can be understood that due to the timeliness of the resource conversion rate, the resource conversion rate with the latest timeliness can be regarded as the current optimal resource conversion rate. It can be understood that the second type resource conversion rate corresponding to the maximum business timestamp obtained in the second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair is the current latest resource conversion rate. Therefore, the resource quotation conversion rate for providing a quotation to the quotation query object can be determined according to the resource quotation provision strategy associated with the business transaction. For example, if the business transaction is a selling transaction of the first type of resource in the target transaction resource pair, it can be determined according to the resource quotation provision strategy associated with the business transaction whether to increase the price of the selling quotation rate indicating the first type of resource in the target second type resource conversion rate, and if the determined target second type resource conversion rate is multiple, the best 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 can be understood that the central main device 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 body device can obtain the second-type resource conversion rates in multiple second distributed message queues from multiple message data processing nodes. Therefore, before adding the received second-type resource conversion rate to the resource cache, it is also possible to: when the quotation acquisition time corresponding to the third resource processing service component is the first quotation 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 timestamp to be compared corresponding to the resource conversion rate to be cached; in the quotation acquisition time corresponding to the third resource processing service component, use the quotation acquisition time obtained before the first quotation acquisition time as the second quotation acquisition time, and use the second business timestamp obtained from the second distributed message queue at the second quotation acquisition time. The third historical resource conversion rate obtained is used as the third resource conversion rate to be referenced, and the second business timestamp corresponding to the third historical resource conversion rate is used as the third timestamp to be referenced; 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 moment corresponds to one third historical resource conversion rate; the third timestamp to be referenced is compared with the third timestamp to be compared to obtain a third timestamp comparison result; if the third timestamp comparison result indicates that the third timestamp to be referenced is less than or equal to the third timestamp to be compared, then the step of adding the received second type resource conversion rate to the resource cache is executed. It can be understood that the process executed by the second main body device deployed with the third resource processing service component is the same as the description of the execution process of the central main body device.
[0130] Among them, it can be understood that before the first quotation acquisition moment, the moment when the third historical resource conversion rate is obtained is the second quotation acquisition moment. The third historical resource conversion rate refers to the resource conversion rate of the same type as the resource conversion rate 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 resource conversion rate to be cached. For example, the exchange rate information between the US dollar and the RMB is obtained at the first quotation acquisition moment, and before the first quotation acquisition moment, the moment when the exchange rate information between the US dollar and the RMB is obtained is the second quotation acquisition moment. Each time a third historical resource conversion rate is obtained, the corresponding acquisition moment is used as a third message acquisition moment. Therefore, one second quotation 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 quotation acquisition moment can be used as the third resource conversion rate to be referenced, or the maximum second quotation acquisition moment can be obtained, and the third historical resource conversion rate subscribed from the second distributed message queue at the maximum second quotation acquisition moment can be used as the third resource conversion rate to be referenced. At this time, the second business timestamp corresponding to the third historical resource conversion rate can be used as the third reference timestamp, and the third reference timestamp and the third comparison timestamp are compared. If (all) third reference timestamps are less than or equal to the third comparison timestamp, it means that the resource conversion rate to be cached received at this time is the latest resource conversion rate to be cached among the resource conversion rates subscribed to for the transaction resource pair, and the resource conversion rate to be cached can be cached. In this way, when the central main body 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, at this time, the third timestamp to be compared 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 (i.e., the new resource conversion rate to be cached) is subscribed to next time, the business timestamp corresponding to the new resource conversion rate to be cached (i.e., the new third timestamp to be compared) and the third maximum business timestamp associated with the transaction resource pair corresponding to the resource conversion rate to be cached can be compared. When the third timestamp to be compared 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 performed each time the second type resource conversion rate of any transaction resource pair is subscribed to, so that the subscription is the latest second type resource conversion rate. That is, the latest second type resource conversion rate is cached.
[0132] For example, taking the 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 quotation acquisition time corresponding to the third resource processing service component is displayed as the first quotation acquisition time, the exchange rate information 1 between USD and RMB is received, and the exchange rate information 1 is used as the resource conversion rate to be cached, and the second business timestamp corresponding to the exchange rate information 1 is the third timestamp to be compared 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 quotation acquisition time is used as the second quotation acquisition time, at which the historical exchange rate information is the third resource conversion rate to be referenced, and the second business timestamp corresponding to the historical exchange rate information is the third timestamp to be referenced, or the second business timestamp corresponding to the historical exchange rate information corresponding to the maximum second quotation acquisition time is the third timestamp to be referenced, when the third timestamp to be referenced If the exchange rate information 1 is less than or equal to the third timestamp to be compared, the exchange rate information 1 is regarded as the latest exchange rate information between the U.S. dollar and the RMB, and is cached; optionally, the second business timestamp corresponding to the exchange rate information 1 can be used as the third maximum business timestamp associated with the U.S. dollar and the RMB. When the exchange rate information 2 between the U.S. dollar and the RMB is subscribed to again after the first quotation acquisition moment, the second business timestamp corresponding to the exchange rate information 2 and the third maximum business timestamp are compared. If the second business timestamp is greater than or equal to the third maximum business timestamp, the exchange rate information 2 is regarded as the latest exchange rate information between the U.S. dollar and the RMB, and is cached. At the same time, the third maximum business timestamp associated with the U.S. dollar and the RMB can be updated by the second business timestamp corresponding to the exchange rate information 2 to obtain the updated third maximum business timestamp associated with the U.S. dollar and the RMB.
[0133] It can be understood that the above is that each main device deployed with the third resource processing service component subscribes to the second type of resource conversion rate respectively and adds it to the respective associated resource cache. Optionally, a unified resource cache system can also be added, and the message data processing node is used to send the second type of resource conversion rate to the resource cache system associated with multiple subjects based on the second business topic when there is a second type of resource conversion rate of the transaction resource pair in the topic publishing information stored in the second distributed message queue. The resource cache system will cache the second type of resource conversion rate received from the distributed message data processing system. It can be understood that the resource cache system can cache the latest second type of resource conversion rate in the above manner when caching. At this time, the main device corresponding to each subject does not need to subscribe to the second type of resource conversion rate to the distributed message data processing system.
[0134] Therefore, when making resource quotations, the target second-type resource conversion rate for resource quotations can be directly obtained from the resource cache system. For example, when receiving a resource quotation request sent by a quotation query object for a business transaction, the transaction resource pair associated with the business transaction is used as the target transaction resource pair; the quotation query object is a business object used to query quotations from multiple entities; the second-type resource conversion rate of the target transaction resource pair is obtained from the resource cache 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 timestamp 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 used as the target second-type resource conversion rate; based on the target second-type resource conversion rate and the resource quotation provision strategy associated with the business transaction, the resource quotation conversion rate used to provide a quotation to the quotation query object is determined.
[0135] For example, Figure 10-13 As shown, Figure 10-13: is a schematic diagram of a distributed resource quotation scenario provided by an embodiment of the present application; wherein, taking institution A having three subjects as an example (subject A, subject B, subject C), the subject device corresponding to each subject is deployed with a second resource processing service component and a third resource processing service component, and the subject device A corresponding to subject A is deployed with a first resource processing service component, that is, subject C is the central subject, and the subject device C corresponding to subject C is the central subject device; a distributed message data processing system is set up between the subjects, and the distributed nodes (message data processing nodes) in the distributed message data processing system are configured with a first distributed message queue associated with the first business subject and a second distributed message queue associated with the second business subject; therefore, S3 11. The main device A accesses the associated second business object 1 through the deployed second resource processing service component. When the 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. The main device B accesses the associated second business object 2 through the deployed second resource processing service component. When the 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. The main device B accesses the associated second business object 3 through the deployed second resource processing service component. When the 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 determined 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., the first type of resource conversion rates are enqueued); S33, the main device C can subscribe to the first type of resource conversion rate to 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., the first type of resource conversion rate is dequeued).
[0136] Further, such as Fig.11 At this time, 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 node in the distributed message data processing system adds the received internal resource conversion rate as the second type of resource conversion rate to the second distributed message queue (i.e., the second type of resource conversion rate is queued); 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, that is, 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; 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, that is, 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; S423, the main device C can subscribe to the second type of resource conversion rate from the third resource processing service component The distributed message data processing system subscribes to the second type of resource conversion rate, that is, subscribes to the second business topic, that is, when any second type of resource conversion rate exists in the second distributed message queue, the main device C can subscribe to any second type of resource conversion rate that exists; S431, the distributed node in the distributed message data processing system sends the second type of resource conversion rate in the second distributed message queue to the main device A (that is, the second type of resource conversion rate is dequeued); S432, the distributed node in the distributed message data processing system sends the second type of resource conversion rate in the second distributed message queue to the main device B (that is, the second type of resource conversion rate is dequeued). 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 in the second distributed message queue to the main device C (i.e., the second type of resource conversion rate is dequeued); 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, Fig.12It can also be that 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; S52, the resource cache system uniformly subscribes to the second type of resource conversion rate to the distributed message data processing system; S53, when there is any second type of resource conversion rate in the second distributed message queue, any existing second type of resource conversion rate is sent to the resource cache system, and the resource cache system uniformly caches it; S54, the main device AC can read the required second type of resource conversion rate from the resource cache system through the third resource processing service component.
[0137] like Fig.13 , S911, the quotation query object corresponding to subject A sends a resource quotation request 1 for a business transaction; S912, the quotation query object corresponding to subject B sends a resource quotation request 2 for a business transaction; S913, the quotation query object corresponding to subject C sends a resource quotation request 3 for a business transaction; S921, subject 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, subject 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 Conversion rate 2, to determine the resource quotation conversion rate 2 for providing a quotation to the quotation query object; S923, the main device C respectively reads the target second type resource conversion rate 3 corresponding to the resource quotation request 3 from the resource cache through the third resource service processing component to determine the resource quotation conversion rate 3 for providing a quotation to the quotation query object; S931, the main device A respectively returns the resource quotation information 1 corresponding to the resource quotation conversion rate 1 to the quotation query object; S932, the main device B respectively returns the resource quotation information 2 corresponding to the resource quotation conversion rate 2 to the quotation query object; S933, the main device C respectively returns the resource quotation information 3 corresponding to the resource quotation conversion rate 3 to the quotation query object; Fig.13 For detailed information (such as distributed message data processing system, message data processing node, etc.), please refer to the above Figure 10-12 Related information described in the examples involved.
[0138] It can be understood that the distributed message data processing system can be a Kafka system (a high-throughput distributed publish-subscribe message system), a Pulsar system (a distributed message publish / subscribe delivery platform), etc. It can 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 a subject device to subscribe to a first type of resource conversion rate, and the second subsystem (which may include multiple second distributed nodes) is used to configure a second distributed message queue for a subject device to subscribe to a second type of resource conversion rate. That is, the subject device that deploys 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 that deploys the first resource processing service component subscribes to the first type of resource conversion rate to the first distributed node in the first subsystem, and uploads the internal resource conversion rate to the second distributed node in the second subsystem, and the subject device that deploys the third resource processing service component subscribes to the second type of resource conversion rate to the second distributed node in the second subsystem to improve the resource quotation. It can be understood that multiple subjects can access the external price source negotiated in the region, and after screening and processing the resource conversion rate provided by the external price source, they are all uploaded to the distributed message data processing system based on the first business topic. The central subject can subscribe to the first business topic from the distributed message data processing system, and 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 time, multiple subjects can subscribe to the second business topic from the distributed message data processing system, and cache the subscribed second type resource conversion rate for quotation to customers. In this way, unified access, processing and quotation of resource conversion rates can be achieved, so that multiple subjects can share high-quality price sources.
[0139] In addition, the dependence of a subject on the connected second business object (the connected price source) can also be reduced. At the same time, when processing the resource quotations of multiple subjects, the customer quotation and the price source access are separated to reduce their coupling and dependence. The quotation quality of a subject can no longer rely on the connected external price source, but can use the high-quality resource conversion rate received by all subjects. At the same time, the processed external resource conversion rate is the information provided by the external price source in each region, which can better help the first business object to provide quotations. It can be understood that when there is a newly created subject, if the subject cannot access the external price source, it can subscribe to the second type of resource conversion rate that can make resource quotations by deploying the third resource processing service component, so that the customer quotation capability and business development can be provided normally. Optionally, for some subjects, if the resource conversion rate of a certain transaction resource pair provided by the connected external price source is not high-quality, then for the subject, it can choose not to obtain the resource conversion rate of the transaction resource pair.
[0140] In an embodiment of the present application, a second subject device corresponding to a second subject (such as a subject) associated with a first business object (such as institution A) can obtain a first external resource conversion rate (it can be understood that the resource conversion rate provided by the external business object is the external resource conversion rate) from the connected second business object (such as other institutions other than 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 an external business object of the first business object, and can also be called an external price source, an external resource conversion rate provider, etc.), and upload it to a message data processing node in a distributed message data processing system based on the first business topic. The message data processing node can send a first type of resource conversion rate including the first external resource conversion rate to a central subject device based on the first business topic. The central subject device is a first subject device corresponding to the first subject (which can refer to a subject under institution A or an additionally created new subject) associated with the first business object. In this way, the external resource conversion rates obtained by multiple subjects can be aggregated, and the data isolation between the external resource conversion rates obtained by different subjects can be removed. At this time, the central subject device receives When the first type of resource conversion rate is obtained, a resource conversion parameter can be obtained from a resource data processing strategy associated with the second business subject of the first business object, and resource data processing is performed on the first type of resource conversion rate based on the resource conversion parameter to obtain an internal resource conversion rate associated with the second business subject (it can be understood that the first type of resource conversion rate is uniformly processed to obtain an internal resource conversion rate provided by the first business object, that is, a resource conversion rate provided internally), and the internal resource conversion rate is uploaded to the message data processing node based on the second business subject. The message data processing node can use the obtained internal resource conversion rate as a second type of resource conversion rate for the transaction resource pair based on the second business subject. The second type of resource conversion rate is a resource conversion rate for uniformly providing resource quotations to multiple subjects. For example, the second type of resource conversion rate of the transaction resource pair associated with the first subject issued by the message data processing node is received, and when a resource quotation request sent by the quotation query object for the business transaction is received, the resource quotation conversion rate for providing a quotation to the quotation query object is determined based on the second type of resource conversion rate of the transaction resource pair associated with the business transaction. It can be understood that this allows multiple subjects (the first subject and the second subject) associated with the first business object to share the same resource conversion rate, that is, the resource conversion rate obtained by any subject through the connected second business object can be used by other subjects, that is, the internal resource conversion rate corresponding to the external resource conversion rate obtained by one subject can be obtained and used by another subject, and all subjects of the same organization can share and provide the same resource quotation. Therefore, in the scenario where there are multiple subjects associated with the same organization, the resource quotation of each subject can be optimized, thereby improving the resource quotation quality of different subjects.
[0141] For further information, see Fig.14 , Fig.14 is a flow chart of a resource data processing method provided in an embodiment of the present application, such as Fig.14 As shown, the method can be executed by the message data processing node mentioned above (distributed node in the distributed message data processing system), for example, the message data processing node can be the above 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 a first type resource conversion rate of a transaction resource pair associated with a first subject is obtained, the first type resource conversion rate of the transaction resource pair associated with the first subject is sent to a central subject device based on a first business theme.
[0143] The central subject device obtains a resource conversion parameter from a resource data processing strategy associated with a second business subject of a first business object corresponding to the central subject device, performs resource data processing on a first type of resource conversion rate based on the resource conversion parameter, and obtains an internal resource conversion rate associated with the second business subject. The central subject device is a first subject device corresponding to a first subject associated with a first business object. The first subject is determined from a plurality of subjects associated with the first business object. The first type of resource conversion rate at least includes a first external resource conversion rate uploaded by a second subject device corresponding to a second subject associated with the first business object based on the first business subject acquired by a message data processing node; the first external resource conversion rate is a resource conversion rate provided by a second business object accessed by the second subject for a transaction resource pair. The second subject is a subject other than the first subject among a plurality of subjects associated with the first business object. The second business object is a business object for providing a resource conversion rate of a transaction resource pair to a plurality of subjects, and the second business object is different from the first business object.
[0144] It can be understood that if a first resource processing service component is deployed on the first subject device (or second subject device) corresponding to the first subject (or second subject), the first subject device (or second subject device) as the central subject device is used to subscribe to the topic publishing information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publishing information associated with the first business topic is stored in the first distributed message queue corresponding to the first business topic.
[0145] Therefore, when the first type of resource conversion rate of the transaction resource pair associated with the first subject (or the second subject) is obtained, the first type of resource conversion rate of the transaction resource pair associated with the first subject (or the second subject) is sent to the central subject device (or the second subject device) based on the first business topic. It can be that after receiving the first resource subscription request for subscribing to the first business topic generated by the central subject device (or the second subject device) through the first resource processing service component, if it is determined that there is a first type of resource conversion rate of the transaction resource pair associated with the first business topic in the topic publishing information stored in the first distributed message queue, then when the first type of resource conversion rate of the transaction resource pair is obtained from the topic publishing information stored in the first distributed message queue, the first type of resource conversion rate is sent to the central subject device (or the second subject device) based on the first business topic.
[0146] Optionally, the first type of resource conversion rate can be a first external resource conversion rate uploaded by a central main device based on a first business topic, or a second external resource conversion rate uploaded by a second main device based on the first business topic, or a third external resource conversion rate uploaded by a terminal device associated with a second business object based on the first business topic. In other words, access rights to the distributed message data processing system can be opened to the second business object, and the terminal device associated with the second business object directly provides the resource conversion rate of the transaction resource pair that conforms to the resource data format, thereby omitting the process of deploying the second resource processing service component in the main device.
[0147] Therefore, when the second business object has resource upload authority, 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 acquired 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 that conforms to the resource data format uploaded by 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 the first type of resource conversion rate is added 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, and the terminal device corresponding to the second business object 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, Fig.15 As shown, Fig.151 is a schematic diagram of a scenario for uploading an external resource conversion rate provided by an embodiment of the present application; wherein, if the central main device is deployed with a second resource processing service component, the terminal device associated with the second business object 151 can be accessed through the second resource processing service component, and the resource conversion rate 1 for the transaction resource pair can be obtained from the terminal device associated with the second business object 151 to determine the second external resource conversion rate, and the second external resource conversion rate can be uploaded to the distributed message data processing system (including multiple message data processing nodes); or, if the second main device is deployed with a second resource processing service component, the terminal device associated with the second business object 152 can be accessed through the second resource processing service component, and the resource conversion rate 1 for the transaction resource pair can be obtained from the terminal device associated with the second business object 152. The resource conversion rate 2 for the transaction resource pair is used to determine the first external resource conversion rate, and the first external resource conversion rate is uploaded to the distributed message data processing system; or, if the distributed message data processing system opens 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 the 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 above three situations may exist at the same time or only any one or any two of them may exist.
[0149] S302: 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 resource conversion rate of the transaction resource pair based on the second business theme.
[0150] The second type of resource conversion rate is a resource conversion rate used to uniformly provide resource quotations to multiple entities.
[0151] It can be understood that if a third resource processing service component is deployed on the first subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publishing information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic.
[0152] Therefore, when the second type resource conversion rate of the transaction resource pair associated with the first subject (or the second subject) is obtained, the second type resource conversion rate of the transaction resource pair associated with the first subject (or the second subject) is sent to the central subject device (or the second subject device) based on the second business topic. It can be that after receiving the second resource subscription request for subscribing to the second business topic generated by the central subject device (or the second subject device) through the third resource processing service component, if it is determined that there is a second type resource conversion rate of the transaction resource pair associated with the second business topic in the topic publishing information stored in the second distributed message queue, then when the second type resource conversion rate of the transaction resource pair is obtained from the topic publishing information stored in the second distributed message queue, the second type resource conversion rate is sent to the central subject device (or the second subject device) based on the second business topic, and the central subject device (or the second subject device) caches the received second type resource conversion rate.
[0153] Alternatively, a resource caching system may also be deployed. Therefore, after receiving a second resource subscription request generated by the resource caching system for subscribing to a second business topic, if it is determined that there is a second type of resource conversion rate of a transaction resource pair associated with the second business topic in the topic publishing information stored in the second distributed message queue, then when the second type of resource conversion rate of the transaction resource pair associated with the first subject is obtained from the topic publishing 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 rates.
[0154] For example, Fig.16 As shown, Fig.161 is a schematic diagram of an interactive process of resource data processing provided by an embodiment of the present application; wherein, S11, the central main body device accesses the terminal device associated with the second business object through the second resource processing service component, and after accessing the second business object, a resource inquiry request for the transaction resource pair can be generated, and the resource inquiry request can be sent 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 body device based on the resource inquiry request; S13, the central main body device obtains the 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 subject. Upload to the message data processing node; S14, the second main body device accesses the terminal device associated with the second business object through the second resource processing service component. After accessing the second business object, a resource inquiry request for the transaction resource pair can be generated, and the resource inquiry request can be sent 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 body device based on the resource inquiry request; S16, the second main body 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 subject; S17, the message The data processing node uses the second external resource conversion rate uploaded by the central main device based on the first business topic and the first external resource conversion rate uploaded by the second main device based on the first business topic 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 topic; S18, the central main device generates a first resource subscription request for subscribing to the first business topic 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 subject from the first distributed message queue, based on the first business topic, the transaction resource pair associated with the first subject is subscribed to the first type of resource conversion rate. The first type resource conversion rate of the transaction resource pair is sent to the central main device; S110, the central main device obtains the resource conversion parameter from the resource data processing strategy associated with the second business subject of the first business object, performs resource data processing on the first type resource conversion rate based on the resource conversion parameter, and obtains the internal resource conversion rate associated with the second business subject; S111, the central main device uploads the internal resource conversion rate to the message data processing node based on the second business subject; S112, the message data processing node uses the internal resource conversion rate uploaded by the central main device based on the second business subject as the second type resource conversion rate, and adds the second type resource conversion rate to the second distributed message queue corresponding to the second business subject;S113. The central subject 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 of resource conversion rate of the transaction resource pair associated with the first subject from the second distributed message queue, the second type of resource conversion rate of the transaction resource pair associated with the first subject is sent to the central subject device based on the second business topic; S115. The second subject 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 of resource conversion rate of the transaction resource pair associated with the first subject from the second distributed message queue, the second type of resource conversion rate of the transaction resource pair associated with the first subject is sent to the central subject device based on the second business topic. The business subject sends the second type 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 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 based on the second type resource conversion rate of the target transaction resource pair, determines the resource quotation conversion rate used to provide a quotation to the quotation query object, 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 after receiving the second type resource conversion rate is the same as the above. Among them, the specific implementation principles of steps S1-S119 can be referred to the relevant description of the above embodiment, which will not be repeated here. ;
[0155] In an embodiment of the present application, a second subject device corresponding to a second subject (such as a subject) associated with a first business object (such as institution A) can obtain a first external resource conversion rate (it can be understood that the resource conversion rate provided by the external business object is the external resource conversion rate) from the connected second business object (such as other institutions other than 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 an external business object of the first business object, and can also be called an external price source, an external resource conversion rate provider, etc.), and upload it to a message data processing node in a distributed message data processing system based on the first business topic. When the message data processing node obtains the first type of resource conversion rate of the transaction resource pair associated with the first subject, it can send 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 topic. The central subject device is the first subject device corresponding to the first subject associated with the first business object (which can refer to the subject under institution A or a newly created subject). In this way, it is possible to aggregate the external resource conversion rates obtained by multiple subjects and remove the data isolation between the external resource conversion rates obtained by different subjects. At this time, when the central subject device receives the first type of resource conversion rate, it can obtain the resource conversion parameter from the resource data processing strategy associated with the second business subject of the first business object, and perform resource data processing on the first type of resource conversion rate based on the resource conversion parameter to obtain the internal resource conversion rate associated with the second business subject (it can be understood that the first type of resource conversion rate is uniformly processed to obtain the internal resource conversion rate provided by the first business object, that is, the resource conversion rate provided internally), and upload the internal resource conversion rate to the message data processing node based on the second business subject. When the message data processing node receives the internal resource conversion rate uploaded by the central subject device based on the second business subject, it 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 subject. The second type of resource conversion rate is a resource conversion rate used to uniformly provide resource quotations to multiple subjects. It can be understood that this allows multiple subjects (the first subject and the second subject) associated with the first business object to share the same resource conversion rate, that is, the resource conversion rate obtained by any subject through the connected second business object can be used by other subjects, that is, the internal resource conversion rate corresponding to the external resource conversion rate obtained by one subject can be obtained and used by another subject, and all subjects of the same organization can share and provide the same resource quotation. Therefore, in the scenario where there are multiple subjects associated with the same organization, the resource quotation of each subject can be optimized, thereby improving the resource quotation quality of different subjects.
[0156] For further information, see Fig.17 , Fig.17Schematic diagram of a resource data processing device provided in an embodiment of the present application. Fig.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 in a computer device, for example, the resource data processing device 1 can be an application software; it can be understood that the resource data processing device 1 can be used to execute the corresponding steps of the method provided in the embodiment of the present application. Fig.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 the first type of resource conversion rate of the transaction resource pair associated with the first subject issued by the message data processing node based on the first business theme; the message data processing node is a distributed node in the distributed message data processing system associated with the first business theme; the first type of resource conversion rate at least includes the first external resource conversion rate uploaded by the second subject device corresponding to the second subject associated with the first business object acquired 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 connected to the second subject for the transaction resource pair; the second subject is a subject other than the first subject among the multiple subjects; the second business object is a business object used to provide the resource conversion rate of the transaction resource pair to the 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 a resource conversion parameter from a resource data processing strategy associated with a second business subject of the first business object, and perform resource data processing on the first type resource conversion rate based on the resource conversion parameter to obtain an internal resource conversion rate associated with the second business subject;
[0159] The internal resource uploading 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 uses the acquired 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 multiple entities.
[0160] Wherein, if a first resource processing service component is deployed on a first subject device corresponding to the first subject, the first subject device as a central subject device is used to subscribe to the topic publishing information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publishing information associated with the first business topic is stored in a first distributed message queue corresponding to the first business topic;
[0161] The first resource receiving module 11 further includes:
[0162] A first subscription unit 111 is used to generate a first resource subscription request for subscribing to a first business topic through a first resource processing service component;
[0163] The first subscription unit 111 is also used to send a first resource subscription request to a message data processing node, so that when the message data processing node has a first type of resource conversion rate of a transaction resource pair associated with a first business topic in the topic publishing 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.
[0164] Wherein, if a first resource processing service component is deployed on a first subject device corresponding to the first subject, the first subject device as a central subject device is used to determine the internal resource conversion rate associated with the second business subject through the first resource processing service component;
[0165] The 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 policy through the first resource processing service component;
[0167] The fluctuation rate acquisition unit 122 is used to acquire the resource fluctuation rate of the first type resource conversion rate within the target period;
[0168] The resource conversion unit 123 is used to determine a conversion rate fluctuation value corresponding to the first type resource conversion rate based on the first type resource conversion rate and the resource fluctuation rate, and use the conversion rate fluctuation value corresponding to the first type resource conversion rate as a resource conversion parameter;
[0169] The resource conversion unit 123 is further configured to superimpose the resource conversion parameter on the first type resource conversion rate to obtain an internal resource conversion rate associated with the second business topic.
[0170] Wherein, when a second resource processing service component is deployed in the first subject device corresponding to the first subject, the first type resource conversion rate also includes a second external resource conversion rate uploaded by the first subject device based on the first business topic acquired by the message data processing node; the second external resource conversion rate is a resource conversion rate provided by the second business object accessed by the first subject 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 sending unit 113 is used to receive the resource conversion rate sent by the terminal device associated with the second business object for the transaction resource pair, and obtain a second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate.
[0174] The external resource delivery unit 113 includes:
[0175] The first resource determination subunit 1131 is configured to use the received resource conversion rate as the resource conversion rate to be uploaded, and 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 a second external resource conversion rate for uploading to the message data processing node if the resource conversion rate to be uploaded is within a reasonable resource conversion rate range.
[0177] The received resource conversion rate 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 first subject for the transaction resource pair;
[0178] The external resource delivery unit 113 includes:
[0179] The second resource determination subunit 1132 is used to use the received resource conversion rate as the resource conversion rate to be uploaded when the resource acquisition time corresponding to the second resource processing service component is the reference resource acquisition time, and use 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 obtained resource inquiry request;
[0180] The second resource determination subunit 1132 is further configured to obtain a valid time interval associated with a conversion rate of resources to be uploaded;
[0181] The second resource determination subunit 1132 is further configured to use the to-be-uploaded resource conversion rate as the second external resource conversion rate for uploading to the message data processing node 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.
[0182] The received resource conversion rate 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 first subject for the transaction resource pair;
[0183] The external resource delivery unit 113 includes:
[0184] The third resource determination subunit 1133 is used to use the received resource conversion rate as the resource conversion rate to be uploaded, and use the first business timestamp corresponding to the received resource conversion rate as the first to-be-compared timestamp corresponding to the resource conversion rate to be uploaded when the resource acquisition time corresponding to the second resource processing service component is the first resource acquisition time; 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 in the obtained resource inquiry request;
[0185] The third resource determination subunit 1133 is further used to, at the resource acquisition moment corresponding to the second resource processing service component, use the resource acquisition moment acquired before the first resource acquisition moment as the second resource acquisition moment, use the first historical resource conversion rate received from the terminal device associated with the second business object at the second resource acquisition moment as the first resource conversion rate to be referenced, and use the first business timestamp corresponding to the first historical resource conversion rate as the first timestamp to be referenced; 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 moment corresponds to one first historical resource conversion rate;
[0186] The third resource determination subunit 1133 is further configured to perform a timestamp comparison between the first reference timestamp and the first comparison timestamp to obtain a 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 reference timestamp is less than or equal to the first comparison timestamp.
[0188] The first type of resource conversion rate in the topic publishing 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 acquiring the resource conversion parameter from the resource data processing strategy associated with the second business subject of the first business object, the first resource receiving module 11 further includes:
[0190] The first timestamp acquisition unit 114 is used to 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 to-be-compared timestamp corresponding to the resource conversion rate to be processed when the message acquisition time corresponding to the first resource processing service component is the first message acquisition time; 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 in the obtained resource inquiry request;
[0191] The first timestamp acquisition unit 114 is further used to, at the message acquisition moment corresponding to the first resource processing service component, use the message acquisition moment acquired before the first message acquisition moment as the second message acquisition moment, use the second historical resource conversion rate acquired from the first distributed message queue at the second message acquisition moment as the second resource conversion rate to be referenced, and use 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 moment corresponds to one second historical resource conversion rate;
[0192] The first timestamp comparison unit 114 is further used to perform a timestamp comparison between the second reference timestamp and the second comparison timestamp to obtain a second timestamp comparison result;
[0193] The first timestamp comparison unit 114 is also used to notify the resource data processing module 12 to execute 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 subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publishing 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 further includes:
[0196] The second subscription unit 115 is used to generate a second resource subscription request for subscribing to a second business topic through a third resource processing service component;
[0197] The second subscription unit 115 is also used to send a second resource subscription request to the message data processing node, so that when the message data processing node contains a second type of resource conversion rate of a transaction resource pair associated with the second business topic in the topic publishing 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.
[0198] Among them, the internal resource upload module 13 includes:
[0199] The quotation sheet generating unit 131 is used to generate a second service quotation sheet corresponding to the internal resource conversion rate; the second service quotation sheet 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;
[0200] The quotation uploading unit 132 is used to upload the second business quotation to the message data processing node based on the second business topic, 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 further includes:
[0202] The resource cache unit 124 is configured to, when receiving, through the third resource processing service component, a second type resource conversion rate of a transaction resource pair associated with the first subject in the topic publishing information stored in the second distributed message queue by the message data processing node, add the received second type resource conversion rate to the resource cache associated with the first subject device based on the second type resource conversion rate issued by the second business subject;
[0203] The resource inquiry unit 125 is used to, when receiving a resource quotation request sent by a quotation inquiry object for a business transaction, use the transaction resource pair associated with the business transaction as a target transaction resource pair; the quotation inquiry object is a business object used to inquire about quotations from multiple entities;
[0204] The resource inquiry unit 125 is further configured to obtain the second type resource conversion rate of the target transaction resource pair from the resource cache through the third resource processing service component, and obtain the second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair;
[0205] The resource inquiry unit 125 is further configured to obtain a first maximum business timestamp from a second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair, and use the second type resource conversion rate corresponding to the first obtained maximum business timestamp as the target second type resource conversion rate;
[0206] The resource inquiry unit 125 is further configured to determine a resource quotation conversion rate for providing a quotation to the quotation inquiry object based on the target second-type resource conversion rate and a resource quotation providing strategy associated with the business transaction.
[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 use the second type 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 use the second business timestamp corresponding to the second type resource conversion rate as the third timestamp to be compared corresponding to the resource conversion rate to be cached;
[0209] The timestamp comparison unit 126 is further used to, in the quotation acquisition moment corresponding to the third resource processing service component, use the quotation acquisition moment obtained before the first quotation acquisition moment as the second quotation acquisition moment, use the third historical resource conversion rate obtained from the second distributed message queue at the second quotation acquisition moment as the third resource conversion rate to be referenced, and use the second business timestamp corresponding to the third historical resource conversion rate as the third reference timestamp; the third historical resource conversion rate is an internal resource conversion rate provided by the first business object for the transaction resource pair; one second message acquisition moment corresponds to one third historical resource conversion rate;
[0210] The timestamp comparison unit 126 is further used to perform a timestamp comparison on the third reference timestamp and the third comparison timestamp to obtain a third timestamp comparison result;
[0211] The timestamp comparison unit 126 is further configured to notify the resource cache unit to execute the step of adding the received second type 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] The message data processing node is used to send the type resource conversion rate to the resource cache system associated with the multiple subjects based on the second business topic when there is a second type resource conversion rate of the transaction resource pair in the topic publishing information stored in the second distributed message queue;
[0213] The resource data processing module 12 also includes:
[0214] The resource cache unit 124 is used to, when receiving a resource quotation request sent by a quotation query object for a business transaction, use the transaction resource pair associated with the business transaction as a target transaction resource pair; the quotation query object is a business object used to query quotations from multiple entities;
[0215] The resource inquiry unit 125 is used to obtain the second type resource conversion rate of the target transaction resource pair from the resource cache system through the third resource processing service component, and obtain the second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair;
[0216] The resource inquiry unit 125 is further configured to obtain a maximum business timestamp from the second business timestamps corresponding to the second type resource conversion rates of the target transaction resource pair, and use the second type resource conversion rate corresponding to the obtained maximum business timestamp as the target second type resource conversion rate;
[0217] The resource inquiry unit 125 is further configured to determine a resource quotation conversion rate for providing a quotation to the quotation inquiry object based on the target second-type resource conversion rate and a resource quotation providing strategy associated with the business transaction.
[0218] The specific implementation of the first resource receiving module 11, the resource data processing module 12, and the internal resource uploading module 13 can refer to the relevant description in the above embodiment, which will not be described here. It should be understood that the description of the beneficial effects obtained by adopting the same method will not be repeated.
[0219] For further information, see Fig.18 , Fig.18 Schematic diagram of a resource data processing device provided in an embodiment of the present application. Fig.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 in a computer device, for example, the resource data processing device 2 can be an application software; it can be understood that the resource data processing device 2 can be used to execute the corresponding steps of the method provided in the embodiment of the present application. Fig.18 As shown, the resource data processing device 2 may include: a first resource issuing module 21, an internal resource receiving module 22;
[0220] The first resource delivery module 21 is used for delivering 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, so that the central subject device obtains the resource conversion parameter from the resource data processing strategy associated with the second business theme of the first business object corresponding to the central subject device, performs resource data processing on the first type of resource conversion rate based on the resource conversion parameter, and obtains the internal resource conversion rate associated with the second business theme; the central subject device is a 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 at least includes a first external resource conversion rate uploaded by a second subject device corresponding to the second subject associated with the first business object based on the first business theme acquired by the message data processing node; the first external resource conversion rate is a resource conversion rate provided by the second business object connected to the second subject for the transaction resource pair; the second subject is a subject other than the first subject among the 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 subject device based on the second business subject, use the acquired internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business subject; the second type of resource conversion rate is a resource conversion rate used to uniformly provide resource quotations to multiple subjects.
[0222] Wherein, if a first resource processing service component is deployed on a first subject device corresponding to the first subject, the first subject device as a central subject device is used to subscribe to the topic publishing information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publishing information associated with the first business topic is stored in a first distributed message queue corresponding to the first business topic;
[0223] The first resource delivery module 21 includes:
[0224] The first conversion rate sending unit 211 is used to, after receiving the first resource subscription request for subscribing to the first business topic generated by the central main body device through the first resource processing service component, if it is determined that there is a first type of resource conversion rate of the transaction resource pair associated with the first business topic in the topic publishing information stored in the first distributed message queue, then when the first type of resource conversion rate of the transaction resource pair is obtained from the topic publishing information stored in the first distributed message queue, send the first type of resource conversion rate to the central main body device based on the first business topic.
[0225] Wherein, when the second business object has resource upload authority, the first type resource conversion rate also includes a third external resource conversion rate uploaded by the terminal device associated with the second business object based on the first business topic acquired by the message data processing node; the third external resource conversion rate is a resource conversion rate provided by the second business object for the transaction resource pair;
[0226] The first resource delivery module 21 further includes:
[0227] The external resource receiving unit 212, when receiving the third external resource conversion rate that conforms to the resource data format and is uploaded by the terminal device corresponding to the second business object based on the first business topic, 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 subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publishing 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 delivery module 21 further includes:
[0230] The second conversion rate sending unit 213, after receiving the second resource subscription request for subscribing to the second business topic generated by the central main device through the third resource processing service component, if it is determined that there is a second type of resource conversion rate of the transaction resource pair associated with the second business topic in the topic publishing information stored in the second distributed message queue, then when the second type of resource conversion rate of the transaction resource pair is obtained from the topic publishing 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.
[0231] The specific implementation of the first resource delivery module 21 and the internal resource receiving module 22 can refer to the relevant description in the above embodiment, which will not be described in detail here. It should be understood that the description of the beneficial effects obtained by adopting the same method will not be described in detail either.
[0232] For further information, see Fig.19 , Fig.19 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.19As shown, the computer device 1900 can be an object terminal or a server, which will not be limited here. For ease of understanding, this application takes the computer device as an object terminal as an example. The computer device 1900 may include: a processor 1901, a network interface 1904 and a memory 1905. In addition, the computer device 1900 may also include: a user interface 1903, and at least one communication bus 1902. Among them, the communication bus 1902 is used to realize the connection and communication between these components. Among them, 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 a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1905 may optionally be at least one storage device located away from the aforementioned processor 1901. As Fig.19 As shown, the memory 1905 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application.
[0233] The network interface 1904 in the computer device 1900 can also provide a network data interaction function. Fig.19 In the computer device 1900 shown in the figure, the network interface 1904 can provide a network data interaction function; 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 Figure 4 , Fig. 9 and Fig.14 The description of the resource data processing method in the corresponding embodiment can also be performed as described above. Fig.19 The description of the resource data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0234] In a possible implementation, the memory 1905 is used to store program instructions. The processor 1901 may call the program instructions to perform the following steps:
[0235] 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 topic; the message data processing node is a distributed node in a distributed message data processing system associated with the first business topic; the first type of resource conversion rate at least includes a first external resource conversion rate uploaded by a second subject device corresponding to a second subject associated with a first business object acquired by the message data processing node based on the first business topic; the first external resource conversion rate is a 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 multiple subjects; the second business object is a business object used to provide resource conversion rates of transaction resource pairs to multiple subjects, and the second business object is different from the first business object;
[0236] Acquire a resource conversion parameter from a resource data processing strategy associated with a second business subject of the first business object, perform resource data processing on a first type resource conversion rate based on the resource conversion parameter, and obtain an internal resource conversion rate associated with the second business subject;
[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 uses the acquired 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 multiple entities.
[0238] Wherein, if a first resource processing service component is deployed on a first subject device corresponding to the first subject, the first subject device as a central subject device is used to subscribe to the topic publishing information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publishing information associated with the first business topic is stored in a first distributed message queue corresponding to the first business topic;
[0239] The processor 1901 is further configured to:
[0240] Generate a first resource subscription request for subscribing to a first business topic through a first resource processing service component;
[0241] A first resource subscription request is sent to a message data processing node, so that when the message data processing node contains a first type of resource conversion rate of a transaction resource pair associated with a first business topic in the topic publishing information stored in the first distributed message queue, the first type of resource conversion rate is sent to a central main device based on the first business topic.
[0242] Wherein, if a first resource processing service component is deployed on a first subject device corresponding to the first subject, the first subject device as a central subject device is used to determine the internal resource conversion rate associated with the second business subject through the first resource processing service component;
[0243] When the processor 1901 is used to obtain a resource conversion parameter from a resource data processing strategy associated with a second business subject of a first business object, and perform resource data processing on a first type of resource conversion rate based on the resource conversion parameter to obtain an internal resource conversion rate associated with the second business subject, it is specifically used to:
[0244] Acquire the target time period indicated by the resource processing strategy through the first resource processing service component;
[0245] Obtaining resource fluctuation rate of first type resource conversion rate within a target period;
[0246] Determine a conversion rate fluctuation value corresponding to the first type of resource conversion rate based on the first type of resource conversion rate and the resource fluctuation rate, and use the conversion rate fluctuation value corresponding to the first type of resource conversion rate as a resource conversion parameter;
[0247] The resource conversion parameter is superimposed on the first type resource conversion rate to obtain an internal resource conversion rate associated with the second business topic.
[0248] Wherein, when a second resource processing service component is deployed in the first subject device corresponding to the first subject, the first type resource conversion rate also includes a second external resource conversion rate uploaded by the first subject device based on the first business topic acquired by the message data processing node; the second external resource conversion rate is a resource conversion rate provided by the second business object accessed by the first subject for the transaction resource pair;
[0249] The processor 1901 is further configured to:
[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] A resource conversion rate for a transaction resource pair issued by a terminal device associated with the second business object is received, and based on the received resource conversion rate, a second external resource conversion rate for uploading to the message data processing node is obtained.
[0252] Wherein, when the processor 1901 is used to obtain the second external resource conversion rate for uploading to the message data processing node based on the received resource conversion rate, it is specifically used to:
[0253] Using the received resource conversion rate as the resource conversion rate to be uploaded, and obtaining a reasonable resource conversion rate range associated with the resource conversion rate to be uploaded;
[0254] If the conversion rate of the resource to be uploaded is within a reasonable resource conversion rate range, the conversion rate of the resource to be uploaded is 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 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 first subject for the transaction resource pair;
[0256] When the processor 1901 is used to obtain the second external resource conversion rate for uploading the second external resource conversion rate to the message data processing node based on the received resource conversion rate, it is specifically used to:
[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 in the obtained resource inquiry request;
[0258] Obtaining a valid time interval associated with a conversion rate of resources to be uploaded;
[0259] If the time interval determined based on the reference service timestamp and the reference resource acquisition time is less than or equal to the valid time interval, the to-be-uploaded resource conversion rate is 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 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 first subject for the transaction resource pair;
[0261] When the processor 1901 is used to obtain the second external resource conversion rate for uploading the second external resource conversion rate to the message data processing node based on the received resource conversion rate, it is specifically used to:
[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 to-be-compared 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 in the obtained resource inquiry request;
[0263] In the resource acquisition moment corresponding to the second resource processing service component, the resource acquisition moment acquired before the first resource acquisition moment is used as the second resource acquisition moment, the first historical resource conversion rate received from the terminal device associated with the second business object at the second resource acquisition moment is used as the first resource conversion rate to be referenced, and the first business timestamp corresponding to the first historical resource conversion rate is used as the first timestamp to be referenced; 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 moment corresponds to one first historical resource conversion rate;
[0264] Performing a timestamp comparison between the first reference timestamp and the first comparison timestamp to obtain a first timestamp comparison result;
[0265] If the first timestamp comparison result indicates that the first to-be-referenced timestamp is less than or equal to the first to-be-compared timestamp, the to-be-uploaded resource conversion rate is used as the second external resource conversion rate for uploading to the message data processing node.
[0266] The first type of resource conversion rate in the topic publishing 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 the processor 1901 is used to obtain the resource conversion parameter from the resource data processing strategy associated with the second business subject of the first business object, the processor 1901 is further used 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 to-be-compared 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 in the obtained 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 used 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 used as the second resource conversion rate to be referenced, and the first business timestamp corresponding to the second historical resource conversion rate is used as the second timestamp to be referenced; 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] Performing a timestamp comparison between the second reference timestamp and the second comparison timestamp to obtain a 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, a step of acquiring resource conversion parameters from a resource data processing strategy associated with the second business subject of the first business object is performed.
[0272] Wherein, if a third resource processing service component is deployed on the first subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publishing information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic;
[0273] The processor 1901 is further configured to:
[0274] Generate, by a third resource processing service component, a second resource subscription request for subscribing to a second business topic;
[0275] A second resource subscription request is sent to a message data processing node, so that when the message data processing node contains a second type of resource conversion rate for a transaction resource pair associated with a second business topic in the topic publishing 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.
[0276] Wherein, when the 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 specifically used to:
[0277] Generate a second business quotation corresponding to the internal resource conversion rate; the second business quotation includes 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 topic, 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 further configured to:
[0280] When the message data processing node receives the second type resource conversion rate of the transaction resource pair associated with the first subject in the topic publishing information stored in the second distributed message queue, the received second type resource conversion rate is added to the resource cache associated with the first subject device based on the second type resource conversion rate issued by the second business topic through the third resource processing service component;
[0281] When receiving a resource quotation request sent by a quotation query object for a business transaction, the transaction resource pair associated with the business transaction is used as a target transaction resource pair; the quotation query object is a business object used to query quotations from multiple entities;
[0282] 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 a second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair;
[0283] Obtaining a 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 obtained maximum business timestamp as the target second type resource conversion rate;
[0284] Based on the target second-type resource conversion rate and a resource quotation provision policy associated with the business transaction, a resource quotation conversion rate for providing a quotation to the quotation query object is determined.
[0285] Before adding the received second-type resource conversion rate to the resource cache, the processor 1901 is further configured to:
[0286] When the quotation acquisition time corresponding to the third resource processing service component is the first quotation acquisition time, the second type resource conversion rate obtained from the second distributed message queue is used as the resource conversion rate to be cached, and the second business timestamp corresponding to the second type resource conversion rate is used as the third timestamp to be compared corresponding to the resource conversion rate to be cached;
[0287] In the quotation acquisition moment corresponding to the third resource processing service component, the quotation acquisition moment acquired before the first quotation acquisition moment is used as the second quotation acquisition moment, the third historical resource conversion rate acquired from the second distributed message queue at the second quotation acquisition moment is used as the third resource conversion rate to be referenced, and the second business timestamp corresponding to the third historical resource conversion rate is used as the third timestamp to be referenced; 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 moment corresponds to one third historical resource conversion rate;
[0288] Performing a timestamp comparison on the third reference timestamp and the third comparison timestamp to obtain a third timestamp comparison result;
[0289] If the third timestamp comparison result indicates that the third to-be-referenced timestamp is less than or equal to the third to-be-compared timestamp, the step of adding the received second-type resource conversion rate to the resource cache is performed.
[0290] The message data processing node is used to send the type resource conversion rate to the resource cache system associated with the multiple subjects based on the second business topic when there is a second type resource conversion rate of the transaction resource pair in the topic publishing information stored in the second distributed message queue;
[0291] The processor 1901 is further configured to:
[0292] When receiving a resource quotation request sent by a quotation query object for a business transaction, the transaction resource pair associated with the business transaction is used as a target transaction resource pair; the quotation query object is a business object used to query quotations from multiple entities;
[0293] Obtaining the second type resource conversion rate of the target transaction resource pair from the resource cache system through the third resource processing service component, and obtaining a second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair;
[0294] Obtaining a first maximum business timestamp from a second business timestamp corresponding to a 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 a target second type resource conversion rate;
[0295] Based on the target second-type resource conversion rate and a resource quotation provision policy associated with the business transaction, a resource quotation conversion rate for providing a quotation to the quotation query object is determined.
[0296] In a possible implementation, the memory 1905 is used to store program instructions. The processor 1901 may call 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 subject is obtained, the first type of resource conversion rate of the transaction resource pair associated with the first subject is sent to the central subject device based on the first business subject, so that the central subject device obtains the resource conversion parameter from the resource data processing strategy associated with the second business subject of the first business object corresponding to the central subject device, performs resource data processing on the first type of resource conversion rate based on the resource conversion parameter, and obtains the internal resource conversion rate associated with the second business subject; the central subject device is a 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 at least includes a first external resource conversion rate uploaded by a second subject device corresponding to the second subject associated with the first business object based on the first business subject obtained by the message data processing node; the first external resource conversion rate is a resource conversion rate provided by the second business object connected to the second subject for the transaction resource pair; the second subject is a subject other than the first subject among the 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;
[0298] When the internal resource conversion rate uploaded by the central subject device based on the second business theme is received, 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 a resource conversion rate used to provide unified resource quotations to multiple subjects.
[0299] Wherein, if a first resource processing service component is deployed on a first subject device corresponding to the first subject, the first subject device as a central subject device is used to subscribe to the topic publishing information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publishing information associated with the first business topic is stored in a first distributed message queue corresponding to the first business topic;
[0300] When the processor 1901 is used to obtain the first type resource conversion rate of the transaction resource pair associated with the first subject, and send the first type resource conversion rate of the transaction resource pair associated with the first subject to the central subject device based on the first business subject, it is specifically used to:
[0301] After receiving the first resource subscription request for subscribing to the first business topic generated by the central body device through the first resource processing service component, if it is determined that there is a first type of resource conversion rate of the transaction resource pair associated with the first business topic in the topic publishing information stored in the first distributed message queue, then when the first type of resource conversion rate of the transaction resource pair is obtained from the topic publishing information stored in the first distributed message queue, the first type of resource conversion rate is sent to the central body device based on the first business topic.
[0302] Wherein, when the second business object has resource upload authority, the first type resource conversion rate also includes a third external resource conversion rate uploaded by a terminal device associated with the second business object based on the first business topic acquired by the message data processing node; the third external resource conversion rate is a resource conversion rate provided by the second business object for the transaction resource pair;
[0303] The processor 1901 is further configured to:
[0304] When a third external resource conversion rate conforming to the resource data format is received and uploaded by 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 resource conversion rate, and the first type resource conversion rate is added to the first distributed message queue.
[0305] Wherein, if a third resource processing service component is deployed on the first subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publishing information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic;
[0306] The processor 1901 is further configured to:
[0307] After receiving a second resource subscription request for subscribing to a second business topic generated by the central main device through the third resource processing service component, if it is determined that there is a second type of resource conversion rate of a transaction resource pair associated with the second business topic in the topic publishing information stored in the second distributed message queue, then when the second type of resource conversion rate of the transaction resource pair is obtained from the topic publishing 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 a specific implementation, the device, processor 1901, memory 1905, etc. described in the embodiments of the present application can execute the implementation method described in the above method embodiments, and can also execute the implementation method described in the embodiments of the present application, which will not be repeated here.
[0309] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the resource data processing device 1 and the resource data processing device 2 mentioned above, and the computer program includes computer instructions. When the processor executes the computer instructions, it can execute the above-mentioned Figure 4 , Fig. 9 and Fig.14 The description of the resource data processing method in the corresponding embodiment will therefore not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, computer instructions may be deployed on a computing device for execution, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.
[0310] For further information, see Fig. 20 , Fig. 20 Schematic diagram of a resource data processing system provided in an embodiment of the present application. The resource data processing system 3 may include a central main device 3a and a message data processing node 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 above Figure 1 Any server in the server cluster 200 shown in the figure will not be described in detail here. Among them, the message data processing node 3b can be a distributed node in the distributed message data processing system described in the above embodiment, for example, the message data processing node 3b can be the above Figure 1 Any distributed node in the distributed message data processing system 100 will not be described in detail here. In addition, the description of the beneficial effects of the same method will not be described in detail.
[0311] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, which may include computer instructions, and the computer instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions, so that the computer device executes the above Figure 4 , Fig. 9 and Fig.14The description of the resource data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0312] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0313] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0314] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0315] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0316] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A resource data processing method, characterized in that: The method is executed by a central subject device; the central subject device is a first subject device corresponding to a first subject associated with a first business object; The first subject is determined from a plurality of subjects associated with the first business object; the method comprising: A first type of resource conversion rate of a transaction resource pair associated with the first subject, issued by a message data processing node based on a first business topic; the message data processing node is a distributed node in a distributed message data processing system associated with the first business topic; the first type of resource conversion rate at least includes a first external resource conversion rate uploaded by a second subject device corresponding to a second subject associated with the first business object acquired by the message data processing node based on the first business topic; the first external resource conversion rate is a 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 multiple subjects; the second business object is a business object used to provide the resource conversion rate of the transaction resource pair to the multiple subjects, and the second business object is different from the first business object; Acquire a resource conversion parameter from a resource data processing strategy associated with a second business subject of the first business object, and perform resource data processing on the first type resource conversion rate based on the resource conversion parameter to obtain an internal resource conversion rate associated with the second business subject; 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 acquired 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.
2. The method according to claim 1, characterized in that: If a first resource processing service component is deployed on a first subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publishing information associated with the first business topic is stored in a first distributed message queue corresponding to the first business topic; The method further comprises: Generate, by the first resource processing service component, a first resource subscription request for subscribing to the first service topic; The first resource subscription request is sent to the message data processing node, so that when the first type of resource conversion rate of the transaction resource pair associated with the first business topic exists in the topic publishing information stored in the first distributed message queue, the message data processing node 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 a first subject device corresponding to the first subject, the first subject device as the central subject device is used to determine the internal resource conversion rate associated with the second business subject through the first resource processing service component; The step of acquiring a resource conversion parameter from a resource data processing strategy associated with a second business subject of the first business object, and performing resource data processing on the first type resource conversion rate based on the resource conversion parameter to obtain an internal resource conversion rate associated with the second business subject includes: Acquire the target time period indicated by the resource processing strategy through the first resource processing service component; Obtaining a resource fluctuation rate of the first type of resource conversion rate within the target time period; Determine a conversion rate fluctuation value corresponding to the first type of resource conversion rate based on the first type of resource conversion rate and the resource fluctuation rate, and use the conversion rate fluctuation value corresponding to the first type of resource conversion rate as the resource conversion parameter; The resource conversion parameter is superimposed on the first type resource conversion rate to obtain an internal resource conversion rate associated with the second business topic.
4. The method according to claim 1, characterized in that: When a second resource processing service component is deployed in a first subject device corresponding to the first subject, the first type resource conversion rate also includes a second external resource conversion rate uploaded by the first subject device based on the first business topic acquired by the message data processing node; The second external resource conversion rate is a resource conversion rate provided by the second business object accessed by the first subject for the transaction resource pair; The method further comprises: 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; A resource conversion rate issued by a terminal device associated with the second business object for the transaction resource pair is received, and based on the received resource conversion rate, the second external resource conversion rate for uploading to the message data processing node is obtained.
5. The method according to claim 4, characterized in that The obtaining, based on the received resource conversion rate, the second external resource conversion rate for uploading to the message data processing node comprises: Using the received resource conversion rate as the resource conversion rate to be uploaded, and obtaining a reasonable resource conversion rate range associated with the resource conversion rate to be uploaded; If the conversion rate of the resource to be uploaded is within the reasonable resource conversion rate range, the conversion rate of the resource to be uploaded is 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 obtaining the resource inquiry request sent by the first subject for the transaction resource pair; The obtaining, based on the received resource conversion rate, for uploading the second external resource conversion rate to the message data processing node comprises: 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 in the obtained resource inquiry request; Acquire a valid time interval associated with the conversion rate of the resource to be uploaded; 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, the to-be-uploaded resource conversion rate 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 obtaining the resource inquiry request sent by the first subject for the transaction resource pair; The obtaining, based on the received resource conversion rate, for uploading the second external resource conversion rate to the message data processing node comprises: 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 timestamp to be compared 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 moment corresponding to the second resource processing service component, the resource acquisition moment acquired before the first resource acquisition moment is used as the second resource acquisition moment, the first historical resource conversion rate received from the terminal device associated with the second business object at the second resource acquisition moment is used as the first resource conversion rate to be referenced, and the first business timestamp corresponding to the first historical resource conversion rate is used as the first timestamp to be referenced; 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 moment corresponds to one first historical resource conversion rate; Performing a timestamp comparison on the first to-be-referenced timestamp and the first to-be-compared timestamp to obtain a first timestamp comparison result; If the first timestamp comparison result indicates that the first to-be-referenced timestamp is less than or equal to the first to-be-compared timestamp, the to-be-uploaded resource conversion rate 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 first type of resource conversion rate in the topic publishing 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; Before acquiring the resource conversion parameter from the resource data processing strategy associated with the second business subject 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 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 resource conversion rate is used as the second to-be-compared timestamp corresponding to the resource conversion rate to be processed; the first business timestamp corresponding to the first type resource conversion rate is the transaction system timestamp obtained by the terminal device associated with the second business object in the obtained 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 used 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 used as the second resource conversion rate to be referenced, and the first business timestamp corresponding to the second historical resource conversion rate is used as the second timestamp to be referenced; 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; Performing a timestamp comparison on the second reference timestamp and the second comparison timestamp to obtain a 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, 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 performed.
9. The method according to claim 8, characterized in that If a third resource processing service component is deployed on the first subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publishing information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic; The method further comprises: Generate, by the third resource processing service component, a second resource subscription request for subscribing to the second service topic; The second resource subscription request is sent to the message data processing node, so that when the second type of resource conversion rate of the transaction resource pair associated with the second business topic exists in the topic publishing information stored in the second distributed message queue, the message data processing node sends the second type of resource conversion rate to the central body device based on the second business topic.
10. The method according to claim 9, characterized in that The uploading the internal resource conversion rate to the message data processing node based on the second business topic includes: Generate a second business quotation corresponding to the internal resource conversion rate; the second business quotation includes a second business timestamp corresponding to the internal resource conversion rate; the second business timestamp is a 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 and uses the internal resource conversion rate in the second business quotation as the second type resource conversion rate.
11. The method according to claim 10, characterized in that The method further comprises: When receiving, by the third resource processing service component, the second type resource conversion rate of the transaction resource pair associated with the first subject in the topic publishing information stored in the second distributed message queue by the message data processing node, based on the second type resource conversion rate issued by the second business subject, the received second type resource conversion rate is added to the resource cache associated with the first subject device; When receiving a resource quotation request sent by a quotation query object for a business transaction, taking a transaction resource pair associated with the business transaction as a target transaction resource pair; the quotation query object is a business object used to query quotations from the multiple entities; Acquire the second type resource conversion rate of the target transaction resource pair from the resource cache through the third resource processing service component, and acquire the second business timestamp corresponding to the second type resource conversion rate of the target transaction resource pair; Acquire a maximum business timestamp from the second business timestamps corresponding to the second type resource conversion rate of the target transaction resource pair, and use the second type resource conversion rate corresponding to the acquired maximum business timestamp as the target second type resource conversion rate; Based on the target second-type resource conversion rate and a resource quotation provision strategy associated with the business transaction, a resource quotation conversion rate for providing a quotation to the quotation query object is determined.
12. The method according to claim 11, characterized in that Before adding the received second-type resource conversion rate to the resource cache, the method further includes: When the quotation acquisition time corresponding to the third resource processing service component is the first quotation acquisition time, the second type resource conversion rate obtained from the second distributed message queue is used as the resource conversion rate to be cached, and the second business timestamp corresponding to the second type resource conversion rate is used as the third timestamp to be compared corresponding to the resource conversion rate to be cached; In the quotation acquisition moment corresponding to the third resource processing service component, the quotation acquisition moment acquired before the first quotation acquisition moment is used as the second quotation acquisition moment, the third historical resource conversion rate acquired from the second distributed message queue at the second quotation acquisition moment is used as the third resource conversion rate to be referenced, and the second business timestamp corresponding to the third historical resource conversion rate is used as the third time stamp to be referenced; the third historical resource conversion rate is an internal resource conversion rate provided by the first business object for the transaction resource pair; one second message acquisition moment corresponds to one third historical resource conversion rate; Performing a timestamp comparison between the third reference timestamp and the third comparison timestamp to obtain a third timestamp comparison result; If the third timestamp comparison result indicates that the third to-be-referenced timestamp is less than or equal to the third to-be-compared timestamp, the step of adding the received second-type 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 comprises: When the first type resource conversion rate of the transaction resource pair associated with the first subject is obtained, the first type resource conversion rate of the transaction resource pair associated with the first subject is sent to the central subject device based on the first business subject, so that the central subject device obtains the resource conversion parameter from the resource data processing strategy associated with the second business subject of the first business object corresponding to the central subject device, performs resource data processing on the first type resource conversion rate based on the resource conversion parameter, and obtains the internal resource conversion rate associated with the second business subject; the central subject device is a 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 resource conversion rate at least includes 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 subject acquired by the message data processing node; the first external resource conversion rate is the resource conversion rate provided by the second business object connected to the second subject for the transaction resource pair; the second subject is a subject other than the first subject among the multiple subjects; the second business object is a business object used to provide the resource conversion rate of the transaction resource pair to the multiple subjects, and the second business object is different from the first business object; When the internal resource conversion rate uploaded by the central subject device based on the second business subject is received, the internal resource conversion rate obtained is used as the second type of resource conversion rate of the transaction resource pair based on the second business subject; the second type of resource conversion rate is a resource conversion rate used to provide unified resource quotations to the multiple subjects.
14. The method according to claim 13, characterized in that If a first resource processing service component is deployed on a first subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the first business topic from the distributed message data processing system through the first resource processing service component; the topic publishing information associated with the first business topic is stored in a first distributed message queue corresponding to the first business topic; When the first type resource conversion rate of the transaction resource pair associated with the first subject is obtained, the first type resource conversion rate of the transaction resource pair associated with the first subject is sent to the central subject device based on the first business subject, including: After receiving the first resource subscription request for subscribing to the first business topic generated by the central body device through the first resource processing service component, if it is determined that the first type of resource conversion rate of the transaction resource pair associated with the first business topic exists in the topic publishing information stored in the first distributed message queue, then when the first type of resource conversion rate of the transaction resource pair is obtained from the topic publishing information stored in the first distributed message queue, the first type of resource conversion rate is sent to the central body 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 subject device corresponding to the first subject, the first subject device as the central subject device is used to subscribe to the topic publishing information associated with the second business topic from the distributed message data processing system through the third resource processing service component; the topic publishing information associated with the second business topic is stored in the second distributed message queue corresponding to the second business topic; The method further comprises: After receiving the second resource subscription request for subscribing to the second business topic generated by the central body device through the third resource processing service component, if it is determined that the second type of resource conversion rate of the transaction resource pair associated with the second business topic exists in the topic publishing information stored in the second distributed message queue, then when the second type of resource conversion rate of the transaction resource pair is obtained from the topic publishing information stored in the second distributed message queue, the second type of resource conversion rate is sent to the central body device based on the second business topic.
16. A resource data processing device, characterized in that: The apparatus runs on a central subject device, and the central subject device is a first subject device corresponding to a first subject associated with a first business object; The first subject is determined from a plurality of subjects associated with the first business object; the apparatus comprises: A first resource receiving module is used to receive a first type of resource conversion rate of a transaction resource pair associated with the first subject, which is issued by a message data processing node based on a first business topic; the message data processing node is a distributed node in a distributed message data processing system associated with the first business topic; the first type of resource conversion rate at least includes a first external resource conversion rate uploaded by a second subject device corresponding to a second subject associated with the first business object acquired by the message data processing node based on the first business topic; the first external resource conversion rate is a resource conversion rate provided by a second business object connected to the second subject for the transaction resource pair; the second subject is a subject other than the first subject among the multiple subjects; the second business object is a business object used to provide the resource conversion rate of the transaction resource pair to the multiple subjects, and the second business object is different from the first business object; A resource data processing module, configured to obtain a resource conversion parameter from a resource data processing strategy associated with a second business subject of the first business object, and perform resource data processing on the first type resource conversion rate based on the resource conversion parameter to obtain an internal resource conversion rate associated with the second business subject; An internal resource uploading module is used to upload the internal resource conversion rate to the message data processing node based on the second business subject, so that the message data processing node uses the acquired internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business subject; 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 runs on a message data processing node, which is a distributed node in a distributed message data processing system; the device includes: a first resource delivery module, configured to deliver the first type of resource conversion rate of the transaction resource pair associated with the first subject to a central subject device based on a first business theme when a first type of resource conversion rate of the transaction resource pair associated with the first subject is acquired, so that the central subject device acquires a resource conversion parameter from a resource data processing strategy associated with a second business theme of a first business object corresponding to the central subject device, performs resource data processing on the first type of resource conversion rate based on the resource conversion parameter, and obtains an internal resource conversion rate associated with the second business theme; the central subject device is a first subject device corresponding to the first subject associated with the first business object; the first subject is determined from a plurality of subjects associated with the first business object; the first type of resource conversion rate at least includes a first external resource conversion rate uploaded by a second subject device corresponding to a second subject associated with the first business object based on the first business theme acquired by the message data processing node; the first external resource conversion rate is a resource conversion rate provided by a second business object connected to 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 for providing 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; An internal resource receiving module is used to, upon receiving the internal resource conversion rate uploaded by the central subject device based on the second business subject, use the acquired internal resource conversion rate as the second type of resource conversion rate of the transaction resource pair based on the second business subject; the second type of resource conversion rate is a resource conversion rate used to uniformly provide resource quotations to the multiple subjects.
18. A computer device, characterized in that: including memory and processor; The memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 15.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 15.
20. A computer program product, characterized in that The method comprises a computer program / instruction, which implements the method according to any one of claims 1 to 15 when executed by a processor.
Citation Information
Patent Citations
Resource transfer method, resource transfer device, storage medium and electronic equipment
CN110766406A
Inquiry data processing method and device, computer equipment and storage medium
CN114255041A
Block chain data request processing method and device, server and storage medium
CN114679283A
Synchronized processing of data by networked computing resources
US20100332650A1
