A data sharing processing method, device and system

Through the data amortization processing method, the sub-threads of the thread pool are used to process data packets, which solves the problem of asynchrony caused by the imbalance of data in different areas and achieves real-time and efficient data processing.

CN114896073BActive Publication Date: 2024-09-24北京自如信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210626081.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-09-24
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

In the existing technology, the imbalance of data between different regions or projects leads to asynchronous data processing, making it impossible to achieve real-time calculation and analysis.

Method used

Using the data amortization processing method, the data to be amortized is obtained and classified into several data packets, and sent to the message middleware. The sub-threads of the thread pool are used to perform amortization logic processing and report item calculation to ensure the synchronization of data processing among multiple servers. .

Benefits of technology

It improves the efficiency and speed of data processing, solves the problem of data skew, ensures the synchronization of data processing between multiple sub-threads, and can handle large amounts of data concurrency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114896073B
    Figure CN114896073B
Patent Text Reader

Abstract

The present invention provides a data allocation processing method, device and system, wherein the method includes: obtaining data to be allocated and data sources corresponding to the data to be allocated; classifying the data to be allocated according to the data sources corresponding to the data to be allocated to obtain a number of first data packets; sending each first data packet to a message middleware; receiving a third data packet sent by a second server; classifying the third data packet according to report items to generate a fourth data packet; sending the fourth data packet to the message middleware; receiving a fifth data packet sent by the second server, and obtaining a data allocation result according to the fifth data packet. By classifying the third data packet according to report items, a foundation is laid for the subsequent top-level report item calculation logic, and by packaging the data to be allocated in batches, the efficiency of the system in processing the increasing data is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a data sharing processing method, device and system. Background Art

[0002] In order to better manage the company, managers need to check the financial statements to understand the operating costs and profitability of the head office and subsidiaries in different cities. The financial statements are mainly divided into three parts: revenue, cost and profit. Since the financial system has many accounting items (more than 500 budget items), each budget item must be allocated and calculated, which requires a huge amount of calculation. For example, there are nearly 10 million general ledger data, and nearly 400,000 data to be allocated after data processing. Then, according to the allocation principle, it is allocated to more than 500 budget items, with a total calculation frequency of 200 million times. In addition, there are large differences in the amount of financial data of different subsidiaries. In order to ensure the real-time performance of data processing, it is necessary to allocate the financial data. Summary of the invention

[0003] Therefore, the technical problem to be solved by the present invention is to overcome the imbalance of data in different regions or projects in the prior art, which leads to the lack of synchronization in data processing and the inability to perform real-time calculation and analysis of all data, thereby providing a data sharing processing method, device and system.

[0004] According to a first aspect, an embodiment of the present invention provides a data allocation processing method, which is applied to a first server, and the method includes:

[0005] Obtaining data to be apportioned and data sources corresponding to the data to be apportioned;

[0006] Classifying the data to be apportioned according to data sources corresponding to the data to be apportioned to obtain a plurality of first data packets;

[0007] Sending each of the first data packets to the message middleware;

[0008] Receive a third data packet sent by the second server, wherein the third data packet is generated by the second server when monitoring the existence of the first data packet on the message middleware, packaging the first data packets in the monitoring order to generate a second data packet, and calling a child thread of the thread pool to perform apportionment logic processing on the second data packet to generate a third data packet;

[0009] Classifying the third data packet according to report items to generate a fourth data packet;

[0010] Sending the fourth data packet to the message middleware;

[0011] Receive the fifth data packet sent by the second server, and obtain the data allocation result based on the fifth data packet. When the second server monitors the existence of the fourth data packet on the message middleware, the thread pool sub-thread is called in the monitoring order to perform report item calculations on each of the fourth data packets to generate the fifth data packet.

[0012] Optionally, obtaining a data allocation result according to the fifth data packet includes:

[0013] Each of the fifth data packets is classified according to the report items and data sources corresponding to the fifth data packets to obtain a data allocation result.

[0014] According to the second aspect, an embodiment of the present invention further provides a data allocation processing method, which is applied to a second server, and the method includes:

[0015] When a first data packet is detected on the message middleware, each of the first data packets is packaged in the order of monitoring to generate a second data packet, wherein the first data packet is for the first server to obtain the data to be allocated and the data source corresponding to the data to be allocated; the data to be allocated is classified according to the data source corresponding to the data to be allocated to obtain the first data packet;

[0016] Calling a child thread of the thread pool to perform apportionment logic processing on the second data packet to generate a third data packet;

[0017] sending the third data packet to the first server so that the first server classifies the third data packet according to the report items to generate a fourth data packet; and sending the fourth data packet to the message middleware;

[0018] When the existence of the fourth data packet is monitored on the message middleware, the thread pool subthread is called in the monitoring order to calculate the report items of each of the fourth data packets to generate a fifth data packet, wherein the fourth data packet is generated by the first server by classifying the third data packet according to the report items;

[0019] The fifth data packet is sent to the first server.

[0020] Optionally, the calling of the thread pool sub-threads in the listening order to perform report item calculation on each of the fourth data packets to generate a fifth data packet includes:

[0021] Get the report item formula corresponding to the current fourth data packet;

[0022] Based on the report item formula, a thread pool sub-thread is called to perform report item calculation on the current fourth data packet to generate a fifth data packet.

[0023] Optionally, before sending the third data packet to the first server, the method further includes:

[0024] Count the total number of second data packets in the current batch according to the monitoring order;

[0025] Counting the total number of third data packets generated in the current batch;

[0026] Determining whether the total number of the third data packets generated in the current batch is equal to the total number of the second data packets;

[0027] When the total number of the third data packets generated in the current batch is equal to the total number of the second data packets, sending the third data packet to the first server;

[0028] When the total number of generated third data packets in the current batch is not equal to the total number of second data packets, the current sub-thread is called to perform apportionment logic processing on the next second data packet in the current batch.

[0029] According to a third aspect, an embodiment of the present invention provides a data sharing processing device, which is applied to a first server, and the device includes:

[0030] An acquisition module, used to acquire the data to be allocated and the data source corresponding to the data to be allocated;

[0031] A first processing module, configured to classify the data to be apportioned according to data sources corresponding to the data to be apportioned, to obtain a plurality of first data packets;

[0032] A first sending module, used for sending each of the first data packets to the message middleware;

[0033] The first receiving module is used to receive a third data packet sent by the second server, wherein the second server, when monitoring the existence of the first data packet on the message middleware, packs the first data packets in the monitoring order to generate a second data packet, and calls a child thread of the thread pool to perform apportionment logic processing on the second data packet to generate a third data packet;

[0034] A first classification module, used for classifying the third data packet according to report items to generate a fourth data packet;

[0035] A second sending module, used for sending the fourth data packet to the message middleware;

[0036] The second receiving module is used to receive the fifth data packet sent by the second server and obtain the data allocation result according to the fifth data packet. When the second server monitors that the fourth data packet exists on the message middleware, the thread pool sub-thread is called in the monitoring order to perform report item calculation on each of the fourth data packets to generate the fifth data packet.

[0037] According to a fourth aspect, an embodiment of the present invention further provides a data sharing processing device, which is applied to a second server, and the device includes:

[0038] The second processing module is used to pack each of the first data packets in the order of monitoring to generate a second data packet when monitoring the existence of the first data packet on the message middleware, wherein the first data packet is for the first server to obtain the data to be allocated and the data source corresponding to the data to be allocated; and the data to be allocated is classified according to the data source corresponding to the data to be allocated to obtain the first data packet;

[0039] A third processing module, used for calling a sub-thread of a thread pool to perform apportionment logic processing on the second data packet to generate a third data packet;

[0040] A third sending module is used to send the third data packet to the first server, so that the first server classifies the third data packet according to the report items to generate a fourth data packet; and send the fourth data packet to the message middleware;

[0041] a fourth processing module, configured to, when monitoring the presence of the fourth data packet on the message middleware, call the thread pool subthread in the monitoring order to calculate the report item for each of the fourth data packets to generate a fifth data packet, wherein the fourth data packet is generated by the first server by classifying the third data packet according to the report item;

[0042] A fifth processing module is used to send the fifth data packet to the first server.

[0043] According to a fifth aspect, an embodiment of the present invention provides a data sharing processing system, including a first server, a second server and a message middleware, wherein:

[0044] The first server is used to obtain the data to be apportioned and the data source corresponding to the data to be apportioned; classify the data to be apportioned according to the data source corresponding to the data to be apportioned to obtain a plurality of first data packets; and send each of the first data packets to the message middleware;

[0045] The second server is used to, when monitoring the existence of the first data packet on the message middleware, pack the first data packets according to the monitoring order to generate a second data packet; use the child thread of the thread pool to perform logic processing on the second data packet to generate a third data packet; and send the third data packet to the first server;

[0046] The first server is further configured to receive a third data packet sent by the second server; classify the third data packet according to report items to generate a fourth data packet; and send the fourth data packet to the message middleware;

[0047] The second server is further configured to, when monitoring the existence of the fourth data packet on the message middleware, call the thread pool subthreads in the monitoring order to perform report item calculation on each of the fourth data packets to generate a fifth data packet; and send the fifth data packet to the first server;

[0048] The first server is further used to receive a fifth data packet sent by the second server, and obtain a data allocation result according to the fifth data packet.

[0049] According to a sixth aspect, an embodiment of the present invention provides an electronic device, including:

[0050] A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method described in the first / second aspect, or any optional implementation manner of the first / second aspect, by executing the computer instructions.

[0051] According to the seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first / second aspect, or any optional implementation manner of the first / second aspect.

[0052] The technical solution of the present invention has the following advantages:

[0053] The present invention provides a data allocation processing method and device, which obtains data to be allocated and data sources corresponding to the data to be allocated; classifies the data to be allocated according to the data sources corresponding to the data to be allocated to obtain a plurality of first data packets; sends each first data packet to a message middleware; receives a third data packet sent by a second server, the third data packet is when the second server monitors that there are first data packets on the message middleware, packs each first data packet in a listening order to generate a second data packet, and calls a sub-thread of a thread pool to perform allocation logic processing on the second data packet to generate a third data packet; classifies the third data packet according to report items to generate a fourth data packet; sends the fourth data packet to the message middleware; receives a fifth data packet sent by the second server, and obtains a data allocation result according to the fifth data packet, the fifth data packet is when the second server monitors that there are fourth data packets on the message middleware, calls a sub-thread of a thread pool in a listening order to perform report item calculation on each fourth data packet to generate a fifth data packet. With the growth of data and the expansion of business, the amount of data continues to increase. By classifying the data to be allocated, it is convenient for subsequent managers to view the overall and partial main data. By classifying the third data package according to the report items, it lays the foundation for the subsequent top-level report item calculation logic. By packaging the data to be allocated in batches, the efficiency of the system in processing the increasing data is greatly improved.

[0054] The present invention also provides a data sharing processing method and device, which includes: when monitoring the existence of a first data packet on a message middleware, packaging each first data packet in a listening order to generate a second data packet, wherein the first data packet is for a first server to obtain data to be shared and a data source corresponding to the data to be shared; classifying the data to be shared according to the data source corresponding to the data to be shared to obtain a first data packet; calling a sub-thread of a thread pool to perform sharing logic processing on the second data packet to generate a third data packet; sending the third data packet to the first server so that the first server classifies the third data packet according to report items to generate a fourth data packet; sending the fourth data packet to the message middleware; when monitoring the existence of a fourth data packet on the message middleware, calling a sub-thread of the thread pool in a listening order to perform report item calculation on each fourth data packet to generate a fifth data packet, wherein the fourth data packet is for the first server to classify the third data packet according to report items to generate a fourth data packet; and sending the fifth data packet to the first server. By using thread pool sub-threads to process specific business logic in parallel, we can prevent data backlog caused by excessive data volume. The second server can be used to solve the problem of large differences in data quantity between different subsidiaries and regions, namely the "data skew" problem, thereby reducing the number of sub-thread data processing, improving the speed of data processing, and ensuring the synchronization of data processing among multiple sub-threads.

[0055] An embodiment of the present invention provides a data sharing processing system, including a first server, a second server and a message middleware, wherein the first server is used to obtain data to be shared and a data source corresponding to the data to be shared; classify the data to be shared according to the data source corresponding to the data to be shared to obtain a number of first data packets; send each first data packet to the message middleware; the second server is used to package each first data packet in a listening order to generate a second data packet when it monitors that there is a first data packet on the message middleware; use a sub-thread of a thread pool to perform sharing logic processing on the second data packet to generate a third data packet; send the third data packet to the first server; the first server is also used to receive the third data packet sent by the second server; classify the third data packet according to report items to generate a fourth data packet; send the fourth data packet to the message middleware; the second server is also used to call the thread pool sub-thread in the listening order to perform report item calculation on each fourth data packet when it monitors that there is a fourth data packet on the message middleware to generate a fifth data packet; send the fifth data packet to the first server; the first server is also used to receive the fifth data packet sent by the second server, and obtain the data sharing result according to the fifth data packet. By using thread pool sub-threads to process specific business logic in parallel, we can prevent data backlog caused by excessive data volume. The second server can be used to solve the problem of large differences in data quantity between different subsidiaries and regions, namely the "data skew" problem, thereby reducing the number of sub-thread data processing, improving the speed of data processing, and ensuring the synchronization of data processing among multiple sub-threads. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0057] Figure 1 A schematic diagram of a data sharing processing system according to an embodiment of the present invention;

[0058] Figure 2 It is a schematic diagram of the overall framework of the data sharing processing system according to an embodiment of the present invention;

[0059] Figure 3 A schematic diagram of the interactive process of the data sharing processing method according to an embodiment of the present invention;

[0060] Figure 4 A schematic diagram of the structure of a data sharing processing device according to an embodiment of the present invention;

[0061] Figure 5It is a structural schematic diagram of another data sharing processing device according to an embodiment of the present invention;

[0062] Figure 6 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", "fourth", and "fifth" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0065] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0066] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0067] In order to better manage the company's operating costs, the financial report system is currently used to count and display the company's profitability. The report content is mainly divided into three parts: income, cost and profit. Among the costs, some public costs should not be allocated to a specific city or region's projects, or should not be allocated to a specific project, but should be allocated to all projects according to specific rules.

[0068] Taking the long-term rental business as an example, the long-term rental business is managed according to the room rental contract dimension. Each public cost should be allocated to each specific account. The accounting subjects of the financial system are very numerous (nearly 500 budget items), and each budget item must be allocated and calculated. For example, if there are nearly 10 million general ledger data, and nearly 400,000 data to be allocated after data processing, and then more than 500 budget items are allocated, the total calculation frequency is 200 million times. The numerous data requires a high performance of the financial reporting system, otherwise the expected results required by managers cannot be calculated. In addition, due to the large differences in the amount of data between different regions or projects, data processing is asynchronous, and it is impossible to perform real-time calculation and analysis of all data.

[0069] Based on the above problems, an embodiment of the present invention provides a data sharing processing system, such as Figure 1 As shown, the data sharing processing system includes a first server 1, a second server 3 and a message middleware 2, wherein:

[0070] Specifically, the embodiment of the present invention takes the process of allocating the amount of long-term rental tax business as an example to illustrate the data allocation processing system provided by the embodiment of the present invention.

[0071] like Figure 2 As shown, the first server 1 in the embodiment of the present invention is a production-end server. The production-end server first processes the public data (such as report item definition information) into a cache format (exemplarily, the cache format can be a KV format), and then stores the public data in the cache (exemplarily, the cache can use a redis cache), and packages the data to be allocated according to the city buckets to obtain several first data packets packaged in buckets, and sends all the first data packets to the message middleware 2 (exemplarily, the message middleware 2 can use rabbitmq).

[0072] In actual applications, the data to be allocated can be financial general ledger data, including financial management difference data, rental income data, salary data, marketing data, intelligent expense data and small business report data.

[0073] The embodiment of the present invention adopts KV cache to put public data into the cache, and each sub-thread in the thread pool can directly use it when processing logic, thereby reducing the execution time of the sub-threads and improving the timeliness of the system.

[0074] Specifically, when the second server 3 monitors the existence of a first data packet on the message middleware 2, it packages each first data packet in the order of monitoring to generate a second data packet; uses the child thread of the thread pool to perform logical processing on the second data packet to generate a third data packet; and sends the third data packet to the first server 1.

[0075] Specifically, in actual applications, the above-mentioned second server 3 in the embodiment of the present invention is a consumer-end server. In order to improve the parallel execution capability of data processing, a multi-level second server 3 can also be set up, that is, when the amount of data increases, the data can be processed simultaneously by expanding the consumer-end service.

[0076] Exemplarily, an embodiment of the present invention adopts a two-level consumer-end service, that is, the consumer-end server includes a primary consumer-end server and a secondary consumer-end server, thereby solving the problem of "data skew" between different regions or different projects, reducing the number of sub-thread data processing, and improving the speed of service processing.

[0077] Specifically, in practical applications, the first-level consumer-end server can be used to package the data to be allocated in batches, and the second-level consumer-end server calls the thread pool sub-thread to perform specific allocation logic processing on the packaged data. The embodiment of the present invention adopts the design concept of "bucketing and batching" and distributes messages to different terminals for processing through the message middleware. When the amount of data increases, the consumer-end server terminal instance can be directly added, thereby improving the scalability and concurrency of the data allocation processing system.

[0078] Specifically, in actual applications, the consumer-end server monitors the message in the message queue. After the consumer-end server receives the message, the thread pool is started, and the child thread of the thread pool is processed. The child thread packages the second data packet to be allocated in batches and sends it to the message middleware 2 (exemplarily, the message middleware 2 can be rabbitmq). The secondary consumer-end service monitors the message in the message queue. After the consumer receives the message, the thread pool is started, and the child thread of the thread pool is processed. The child thread handles the specific business allocation logic. After the business allocation logic is processed, it determines whether it is the last batch of data. If not, it ends directly.

[0079] For example, if there are 1,000 pieces of data, divided into 10 batches of 100 pieces each, and each batch is judged whether it is completed. When each batch is completed, the number of completed pieces is counted. If the number of completed pieces is exactly 10, the data processed in the current sub-thread is the last one. At this time, the production server will receive a judgment result of "yes"; if it is not 10, the data processed in the current sub-thread is not the last one.

[0080] Specifically, in practical applications, in order to better solve the problem of data volume surge, the embodiment of the present invention adopts thread pool sub-threads to process specific business logic in parallel to prevent data backlog caused by excessive data volume.

[0081] Specifically, the first server 1 is further configured to receive a third data packet sent by the second server 3 ; classify the third data packet according to report items to generate a fourth data packet; and send the fourth data packet to the message middleware 2 .

[0082] Specifically, in actual applications, after all sub-threads have finished processing the business logic, the production-end server of the embodiment of the present invention will perform operations such as report item formula calculation after receiving a judgment result of "yes".

[0083] Specifically, in actual application, after receiving the notification, the production server of the embodiment of the present invention packages the data to be calculated (i.e., the third data packet) in batches, generates a fourth data packet, and sends the fourth data packet to the message middleware 2. Here, it is explained that the allocation logic mainly allocates the data of the bottom report items, and the formula calculation of the report items calculates the top report items through the bottom report items.

[0084] Specifically, when the second server 3 monitors the existence of the fourth data packet on the message middleware 2, it calls the thread pool sub-threads in the monitoring order to calculate the report items of each fourth data packet to generate a fifth data packet; and sends the fifth data packet to the first server 1.

[0085] Specifically, in actual applications, the consumer-end server monitors the messages in the message queue. After the consumer-end server receives the message that there is a fourth data packet on the message middleware 2, it starts the thread pool and calls the child threads of the thread pool in the order of monitoring to perform calculations; the child threads process the specific top-level report item calculation logic, and after the calculation logic is processed, it determines whether it is the last batch of data, and ends directly if not.

[0086] Specifically, the first server 1 is further used to receive the fifth data packet sent by the second server 3, and obtain the data allocation result according to the fifth data packet.

[0087] Specifically, in actual applications, when all sub-threads have completed the processing of the calculation logic allocation, the production-side server of the embodiment of the present invention receives the judgment result of "yes" and calls the production-side server to inform that the processing is completed. After receiving the information, the production-side server generates a log record for the production accounting period and sends a message (exemplarily, the message can be sent in the form of enterprise WeChat) to notify the financial long-term rental business staff that the entire allocation operation has been processed.

[0088] The embodiment of the present invention adopts the message middleware 2, and different consumer-end servers obtain data from the message middleware 2. When the amount of data increases sharply, the consumer-end servers can be expanded to improve the parallel execution capability, thereby improving the system stability and scalability.

[0089] In addition, since the amount of data to be shared is relatively large, performance must be considered from all aspects. In terms of software architecture, it is necessary to consider batch, parallel, and distributed technical means to process the calculation logic of core data; in terms of database design, it is necessary to consider the optimization of database table design (such as adding indexes, deadlocks and lock waits caused by concurrent updates, etc.); in terms of hardware, consider using solid-state drives SSD instead of general mechanical hard drives HDD to improve the read and write speed of the database. In terms of software deployment, deploy more instances (for example, a report item process is regarded as an instance) to improve the ability of parallel execution.

[0090] For further description of the first server 1, the second server 3 and the message middleware 2, please refer to the relevant description of the corresponding data sharing processing method embodiment below, which will not be repeated here.

[0091] Through the collaborative cooperation of the above-mentioned components, the data sharing processing system provided by the embodiment of the present invention includes a first server 1, a second server 3 and a message middleware 2, wherein the first server 1 is used to obtain the data to be shared and the data source corresponding to the data to be shared; the data to be shared is classified according to the data source corresponding to the data to be shared to obtain a plurality of first data packets; each first data packet is sent to the message middleware 2; the second server 3 is used to package each first data packet to generate a second data packet in accordance with the listening order when it is monitored that there is a first data packet on the message middleware 2; and the second data packet is logically processed by a sub-thread of a thread pool, Generate a third data packet; send the third data packet to the first server 1; the first server 1 is also used to receive the third data packet sent by the second server 3; classify the third data packet according to the report items to generate a fourth data packet; send the fourth data packet to the message middleware 2; the second server 3 is also used to call the thread pool sub-threads in the listening order to calculate the report items of each fourth data packet in the message middleware 2 when monitoring the existence of the fourth data packet, and generate a fifth data packet; send the fifth data packet to the first server 1; the first server 1 is also used to receive the fifth data packet sent by the second server 3, and obtain the data allocation result according to the fifth data packet. By using the thread pool sub-threads to process specific business logic in parallel, data backlog caused by too much data volume is prevented, and the second server 3 is used to solve the problem of large differences in the number of data between different subsidiaries and different regions, that is, "data skew", thereby reducing the number of sub-thread data processing, improving the speed of data processing, and ensuring the synchronization of data processing between multiple sub-threads.

[0092] The embodiment of the present invention also provides a data allocation processing method, which is applied to Figure 1 The first server 1 shown, wherein Figure 3 As shown,

[0093] Step S101: Obtain the data to be apportioned and the data source corresponding to the data to be apportioned.

[0094] Specifically, in practical applications, the embodiments of the present invention simultaneously obtains public data when acquiring the data to be allocated, and stores the processed public data into a cache for repeated use, thereby avoiding repeated query and processing of data and improving the usability of the data allocation processing method provided by the embodiments of the present invention.

[0095] Specifically, in actual applications, when obtaining the data to be apportioned, the source of the data to be apportioned will also be obtained. The source can be divided into subsidiaries, regions, and projects, etc., so as to conduct preliminary processing and classification of the data to be apportioned. The specific situation must be checked, verified, adjusted, and adjusted by the sales staff of each business line until the account information is correct.

[0096] Step S102: Classify the data to be allocated according to the data sources corresponding to the data to be allocated, and obtain a plurality of first data packets. For details, please refer to the relevant description in the above data allocation processing system embodiment, which will not be described in detail here.

[0097] Step S103: Send each first data packet to the message middleware. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0098] Step S104: receiving a third data packet sent by the second server, wherein the second server, when monitoring the existence of the first data packet on the message middleware, packs each first data packet in the monitoring order to generate a second data packet, and calls the child thread of the thread pool to perform apportionment logic processing on the second data packet to generate the third data packet. For details, refer to the relevant description in the above data apportionment processing system embodiment, which will not be repeated here.

[0099] Step S105: Classify the third data packet according to the report items to generate a fourth data packet. For details, please refer to the relevant description in the above data allocation processing system embodiment, which will not be repeated here.

[0100] Step S106: Send the fourth data packet to the message middleware. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0101] Step S107: Receive the fifth data packet sent by the second server, and obtain the data allocation result according to the fifth data packet, wherein the second server, when monitoring the existence of the fourth data packet on the message middleware, calls the thread pool subthread in the monitoring order to calculate the report items of each fourth data packet, and generates the fifth data packet. For details, please refer to the relevant description in the above data allocation processing system embodiment, which will not be repeated here.

[0102] Specifically, in one embodiment, the step S107 obtains the data allocation result according to the fifth data packet, and specifically includes the following steps:

[0103] Step S108: Classify each fifth data packet according to the report item and data source corresponding to the fifth data packet to obtain a data allocation result. For details, please refer to the relevant description in the above data allocation processing system embodiment, which will not be repeated here.

[0104] By executing the above steps, the data allocation processing method provided by the embodiment of the present invention obtains the data to be allocated and the data source corresponding to the data to be allocated; classifies the data to be allocated according to the data source corresponding to the data to be allocated to obtain several first data packets; sends each first data packet to the message middleware; receives the third data packet sent by the second server, the third data packet is when the second server monitors the existence of the first data packet on the message middleware, packs each first data packet in the listening order to generate a second data packet, and calls the sub-thread of the thread pool to perform allocation logic processing on the second data packet to generate the third data packet; classifies the third data packet according to the report items to generate a fourth data packet; sends the fourth data packet to the message middleware; receives the fifth data packet sent by the second server, and obtains the data allocation result according to the fifth data packet, the fifth data packet is when the second server monitors the existence of the fourth data packet on the message middleware, calls the sub-thread of the thread pool in the listening order to calculate the report items of each fourth data packet to generate the fifth data packet. With the growth of data and the expansion of business, the amount of data continues to increase. By classifying the data to be allocated, it is convenient for subsequent managers to view the overall and partial main data. By classifying the third data package according to the report items, it lays the foundation for the subsequent top-level report item calculation logic. By packaging the data to be allocated in batches, the efficiency of the system in processing the increasing data is greatly improved.

[0105] The embodiment of the present invention also provides a data allocation processing method, which is applied to Figure 1 The second server 3 shown, wherein Figure 3 As shown,

[0106] Step S201: when a first data packet is detected on the message middleware, each first data packet is packaged in the order of monitoring to generate a second data packet, the first data packet is the first server obtaining the data to be allocated and the data source corresponding to the data to be allocated; the data to be allocated is classified according to the data source corresponding to the data to be allocated, and the first data packet is obtained. For details, please refer to the relevant description in the above data allocation processing system embodiment, which will not be repeated here.

[0107] Step S202: calling a child thread of the thread pool to perform logical processing on the second data packet to generate a third data packet. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0108] Specifically, in actual applications, the embodiments of the present invention adopt the design concept of "multi-level consumers" to eliminate the problem of data skew in a single sub-thread, evenly distribute the data processed by each instance service, and balance the computing power of each consumer-end server, which will not cause some consumer-end servers to be idle while other services are running at full capacity.

[0109] Step S203: Send the third data packet to the first server, so that the first server classifies the third data packet according to the report items and generates a fourth data packet; send the fourth data packet to the message middleware. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0110] Step S204: When the fourth data packet is detected on the message middleware, the thread pool subthread is called in the listening order to calculate the report items of each fourth data packet to generate a fifth data packet, where the fourth data packet is generated by the first server classifying the third data packet according to the report items. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0111] Step S205: Send the fifth data packet to the first server. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0112] Specifically, in one embodiment, the above step S204 calls the thread pool sub-threads in the listening order to calculate the report items of each fourth data packet to generate the fifth data packet, which specifically includes the following steps:

[0113] Step S206: Obtain the report item formula corresponding to the current fourth data packet.

[0114] Specifically, in actual applications, report item formulas have been stored in a cache area and can be used by directly calling the report item formulas in the cache, further improving data processing speed.

[0115] Step S207: Based on the report item formula, the thread pool subthread is called to calculate the report item of the current fourth data packet to generate a fifth data packet. For details, please refer to the relevant description in the above data allocation processing system embodiment, which will not be repeated here.

[0116] Specifically, in one embodiment, before executing the above step S203 to send the third data packet to the first server, the following steps are also included:

[0117] Step S208: Count the total number of second data packets in the current batch according to the monitoring order. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0118] Step S209: Count the total number of third data packets generated in the current batch. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0119] Step S210: Determine whether the total number of third data packets generated in the current batch is equal to the total number of second data packets. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0120] Specifically, in actual applications, an embodiment of the present invention determines whether the total number of third data packets generated in the current batch is equal to the total number of second data packets, and determines whether the next step is to continue to obtain thread pool data or return to the production server to perform subsequent report item calculations based on the judgment result.

[0121] Step S211: When the total number of third data packets generated in the current batch is equal to the total number of second data packets, the third data packet is sent to the first server. For details, please refer to the relevant description in the above data sharing processing system embodiment, which will not be repeated here.

[0122] Step S212: When the total number of generated third data packets in the current batch is not equal to the total number of second data packets, the current subthread is called to perform logical allocation processing on the next second data packet in the current batch. For details, please refer to the relevant description in the above data allocation processing system embodiment, which will not be repeated here.

[0123] By executing the above steps, the data sharing processing method provided by the embodiment of the present invention packs each first data packet in the listening order to generate a second data packet when the first data packet is monitored on the message middleware, the first data packet is for the first server to obtain the data to be shared and the data source corresponding to the data to be shared; the data to be shared is classified according to the data source corresponding to the data to be shared to obtain the first data packet; the sub-thread of the thread pool is called to perform sharing logic processing on the second data packet to generate a third data packet; the third data packet is sent to the first server, so that the first server classifies the third data packet according to the report items to generate a fourth data packet; the fourth data packet is sent to the message middleware; when the fourth data packet is monitored on the message middleware, the thread pool sub-thread is called in the listening order to calculate the report items for each fourth data packet to generate a fifth data packet, the fourth data packet is the fourth data packet generated by the first server classifying the third data packet according to the report items; the fifth data packet is sent to the first server. By using thread pool sub-threads to process specific business logic in parallel, we can prevent data backlog caused by excessive data volume. The second server can be used to solve the problem of large differences in data quantity between different subsidiaries and regions, namely the "data skew" problem, thereby reducing the number of sub-thread data processing, improving the speed of data processing, and ensuring the synchronization of data processing among multiple sub-threads.

[0124] The data sharing processing method provided by the embodiment of the present invention will be described in detail below in conjunction with specific application examples.

[0125] Combination Figure 1-Figure 3 As shown, in the embodiment of the present invention, the general ledger data is obtained through the data warehouse, the summary data is generated and stored in the data summary table, and the financial operator performs a series of processing on the summary data. The overall process is as follows:

[0126] 1) Select the company to be included in the merger: Since there are many subsidiaries under the group, it is necessary to specify which subsidiary the accounting data should be included in, and the person in charge of each subsidiary can view it after the report is generated. By specifying a corresponding company code and company name for the accounting data in advance, the company code and name will be added to the accounting data.

[0127] 2) Complete the budget items in the data: Since the general ledger detailed data does not specify the budget items, the budget items of the detailed data need to be specified.

[0128] 3) Data packet splitting: Split the data into different business lines to prepare for the subsequent distribution of data packets.

[0129] 4) Generate a simplified profit and loss statement: specifically showing the revenue of each business line.

[0130] 5) Data distribution: Data is distributed to financial personnel in different business lines for verification and calibration. Specifically, after receiving the data, personnel in each business line enter the sub-process according to their own business operations.

[0131] Specifically, taking the long-term rental business as an example, after the long-term rental financial clerk obtains the data, he / she performs subsequent operations. The specific process is as follows:

[0132] 1) Import financial difference data: After checking the data, the long-term rental salesperson finds that the data is incorrect, adjusts the data, and imports the adjusted data.

[0133] 2) Import rental income / expenditure data: After verifying the business data, the long-term rental salesperson imports some offline rental income or rental expenditure data.

[0134] 3) Import data such as wages, marketing, and functional expenses: The accounting information only reflects the company's revenue and some expenses, and does not include employee wages, marketing, functional expenses, etc. This part of the data needs to be manually imported into the file.

[0135] 4) Push detailed data to the rent table: notify the data warehouse to integrate the data together and push the processed data to the specified rent table.

[0136] 5) Binding rules: As financial statement items are adjusted according to business development, the rules for binding statement items are also constantly adjusted, so it is necessary to specify a certain version of the rules.

[0137] Exemplarily, the report item number and the report item name are specified according to the budget item number or the accounting subject number. The budget item number = '60016701' specifies the report item as rental income-enterprise; the accounting subject number = 'AZ010227' specifies the report item as sublease configuration cost.

[0138] 6) Generate long-term lease line management report: After all the above data preparation work is completed, the long-term lease salesperson clicks to generate the long-term lease management report. If the long-term lease salesperson finds that the generated management report data is incorrect, he can readjust the wrong data and repeat the above process again to regenerate the management report.

[0139] For example, when the long-term rental salesperson finds that a piece of data with a value of 100 has been added, a piece of data is added under this item. The process of deleting data is similar to that of adding data, and will not be repeated here.

[0140] 7) Release management report: After the long-term rental salesperson verifies that the long-term rental management report information is correct, the report will be released and the person in charge of each business line will be able to see the report.

[0141] Close the accounting interval; if the report of the accounting interval is correct, after closing the accounting interval, the data of the accounting interval will be locked and will no longer be operated.

[0142] When the salesperson completes the operation, the management report can be generated. In order to prevent missing report items, before generating the management report, the embodiment of the present invention first checks whether there are unbound report items. If there are unbound report items, the management report generation process is exited and the user is prompted to continue binding. If the binding is completed, the management report is generated. The specific process of generating the management report is as follows:

[0143] 1) Initialize the basic reporting tables before and after amortization (clear the data of the current accounting period).

[0144] Specifically, due to incorrect data or incomplete information, data may be generated repeatedly. Therefore, before regenerating the management report basic table each time, it is necessary to first clear the garbage data generated last time.

[0145] 2) Write the report dimensions and measure values ​​to the pre-allocation report: convert the horizontal data into list data.

[0146] Specifically, in actual applications, since each administrator has different permissions, by setting reporting dimensions and measurement values, the data can be divided into "city", "product line", "business line" and "region", so that administrators with different permissions can view the corresponding data.

[0147] 3) Calculate the basic report items for management report.

[0148] 4) Calculate the rental income and operating income (before reduction or exemption) indicators.

[0149] 5) Import salary template data.

[0150] 6) Import functional expense template data.

[0151] 7) Import marketing template data.

[0152] 8) Calculate the allocation of report items and write them into the management report after allocation: the M version report is for management (average algorithm); the F version report is for financial (discount algorithm). The biggest difference between the two versions of the system is that the calculation value of rental income and whether it contains management and financial difference data are different, which leads to different presentation of the M and F versions of the report.

[0153] The embodiment of the present invention breaks the previous three-layer loop (the larger the data volume, the more report items, the more loop times, the lower the efficiency of the software) by using a bucketing and distributed processing structure, thereby improving the system execution performance. In addition, by adopting the "divide and conquer" design concept, core logic such as shared calculation is completed in a sub-thread instead of being executed in a main thread. The calculation is dispersed to different threads, thereby preventing excessive resource usage of a single thread (such as high memory usage) and improving the stability of overall data processing.

[0154] The embodiment of the present invention provides a data sharing processing device, which is applied to Figure 1 The first server 1 shown, Figure 4 As shown, the data sharing processing device includes:

[0155] The acquisition module 101 is used to acquire the data to be allocated and the data source corresponding to the data to be allocated. For details, please refer to the relevant description of step S101 in the above method embodiment, which will not be repeated here.

[0156] The first processing module 102 is used to classify the data to be allocated according to the data source corresponding to the data to be allocated, and obtain a plurality of first data packets. For details, please refer to the relevant description of step S102 in the above method embodiment, which will not be repeated here.

[0157] The first sending module 103 is used to send each first data packet to the message middleware 2. For details, please refer to the relevant description of step S103 in the above method embodiment, which will not be repeated here.

[0158] The first receiving module 104 is used to receive the third data packet sent by the second server 3. When the second server 3 monitors the existence of the first data packet on the message middleware 2, it packs each first data packet according to the monitoring order to generate a second data packet, and calls the child thread of the thread pool to perform amortization logic processing on the second data packet to generate the third data packet. For details, please refer to the relevant description of step S104 in the above method embodiment, which will not be repeated here.

[0159] The first classification module 105 is used to classify the third data packet according to the report items to generate a fourth data packet. For details, please refer to the relevant description of step S105 in the above method embodiment, which will not be repeated here.

[0160] The second sending module 106 is used to send the fourth data packet to the message middleware 2. For details, please refer to the relevant description of step S106 in the above method embodiment, which will not be repeated here.

[0161] The second receiving module 107 is used to receive the fifth data packet sent by the second server 3, and obtain the data allocation result according to the fifth data packet. The fifth data packet is generated by calling the thread pool sub-thread according to the listening order to calculate the report items of each fourth data packet when the second server 3 monitors the existence of the fourth data packet on the message middleware 2. For details, please refer to the relevant description of step S107 in the above method embodiment, which will not be repeated here.

[0162] For further description of the above-mentioned data sharing processing device, please refer to the relevant description of the above-mentioned data sharing processing method embodiment, which will not be repeated here.

[0163] Through the coordinated cooperation of the above-mentioned components, the data allocation processing device provided by the embodiment of the present invention can classify the data to be allocated as the data volume continues to increase with the growth of data and the expansion of business, so as to facilitate subsequent management personnel to view the overall and partial main data. By classifying the third data packet according to the report items, it lays the foundation for the subsequent top-level report item calculation logic. By packaging the data to be allocated in batches, the efficiency of the system in processing the increasing data is greatly improved.

[0164] The embodiment of the present invention also provides a data sharing processing device, which is applied to Figure 1 The second server 3 shown, Figure 5 As shown, the data sharing processing device includes:

[0165] The second processing module 201 is used to pack each first data packet to generate a second data packet in the order of monitoring when the first data packet exists on the message middleware 2, wherein the first data packet is the first server 1 obtaining the data to be allocated and the data source corresponding to the data to be allocated; the data to be allocated is classified according to the data source corresponding to the data to be allocated, and the first data packet is obtained. For details, please refer to the relevant description of step S201 in the above method embodiment, which will not be repeated here.

[0166] The third processing module 202 is used to call the child thread of the thread pool to perform the apportionment logic processing on the second data packet to generate a third data packet. For details, please refer to the relevant description of step S202 in the above method embodiment, which will not be repeated here.

[0167] The third sending module 203 is used to send the third data packet to the first server 1, so that the first server 1 classifies the third data packet according to the report items and generates a fourth data packet; and sends the fourth data packet to the message middleware 2. For details, please refer to the relevant description of step S203 in the above method embodiment, which will not be repeated here.

[0168] The fourth processing module 204 is used to, when monitoring the presence of the fourth data packet on the message middleware 2, call the thread pool sub-thread in the monitoring order to calculate the report items of each fourth data packet to generate a fifth data packet, where the fourth data packet is the fourth data packet generated by the first server 1 by classifying the third data packet according to the report items. For details, please refer to the relevant description of step S204 in the above method embodiment, which will not be repeated here.

[0169] The fifth processing module 205 is used to send the fifth data packet to the first server 1. For details, please refer to the relevant description of step S205 in the above method embodiment, which will not be repeated here.

[0170] For further description of the above-mentioned data sharing processing device, please refer to the relevant description of the above-mentioned data sharing processing method embodiment, which will not be repeated here.

[0171] Through the coordinated cooperation of the above-mentioned components, the data sharing processing device provided by the embodiment of the present invention adopts thread pool sub-threads to process specific business logic in parallel as the data volume continues to increase with the growth of data and the expansion of business, thereby preventing data backlog caused by excessive data volume. The second server is used to solve the problem of large differences in the amount of data between different subsidiaries and different regions, namely, the problem of "data skew", thereby reducing the number of sub-thread data processing, improving the speed of data processing, and ensuring the synchronization of data processing among multiple sub-threads.

[0172] An embodiment of the present invention provides an electronic device, such as Figure 6 As shown, the electronic device includes a processor 901 and a memory 902, and the memory 902 and the processor 901 are connected to each other in a communication manner, wherein the processor 901 and the memory 902 can be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0173] The processor 901 may be a central processing unit (CPU). The processor 901 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0174] The memory 902 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor 901 executes various functional applications and data processing of the processor 901 by running the non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the method in the above method embodiment.

[0175] The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 901, etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 902 may optionally include a memory remotely arranged relative to the processor 901, and these remote memories may be connected to the processor 901 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0176] One or more modules are stored in the memory 902 , and when executed by the processor 901 , the method in the above method embodiment is executed.

[0177] The specific details of the above electronic device can be understood by referring to the corresponding descriptions and effects in the above method embodiments, and will not be repeated here.

[0178] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the implemented 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. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0179] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A data sharing processing method, applied to a first server, characterized in that: The method comprises: Obtaining data to be apportioned and data sources corresponding to the data to be apportioned; Classifying the data to be apportioned according to data sources corresponding to the data to be apportioned to obtain a plurality of first data packets; Sending each of the first data packets to the message middleware; Receive a third data packet sent by the second server, wherein the third data packet is generated by the second server when monitoring the existence of the first data packet on the message middleware, packaging the first data packets in the monitoring order to generate a second data packet, and calling a child thread of the thread pool to perform apportionment logic processing on the second data packet to generate a third data packet; Classifying the third data packet according to report items to generate a fourth data packet; Sending the fourth data packet to the message middleware; Receive the fifth data packet sent by the second server, and obtain the data allocation result based on the fifth data packet. When the second server monitors the existence of the fourth data packet on the message middleware, the thread pool sub-thread is called in the monitoring order to perform report item calculations on each of the fourth data packets to generate the fifth data packet.

2. The method according to claim 1, characterized in that The obtaining of a data allocation result according to the fifth data packet includes: Each of the fifth data packets is classified according to the report items and data sources corresponding to the fifth data packets to obtain a data allocation result.

3. A data sharing processing method, applied to a second server, characterized in that: The method comprises: When a first data packet is detected on the message middleware, each of the first data packets is packaged in the order of monitoring to generate a second data packet, wherein the first data packet is for the first server to obtain the data to be allocated and the data source corresponding to the data to be allocated; the data to be allocated is classified according to the data source corresponding to the data to be allocated to obtain the first data packet; Calling a child thread of the thread pool to perform apportionment logic processing on the second data packet to generate a third data packet; sending the third data packet to the first server so that the first server classifies the third data packet according to the report items to generate a fourth data packet; and sending the fourth data packet to the message middleware; When the existence of the fourth data packet is monitored on the message middleware, the thread pool subthread is called in the monitoring order to calculate the report items of each of the fourth data packets to generate a fifth data packet, wherein the fourth data packet is generated by the first server by classifying the third data packet according to the report items; The fifth data packet is sent to the first server.

4. The method according to claim 3, characterized in that The calling of the thread pool subthreads in the listening order to calculate the report items of each of the fourth data packets to generate a fifth data packet includes: Get the report item formula corresponding to the current fourth data packet; Based on the report item formula, a thread pool sub-thread is called to perform report item calculation on the current fourth data packet to generate a fifth data packet.

5. The method according to claim 3, characterized in that: Before sending the third data packet to the first server, the method further includes: Count the total number of second data packets in the current batch according to the monitoring order; Counting the total number of third data packets generated in the current batch; Determining whether the total number of the third data packets generated in the current batch is equal to the total number of the second data packets; When the total number of the third data packets generated in the current batch is equal to the total number of the second data packets, sending the third data packet to the first server; When the total number of generated third data packets in the current batch is not equal to the total number of second data packets, the current sub-thread is called to perform apportionment logic processing on the next second data packet in the current batch.

6. A data sharing processing device, applied to a first server, characterized in that: The device comprises: An acquisition module, used to acquire the data to be allocated and the data source corresponding to the data to be allocated; A first processing module, configured to classify the data to be apportioned according to data sources corresponding to the data to be apportioned, to obtain a plurality of first data packets; A first sending module, used for sending each of the first data packets to the message middleware; The first receiving module is used to receive a third data packet sent by the second server, wherein the second server, when monitoring the existence of the first data packet on the message middleware, packs the first data packets in the monitoring order to generate a second data packet, and calls a child thread of the thread pool to perform apportionment logic processing on the second data packet to generate a third data packet; A first classification module, used for classifying the third data packet according to report items to generate a fourth data packet; A second sending module, used for sending the fourth data packet to the message middleware; The second receiving module is used to receive the fifth data packet sent by the second server and obtain the data allocation result according to the fifth data packet. When the second server monitors that the fourth data packet exists on the message middleware, the thread pool sub-thread is called in the monitoring order to perform report item calculation on each of the fourth data packets to generate the fifth data packet.

7. A data sharing processing device, applied to a second server, characterized in that: The device comprises: The second processing module is used to pack each of the first data packets in the order of monitoring to generate a second data packet when monitoring the existence of the first data packet on the message middleware, wherein the first data packet is for the first server to obtain the data to be allocated and the data source corresponding to the data to be allocated; and the data to be allocated is classified according to the data source corresponding to the data to be allocated to obtain the first data packet; A third processing module, used for calling a sub-thread of a thread pool to perform apportionment logic processing on the second data packet to generate a third data packet; A third sending module is used to send the third data packet to the first server, so that the first server classifies the third data packet according to the report items to generate a fourth data packet; and send the fourth data packet to the message middleware; a fourth processing module, configured to, when monitoring the presence of the fourth data packet on the message middleware, call the thread pool subthread in the monitoring order to calculate the report item for each of the fourth data packets to generate a fifth data packet, wherein the fourth data packet is generated by the first server by classifying the third data packet according to the report item; A fifth processing module is used to send the fifth data packet to the first server.

8. A data sharing processing system, characterized in that: It includes a first server, a second server and a message middleware, wherein: The first server is used to obtain the data to be apportioned and the data source corresponding to the data to be apportioned; classify the data to be apportioned according to the data source corresponding to the data to be apportioned to obtain a plurality of first data packets; and send each of the first data packets to the message middleware; The second server is used to, when monitoring the existence of the first data packet on the message middleware, pack the first data packets according to the monitoring order to generate a second data packet; use the child thread of the thread pool to perform logic processing on the second data packet to generate a third data packet; and send the third data packet to the first server; The first server is further configured to receive a third data packet sent by the second server; classify the third data packet according to report items to generate a fourth data packet; and send the fourth data packet to the message middleware; The second server is further configured to, when monitoring the existence of the fourth data packet on the message middleware, call the thread pool subthreads in the monitoring order to perform report item calculation on each of the fourth data packets to generate a fifth data packet; and send the fifth data packet to the first server; The first server is further used to receive a fifth data packet sent by the second server, and obtain a data allocation result according to the fifth data packet.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 5 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 5.