Data transmission method and related device
By rationally allocating the total system computing power within the financial system and limiting the amount of data sent by each subsystem, the system's downtime caused by excessive load was resolved, thereby improving system stability and data transmission reliability.
Patent Information
- Application Number
- CN202411128639.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-12
AI Technical Summary
In existing technologies, the overall financial system is prone to system crashes due to excessive load during data transmission, resulting in poor stability.
By rationally allocating the computing power of the overall system, determining the data window of each subsystem, limiting the amount of business data sent each time, and sending data only when conditions are met, the overall system can be prevented from being overloaded.
This improved the overall system stability, prevented system downtime, and ensured the reliability of data transmission and the continuous operation of the system.
Smart Images

Figure CN118941370A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data transmission method and related devices. Background Art
[0002] In a financial system (such as a leasing system), since there are many businesses involved, multiple subsystems are usually configured, and different subsystems can be used to implement different businesses.
[0003] In actual applications, in order to achieve comprehensive management of the entire system, in addition to the subsystems, a master system is also configured. The master system is connected to all subsystems and is used to process the business data generated by the subsystems, such as measuring and integrating the data generated by the subsystems to generate complete data corresponding to the entire system, so as to generate financial vouchers, financial statements, etc. For this purpose, the data generated by the subsystems needs to be transmitted to the master system.
[0004] However, the data transmission method used in the related art can easily lead to excessive pressure on the overall system, causing problems such as system downtime and poor system stability. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a data transmission method and related devices, which reasonably allocate the maximum amount of business data that the subsystem can send in a single transmission based on the resource computing power of the total system, so as to ensure that the amount of business data received by the total system side at the same time will not be overloaded, which is conducive to improving system stability.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] On the one hand, an embodiment of the present application provides a data transmission method, the method comprising:
[0008] Acquire a general system and a plurality of subsystems corresponding to the general system, wherein the general system is used to process business data of the plurality of subsystems;
[0009] Determine, according to the resource computing power corresponding to the overall system, data windows corresponding to the plurality of subsystems, respectively, where the data windows corresponding to the subsystems are used to identify the maximum amount of service data sent by the subsystems to the overall system at a single time, and the sum of the data windows corresponding to the plurality of subsystems respectively is less than the resource computing power;
[0010] If it is determined that the data window corresponding to the subsystem meets the data sending condition, the business data stored in the data window of the subsystem is sent to the overall system.
[0011] On the other hand, an embodiment of the present application provides a data transmission device, the device comprising an acquisition unit, a determination unit and a sending unit:
[0012] The acquisition unit is used to acquire the overall system and multiple subsystems corresponding to the overall system, and the overall system is used to process the business data of the multiple subsystems;
[0013] The determining unit is used to determine the data windows corresponding to the plurality of subsystems respectively according to the resource computing power corresponding to the overall system, the data windows corresponding to the subsystems being used to identify the maximum amount of service data sent by the subsystem to the overall system at a single time, and the sum of the data windows corresponding to the plurality of subsystems respectively being less than the resource computing power;
[0014] The sending unit is used to send the business data stored in the data window of the subsystem to the overall system if it is determined that the data window corresponding to the subsystem meets the data sending condition.
[0015] In another aspect, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:
[0016] The memory is used to store program code and transmit the program code to the processor;
[0017] The processor is used to execute the data transmission method described in the above aspects according to the instructions in the program code.
[0018] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the data transmission method described in the above aspects.
[0019] It can be seen from the above technical solution that for the total system and the subsystems corresponding to the total system, the total system is used to process the business data of multiple subsystems. For this, first, according to the resource computing power corresponding to the total system, the data windows corresponding to the multiple subsystems are determined. Then, if it is determined that the data window corresponding to the subsystem meets the data sending conditions, the business data stored in the data window of the subsystem is sent to the total system. Since the data window corresponding to the subsystem is used to identify the maximum amount of business data sent by the subsystem to the total system in a single time, and the sum of the data windows corresponding to the multiple subsystems is less than the resource computing power, based on this, even if the data windows of multiple subsystems meet the data sending conditions at the same time, that is, they all send business data to the total system at the same time, it can also ensure that the total amount of business data will not exceed the resource computing power of the total system, thereby avoiding excessive pressure on the total system, resulting in system downtime and other problems. It can be seen that the maximum amount of business data that can be sent by the subsystem in a single transmission is reasonably allocated based on the resource computing power of the total system, so as to ensure that the amount of business data received by the total system side at the same time will not be overloaded, which is conducive to improving system stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;
[0022] Figure 2 A structural diagram of a data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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.
[0024] In actual applications, in order to achieve comprehensive management of the entire system, in addition to the subsystems, a master system is also configured. The master system is connected to all subsystems and is used to process the business data generated by the subsystems, such as measuring and integrating the data generated by the subsystems to generate complete data corresponding to the entire system, so as to generate financial vouchers, financial statements, etc. For this purpose, the data generated by the subsystems needs to be transmitted to the master system.
[0025] In the related art, when business data is generated in a subsystem, the business data is sent to the main system. However, this data transmission method is likely to cause excessive pressure on the main system, resulting in system downtime and other problems, and poor system stability. In particular, it is easy to cause the business data received by the main system to exceed the requirements at the same time, thus causing system downtime, etc.
[0026] To this end, the present application provides a data transmission method and related devices, which reasonably allocate the maximum amount of business data that the subsystem can send in a single transmission based on the resource computing power of the total system, so as to ensure that the amount of business data received by the total system side at the same time will not be overloaded, solve the technical problems faced by the methods used in related technologies, and are conducive to improving system stability.
[0027] The data transmission method provided in the embodiment of the present application can be implemented by a computer device, which can be a terminal device or a server, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device includes but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, etc. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and this application does not impose any restrictions on this.
[0028] The specific examples are as follows:
[0029] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application is provided, and a server is used as the aforementioned computer device for example. The method includes S101-S103:
[0030] S101: Acquire a general system and a plurality of subsystems corresponding to the general system.
[0031] The overall system is used to process the business data of multiple subsystems. It should be noted that in different businesses, the overall system and multiple subsystems, as well as the number of subsystems, etc. may be different, and this application does not make any restrictions on this. In actual applications, it can be flexibly configured according to actual conditions.
[0032] For example, in a leasing system, the main system may refer to a general ledger system, and each subsystem may be used to implement different businesses in the leasing system. In the process of implementing leasing-related businesses, a large number of financial events will occur, and corresponding different financial measurement data will be generated, that is, the business data of the subsystem is financial measurement data. Usually, it is necessary to measure and integrate the financial measurement data based on the general ledger system in order to generate financial vouchers, financial statements, etc. corresponding to the leasing system.
[0033] S102: Determine data windows corresponding to the plurality of subsystems respectively according to resource computing power corresponding to the overall system.
[0034] The data window corresponding to the subsystem is used to identify the maximum amount of business data that the subsystem can send to the overall system in a single transmission, that is, the data window is used to limit the upper limit of the business data that the subsystem can send to the overall system in a single transmission. The subsequent judgment on whether to send business data to the overall system is also based on the data window. Different from the logic of sending business data once it is generated in related technologies, the data window can better regulate the sending of business data and avoid problems such as excessive pressure on the overall system side.
[0035] The resource computing power of the total system is used to identify the data processing capacity of the total system. The data windows of each subsystem are determined based on the resource computing power. In the scenario where multiple subsystems can send business data to the total system, it is helpful to regulate the sending of business data. Specifically, the sum of the data windows corresponding to multiple subsystems is less than the resource computing power, so as to avoid problems such as excessive pressure on the total system side.
[0036] A data window is configured for each subsystem. In addition to identifying the upper limit of the business data volume of the subsystem in a single transmission, the business data of the subsystem can also be stored based on the data window, that is, it plays the role of data storage. In specific implementation, in response to the business data generation of the subsystem, the business data of the subsystem is added to the data window corresponding to the subsystem.
[0037] Based on this, the business data of the subsystem is stored based on the data window, which is beneficial to saving the number of data transmission times and unnecessary resource overhead compared to the logic of sending the business data once it is generated in the related technology.
[0038] The present application does not impose any limitation on the construction method of the data window. For ease of understanding, the present application provides the following method as an example:
[0039] In practical applications, data windows can be built based on the Java language. The queue in Java is a linear data structure that follows the first-in-first-out (FIFO) principle, that is, the first element that enters the queue will be the first element to leave the queue. Queues are usually used to store data items that need to be processed in sequence. The data window built based on this also stores the business data in the order in which it is generated, which is conducive to ensuring the order of business data.
[0040] S103: If it is determined that the data window corresponding to the subsystem meets the data sending condition, the business data stored in the data window of the subsystem is sent to the overall system.
[0041] It can be understood that the data window is used to store the business data of the subsystem. If it is determined that the data window corresponding to the subsystem meets the data sending conditions, it means that the conditions for sending business data to the overall system have been met. At this time, the business data stored in the data window of the subsystem can be sent to the overall system.
[0042] It can be seen that the data window is used to identify the upper limit of the business data volume of the subsystem in a single transmission on the one hand, and to store the business data of the subsystem on the other hand, and to send the business data stored in the data window when sending. Compared with the logic of sending business data once it is generated in the related art, this application sets up a data window and implements the sending logic of business data based on the data window, so as to better regulate the sending of business data and avoid problems such as pressure overload on the overall system side.
[0043] It should be noted that the present application does not impose any limitation on the setting of the data transmission condition or the method of determining whether the data window satisfies the data transmission condition. For ease of understanding, the present application provides the following method as an example:
[0044] Since the data window is used to identify the upper limit of the amount of business data that the subsystem can send to the overall system in a single transmission, and the data window is used to store business data, in one possible implementation, when the data window corresponding to the subsystem is full, it indicates that the storage capacity of the data window has reached the upper limit, and the currently stored amount of business data also meets the upper limit of a single transmission. At this time, it can be determined that the data window corresponding to the subsystem meets the data sending conditions to trigger the logic of sending business data to the overall system.
[0045] Based on this, since the amount of business data sent in a single transmission is the upper limit of the amount of business data that can be sent in a single transmission, on the one hand it will not cause excessive load on the overall system side, and on the other hand it will help avoid sending business data too frequently, which is helpful to save resource overhead.
[0046] In practical applications, the measurement and integration of business data is usually based on days. Therefore, at the end of the day, the business data generated that day needs to be sent to the overall system. Therefore, in another possible implementation, when the system time of a subsystem exceeds the preset end-of-day time, it can be determined that the data window corresponding to the subsystem meets the data sending condition, so as to trigger the logic of sending business data to the overall system.
[0047] Based on this, at the end of the day, each subsystem can send the business data generated that day to the overall system in a timely manner, so as to better measure and integrate the business data. In this way, at the end of the day, even if only a small amount of business data is stored in the data window, it can be pushed to the overall system at the end of the day, ensuring that the business data of the day can be uniformly pushed to the overall system.
[0048] It can be seen from the above technical solution that for the total system and the subsystems corresponding to the total system, the total system is used to process the business data of multiple subsystems. For this, first, according to the resource computing power corresponding to the total system, the data windows corresponding to the multiple subsystems are determined. Then, if it is determined that the data window corresponding to the subsystem meets the data sending conditions, the business data stored in the data window of the subsystem is sent to the total system. Since the data window corresponding to the subsystem is used to identify the maximum amount of business data sent by the subsystem to the total system in a single time, and the sum of the data windows corresponding to the multiple subsystems is less than the resource computing power, based on this, even if the data windows of multiple subsystems meet the data sending conditions at the same time, that is, they all send business data to the total system at the same time, it can also ensure that the total amount of business data will not exceed the resource computing power of the total system, thereby avoiding excessive pressure on the total system, resulting in system downtime and other problems. It can be seen that the maximum amount of business data that can be sent by the subsystem in a single transmission is reasonably allocated based on the resource computing power of the total system, so as to ensure that the amount of business data received by the total system side at the same time will not be overloaded, which is conducive to improving system stability.
[0049] Through the above embodiments, the data transmission method provided by the present application is described in detail. It should also be noted that the present application does not make any limitation on how to determine the data window according to the resource computing power. For ease of understanding, the present application embodiment provides the following methods as examples:
[0050] In a possible implementation, the data windows corresponding to the multiple subsystems can be determined according to the resource computing power corresponding to the total system and the window coefficients corresponding to the multiple subsystems, wherein the window system corresponding to the subsystem is determined according to the historical generation rate of the business data of the subsystem.
[0051] Since different subsystems are used to implement different businesses, the corresponding frequencies or rates of generating business data may be different, which makes the needs of different subsystems to send business data to the overall system different. Therefore, while considering the data processing capacity of the overall system, the window system determined by comprehensively considering the historical generation rate of business data of each subsystem can flexibly configure a suitable data window for each subsystem, that is, flexibly configure the upper limit of the amount of business data that a subsystem can send to the overall system in a single transmission.
[0052] For example, if the business that subsystem A is responsible for generates business data at a low frequency during actual operation, while the business that subsystem B is responsible for generates business data at a high frequency during actual operation, then at the same time, system A may only generate a small amount of business data, while system B generates a large amount of business data. Therefore, the demand for system A to send business data to the overall system is smaller than that of system B. At this time, after combining the window coefficient, a smaller data window can be configured for system A, and a larger data window can be configured for system B.
[0053] It should also be noted that this application does not make any limitation on how to determine the data window according to the resource computing power and the window coefficient. For ease of understanding, the embodiments of this application provide the following methods as examples:
[0054] In actual applications, the business data generation rate of the same business in different time periods may also be different, that is, the demand for the same subsystem to send business data to the overall system may also be different in different time periods. Therefore, in a possible implementation, the data window can be determined by different time periods to achieve more fine-grained control of business data transmission.
[0055] In specific implementation, the target window coefficient corresponding to the subsystem in the target period can be obtained first. The target window coefficient is determined based on the historical generation rate of business data of the subsystem in the target period. Then, the data windows corresponding to the multiple subsystems in the target period can be determined based on the resource computing power corresponding to the total system and the target window coefficients corresponding to the multiple subsystems.
[0056] Based on this, configuring corresponding data windows for different time periods is conducive to achieving finer-grained control. For the same subsystem, it is also possible to more flexibly control the subsystem to send business data to the overall system.
[0057] After the aforementioned S103, the data window corresponding to the subsystem can also be cleared for the next round of storage and transmission. In addition, the target time period can be determined according to the system time of the subsystem to determine whether the data window of the subsystem needs to be adjusted. Specifically, if the target time period determined according to the system time switches, indicating that the time period has changed, the corresponding window coefficient may change, so that the data window also changes. Therefore, at this time, the step of obtaining the target window coefficient corresponding to the subsystem in the target time period can be repeated. In this way, the target window coefficient corresponding to the target time period based on the resource computing power is triggered, and the data window corresponding to the target time period is re-determined.
[0058] Based on this, during the operation of the subsystem, it can adapt to the switching of time periods and configure a data window that is adapted to the current time period for the subsystem, thereby flexibly defining the amount of business data for a single interaction and more flexibly regulating the transmission of business data to avoid system downtime caused by excessive business data on the total system side at the same time.
[0059] In another possible implementation, an initial window may be configured for each subsystem, and the initial window may refer to the basic value of the data window, that is, the basic value used to identify the amount of business data that can be sent to the total system in a single transmission. Among them, the initial window may be, for example, based on the configuration of resource computing power. In addition, the window coefficient is set to be proportional to the historical generation rate of business data, that is, a larger window coefficient is configured for a subsystem with a higher business data generation rate. Then, the data window corresponding to the subsystem can be determined based on the initial window and the window coefficient. For example, the product of the window coefficient and the initial window is determined as the data window. Based on this, the data window can be flexibly adjusted by configuring the window coefficient.
[0060] Since the window coefficient is determined based on the historical generation rate of business data, in a possible implementation, in order to improve the efficiency of determining the data window, a window coefficient table can be pre-built, and the window coefficient table can be used to record the window coefficients corresponding to each subsystem in each time period. Based on this, when it is necessary to determine the data window, the target window coefficient corresponding to the subsystem in the target time period can be directly obtained from the window coefficient table, which is conducive to improving the efficiency of determining the data window.
[0061] In practical applications, the window coefficient table can be, for example, a hash table, which is a data structure based on a hash function, which uses a hash function to map a key to an index of an array, and then stores a corresponding value at the index. Based on the hash table, fast insertion, deletion, and search operations on the window coefficients can be achieved.
[0062] In order to further regulate the transmission of business data, in another possible implementation, a timed task scheduler can also be used to automatically trigger the data push logic every hour to uniformly store the business data generated by multiple subsystems in the query database in the order of generation timestamps. Then, the business data can be read from the query database in the order of generation timestamps every certain period of time to store the business data in the data window corresponding to the subsystem. In actual applications, each time the data window queue is written, it can be checked whether the data in the data window queue is full. If it is full, the step of sending business data to the overall system is triggered. Otherwise, if it is not full, the data window is written.
[0063] In practical applications, the server deployment corresponding to the total system usually adopts a distributed architecture, that is, one subsystem can correspond to multiple servers. Therefore, the task control system can also lock the distributed tasks to ensure that only the designated server executes the task at the same time (that is, only the designated server executes the task of sending business data to the total system), thereby avoiding multiple servers executing a task at the same time, causing repeated execution of tasks, etc. In general, the data transmission method provided by the present application can be directly applied to existing data transmission scenarios, and will not have a substantial impact on the architecture of the existing total system and subsystems. It is a non-invasive design that is ready for use and has higher universality.
[0064] It can be understood that it basically corresponds to the method embodiment, so the relevant parts can refer to the partial description of the method embodiment.
[0065] Figure 2 A structural diagram of a data transmission device provided in an embodiment of the present application, wherein the device includes an acquisition unit 201, a determination unit 202, and a sending unit 203:
[0066] The acquisition unit 201 is used to acquire a general system and a plurality of subsystems corresponding to the general system, wherein the general system is used to process business data of the plurality of subsystems;
[0067] The determining unit 202 is used to determine the data windows corresponding to the plurality of subsystems respectively according to the resource computing power corresponding to the overall system, the data windows corresponding to the subsystems being used to identify the maximum amount of service data sent by the subsystem to the overall system at a single time, and the sum of the data windows corresponding to the plurality of subsystems respectively being less than the resource computing power;
[0068] The sending unit 203 is configured to send the service data stored in the data window of the subsystem to the overall system if it is determined that the data window corresponding to the subsystem meets the data sending condition.
[0069] In a possible implementation manner, the determining unit is further configured to:
[0070] According to the resource computing power corresponding to the total system and the window coefficients corresponding to the multiple subsystems, the data windows corresponding to the multiple subsystems are determined. The window system corresponding to the subsystem is determined according to the historical generation rate of business data of the subsystem.
[0071] In a possible implementation manner, the determining unit is further configured to:
[0072] Obtaining a target window coefficient corresponding to the subsystem in a target period, wherein the target window coefficient is determined according to a historical generation rate of business data of the subsystem in the target period;
[0073] According to the resource computing power corresponding to the overall system and the target window coefficients respectively corresponding to the plurality of subsystems, the data windows corresponding to the plurality of subsystems in the target time period are determined.
[0074] In a possible implementation, the device further includes a clearing unit and an executing unit:
[0075] The clearing unit is used to clear the data window corresponding to the subsystem and determine the target time period according to the system time of the subsystem;
[0076] The execution unit is used to repeatedly execute the step of obtaining the target window coefficient corresponding to the subsystem in the target time period if it is determined according to the system time that the target time period switches.
[0077] In a possible implementation manner, the determining unit is further configured to:
[0078] When the data window corresponding to the subsystem is full, it is determined that the data window corresponding to the subsystem meets the data sending condition.
[0079] In a possible implementation manner, the determining unit is further configured to:
[0080] When the system time of the subsystem exceeds the preset end-of-day time, it is determined that the data window corresponding to the subsystem meets the data sending condition.
[0081] In a possible implementation, the device further includes an adding unit:
[0082] The adding unit is used for adding the business data of the subsystem to the data window corresponding to the subsystem in response to the generation of the business data of the subsystem.
[0083] It can be seen from the above technical solution that for the total system and the subsystems corresponding to the total system, the total system is used to process the business data of multiple subsystems. For this, first, according to the resource computing power corresponding to the total system, the data windows corresponding to the multiple subsystems are determined. Then, if it is determined that the data window corresponding to the subsystem meets the data sending conditions, the business data stored in the data window of the subsystem is sent to the total system. Since the data window corresponding to the subsystem is used to identify the maximum amount of business data sent by the subsystem to the total system in a single time, and the sum of the data windows corresponding to the multiple subsystems is less than the resource computing power, based on this, even if the data windows of multiple subsystems meet the data sending conditions at the same time, that is, they all send business data to the total system at the same time, it can also ensure that the total amount of business data will not exceed the resource computing power of the total system, thereby avoiding excessive pressure on the total system, resulting in system downtime and other problems. It can be seen that the maximum amount of business data that can be sent by the subsystem in a single transmission is reasonably allocated based on the resource computing power of the total system, so as to ensure that the amount of business data received by the total system side at the same time will not be overloaded, which is conducive to improving system stability.
[0084] In another aspect, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:
[0085] The memory is used to store program code and transmit the program code to the processor;
[0086] The processor is used to execute the data transmission method provided in the above embodiment according to the instructions in the program code.
[0087] The computer device may include a terminal device or a server, and the aforementioned data transmission device may be configured in the computer device.
[0088] On the other hand, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to execute the data transmission method provided in the above embodiment.
[0089] In addition, an embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the data transmission method provided in the above embodiment.
[0090] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium can be at least one of the following media: read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc., various media that can store program codes.
[0091] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0092] It should be noted that, in this article, relational terms such as "first" and "second", etc. (if any) are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0093] The above is a detailed introduction to a data transmission method and related devices provided by the embodiment of the present application. The principle and implementation method of the present application are described in detail using specific examples herein. The description of the above embodiments is only used to help understand the method of the present application. At the same time, for those skilled in the art, according to the method of the present application, there will be changes in the specific implementation method and application scope.
[0094] In summary, the content of this specification should not be understood as limiting the present application, and any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in this application should be included in the protection scope of this application. Moreover, based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations.
Claims
1. A data transmission method, characterized in that: The method comprises: Acquire a general system and a plurality of subsystems corresponding to the general system, wherein the general system is used to process business data of the plurality of subsystems; Determine, according to the resource computing power corresponding to the overall system, data windows corresponding to the plurality of subsystems, respectively, where the data windows corresponding to the subsystems are used to identify the maximum amount of service data sent by the subsystems to the overall system at a single time, and the sum of the data windows corresponding to the plurality of subsystems respectively is less than the resource computing power; If it is determined that the data window corresponding to the subsystem meets the data sending condition, the business data stored in the data window of the subsystem is sent to the overall system.
2. The method according to claim 1, characterized in that The determining, according to the resource computing power corresponding to the overall system, data windows corresponding to the plurality of subsystems respectively comprises: According to the resource computing power corresponding to the total system and the window coefficients corresponding to the multiple subsystems, the data windows corresponding to the multiple subsystems are determined. The window system corresponding to the subsystem is determined according to the historical generation rate of business data of the subsystem.
3. The method according to claim 2, characterized in that The determining, according to the resource computing power corresponding to the overall system and the window coefficients corresponding to the plurality of subsystems, the data windows corresponding to the plurality of subsystems respectively, comprises: Obtaining a target window coefficient corresponding to the subsystem in a target period, wherein the target window coefficient is determined according to a historical generation rate of business data of the subsystem in the target period; According to the resource computing power corresponding to the overall system and the target window coefficients respectively corresponding to the plurality of subsystems, the data windows corresponding to the plurality of subsystems in the target time period are determined.
4. The method according to claim 3, characterized in that After the data window corresponding to the subsystem is determined to meet the data sending condition, and the service data stored in the data window of the subsystem is sent to the overall system, the method further includes: Clearing the data window corresponding to the subsystem, and determining the target time period according to the system time of the subsystem; If it is determined according to the system time that the target time period is switched, the step of obtaining the target window coefficient corresponding to the subsystem in the target time period is repeated.
5. The method according to claim 1, characterized in that The determining that the data window corresponding to the subsystem meets the data sending condition includes: When the data window corresponding to the subsystem is full, it is determined that the data window corresponding to the subsystem meets the data sending condition.
6. The method according to claim 1, characterized in that The determining that the data window corresponding to the subsystem meets the data sending condition includes: When the system time of the subsystem exceeds the preset end-of-day time, it is determined that the data window corresponding to the subsystem meets the data sending condition.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to the business data of the subsystem being generated, the business data of the subsystem is added to a data window corresponding to the subsystem.
8. A data transmission device, characterized in that: The device comprises an acquisition unit, a determination unit and a sending unit: The acquisition unit is used to acquire the overall system and multiple subsystems corresponding to the overall system, and the overall system is used to process the business data of the multiple subsystems; The determining unit is used to determine the data windows corresponding to the plurality of subsystems respectively according to the resource computing power corresponding to the overall system, the data windows corresponding to the subsystems being used to identify the maximum amount of service data sent by the subsystem to the overall system at a single time, and the sum of the data windows corresponding to the plurality of subsystems respectively being less than the resource computing power; The sending unit is used to send the business data stored in the data window of the subsystem to the overall system if it is determined that the data window corresponding to the subsystem meets the data sending condition.
9. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1 to 7 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 7.
