CN117041324A - Data transmission method and related device - Google Patents

Data transmission method and related device Download PDF

Info

Publication number
CN117041324A
CN117041324A CN202311136917.XA CN202311136917A CN117041324A CN 117041324 A CN117041324 A CN 117041324A CN 202311136917 A CN202311136917 A CN 202311136917A CN 117041324 A CN117041324 A CN 117041324A
Authority
CN
China
Prior art keywords
task
thread
data
configuration parameter
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311136917.XA
Other languages
Chinese (zh)
Inventor
陈晓旋
徐世泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202311136917.XA priority Critical patent/CN117041324A/en
Publication of CN117041324A publication Critical patent/CN117041324A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/215Flow control; Congestion control using token-bucket
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses a data transmission method and a related device, which can be applied to the field of network security or finance and used for data transmission. The method of the embodiment of the application comprises the following steps: setting a first configuration parameter, wherein the first configuration parameter comprises a first transmission frequency and a first transmission quantity, and the first configuration parameter is used for configuring a first task, and the first task is a timing task; in response to the first task, creating a first thread according to the first configuration parameter, the first thread being configured to send the first number of target messages at the first sending frequency; executing the first thread, wherein the first thread comprises at least one judging node, and ending the first task every time the judging result of any judging node meets the preset condition. The embodiment of the application can ensure the reliability of the application service of the system when realizing data transmission.

Description

Data transmission method and related device
Technical Field
The embodiment of the application relates to the field of network security, in particular to a data transmission method and a related device.
Background
When interacting with an external system, the application system cannot directly send the data received by the system to the external system due to the limitations of the external system on access time, access times, the number of transaction processes transmitted per second (transactions per second, TPS) and the like, and the sending number, sending frequency and the like need to be controlled.
The current method is to set a timing sending task for the application system, send a fixed number of messages to the external system at a fixed frequency, send circularly until the sending is finished, and write a corresponding sending method for each message separately.
However, such a transmission mechanism cannot flexibly adjust the transmission frequency and number, and the transmission is continued when the external system refuses to access, so that a large number of errors are generated by the system.
Disclosure of Invention
The embodiment of the application provides a data transmission method and a related device, which can adjust the transmission state if special conditions occur during the process of timing transmission tasks, ensure the reliability of the application service of the system and prevent the system from generating a large number of errors.
The first aspect of the embodiment of the application provides a data transmission method, which comprises the following steps:
setting a first configuration parameter, wherein the first configuration parameter comprises a first transmission frequency and a first transmission quantity, the first configuration parameter is used for configuring a first task, and the first task is a timing task;
in response to the first task, creating a first thread according to a first configuration parameter, the first thread for transmitting a first number of transmitted target messages at a first transmission frequency;
executing a first thread, wherein the first thread comprises at least one judging node, and ending the first task every time the judging result of any judging node meets the preset condition.
In some alternative embodiments, prior to creating the first thread, the method further comprises:
and starting a first task according to the first configuration parameters.
In some alternative embodiments, the first configuration parameter further comprises a first message type, the method further comprising:
receiving a message text to be sent, and storing the message text to be sent into a target database, wherein the message types of the message text to be sent are various;
and if all the message types of the message texts to be sent do not belong to the first message type, executing a first operation, wherein the first operation is used for ending the first task.
In some alternative embodiments, the first configuration parameter further comprises a second number of transmissions for a different message type, the method further comprising:
according to the first configuration parameters, initializing a token bucket, the initializing the token bucket including generating first tokens for different message types, wherein the number of first tokens for each message type is the same as the second number of transmissions.
In some alternative embodiments, the first thread comprises:
acquiring first data to be transmitted, wherein the first data to be transmitted is query data of a target database responding to a first query request, and the number of the first data to be transmitted is first transmission number;
if the number of the first data to be transmitted is zero, executing a first operation;
setting an optimistic lock for each first data to be transmitted;
if the setting fails, executing a first operation;
generating second data to be transmitted for each first data to be transmitted, wherein the second data to be transmitted is obtained after being assembled based on the corresponding first data to be transmitted;
applying for a first token from the token bucket for each second data to be sent;
if the application fails, recording the transmission failure and executing a first operation;
if the application is successful, the second data to be sent is sent, and the sending result is recorded in the first statistical record;
judging whether the first statistical record exceeds a target threshold value;
if yes, executing a first operation;
if not, the first thread is repeatedly executed.
In some alternative embodiments, the first statistical record includes the amount of data transmitted, the number of consecutive transmission failures, and the total number of transmission failures, and determining whether the first statistical record exceeds the target threshold includes:
and judging whether the transmitted data volume is the total data volume to be transmitted, or judging whether the number of continuous transmission failures exceeds a first threshold, or judging whether the number of total transmission failures exceeds a second threshold.
In some alternative embodiments, the method further comprises:
executing a second operation, wherein the second operation is used for ending the first task;
setting a second configuration parameter, wherein the second configuration parameter is used for configuring a second timing task strategy, and the second configuration parameter comprises a second sending frequency, a third sending quantity, a fourth sending quantity aiming at different message types and a second message type.
A second aspect of the present application provides a data transmission apparatus, comprising:
the device comprises a setting module, a setting module and a processing module, wherein the setting module is used for setting a first configuration parameter, the first configuration parameter comprises a first thread parameter, the first thread parameter comprises a first transmission frequency and a first transmission quantity, the first configuration parameter is used for configuring a first task, and the first task is a timing task;
a creating module, configured to create a first thread according to a first thread parameter in response to a first task, where the first thread is configured to send a first number of target messages at a first sending frequency;
and the execution module is used for executing a first thread, the first thread comprises at least one judgment node, and the first task is ended every time the judgment result of any judgment node meets the preset condition.
A third aspect of the application provides a data transmission apparatus comprising at least one processor coupled to a memory;
the memory is used for storing programs or instructions;
the at least one processor is configured to execute the program or instructions to cause the apparatus to implement the method as described in the first aspect.
A fourth aspect of the application provides a computer readable storage medium comprising computer instructions which, when run on a computer, cause the computer to perform any one of the implementations as in the first aspect or the first aspect.
From the above technical solutions, the embodiment of the present application has the following advantages:
in the embodiment of the application, when the timing sending task is carried out, if special conditions occur, the sending quantity and the sending frequency can be adjusted in real time by modifying parameter configuration, modifying the quantity of issued tokens, stopping the timing task and other modes, and the sending of one type of message type can be stopped by modifying the parameter configuration, so that partial stopping is realized, other business operations are not influenced, the reliability of the application service of the system is ensured, and a large number of errors are prevented from being generated by the system.
Drawings
In order to more clearly illustrate the technical solutions of the present embodiment, the drawings required for the description of the embodiment will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of one embodiment of a data transmission method in an embodiment of the present application;
FIG. 2 is a schematic diagram of another embodiment of a data transmission method in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of a data transmission device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a data transmission method which is used for transmitting data to an external system. The application also provides a corresponding reference data transmission device, a computer readable storage medium and the like. The following will describe in detail.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The conventional method for transmitting messages to an external system generally uses Java schedule as a timing transmission mechanism, sets a fixed frequency and a fixed number of transmissions, and generates a timing transmission task to be cyclically transmitted until all messages to be transmitted are transmitted, and then the timing transmission task is not completed.
However, in a network environment, various special situations may occur, resulting in a large number of false alarms when performing timed task transmissions, such as network fluctuations, receiver server failures, or the receiver modifying access constraints.
In particular, messages have different message types, such as news, thematic, bulletin, and file types, and the different message types correspond to the different format requirements, and each message type needs to independently write a corresponding transmission method.
When a new message type is generated, but the corresponding transmission method is not written, a large number of false prompts are also generated for executing the timing transmission task.
In this regard, referring to fig. 1, a flowchart of a data transmission method provided in an embodiment of the present application includes:
101, setting a first configuration parameter;
before starting the timing task, a first configuration parameter needs to be set for configuring the triggering time of the first task, wherein the first configuration parameter comprises a first transmission frequency and a first transmission number and is used for setting a data transmission plan to be transmitted in the first task.
102, responding to a first task plan, and creating a first thread according to the first configuration parameters;
when the first task is started, generating a first thread for circularly sending data to be sent according to a preset first sending frequency and a preset first sending quantity.
Specifically, for example, the first sending frequency is set to be 1 second, the first sending number is set to be 20, and then in a specific implementation, a first thread is generated to complete the loop sending work, in each loop, 20 data to be sent are obtained from the database to send, sleep is set to be 1 second after the sending is completed, and then the next loop is executed until the task is finished. It should be understood that the foregoing is merely a specific example, and in practical applications, the values of the first transmission frequency and the first transmission number may be multiple, and specifically set according to the corresponding service.
103, executing the first thread.
Executing a first thread, wherein the first thread comprises at least one judging node, and ending the first task every time the judging result of any judging node meets the preset condition.
In the embodiment of the application, the first thread is used for circularly sending the data to be sent in the first task, and at least one judging node is designed in the first thread in order to cope with various special conditions, and when any judging condition is triggered, the first task is ended, so that the reliability of the application service of the system can be ensured, and a large number of errors are prevented from being generated by the system.
Referring to fig. 2, another flow chart of a data transmission method according to an embodiment of the present application includes:
201, starting a first task;
specifically, before starting the first task, a first configuration parameter needs to be set, and in practical application, it is assumed that the first configuration parameter is as shown in table 1 below;
send_number 20
send_rate 1
allow_type 1|2|3
allow_type_number 1_50|2_50|3_10
TABLE 1
The send_number is the number to be sent of the first thread in each cycle, and the number is 20; the send_rate is the sending frequency of the first thread, namely the waiting time after each cycle of sending, and the waiting time is 1 second; the allowtype is a message type allowed to be transmitted, wherein each type is divided by |and 1|2|3 represents that the identification of the message type allowed to be transmitted is 1, 2 or 3; the allowances_type_number is the number of messages that can be sent per message type in the first task, where each type is divided by |, the type is divided by _ with the number of messages that can be sent, 1_50|2_50|3_10 represents the number of messages that can be sent for the message type identified as 1 as 50, the number of messages that can be sent for the message type identified as 2 as 50, and the number of messages that can be sent for the message type identified as 3 as 10.
It will be appreciated that the above is merely a specific example, and that in practical applications, the value of each parameter setting is set according to the specific circumstances.
Specifically, the setting of the allowances_types in table 1 indicates the types of messages allowed to be sent, and in practical application, the types of messages not allowed to be sent (disallows_types) may be set, or both may be set, and the same effect can be achieved only by making corresponding adjustments in the program.
Specifically, the job-admin can be used as a task scheduling module to set a first configuration parameter, a task is scheduled through a scheduling center, the task is started and stopped at any time, and the parameter configuration is visually adjusted.
202, receiving a message text to be sent;
and processing the message text to be transmitted, such as converting the format, removing the emoticons and the like, and storing the processed message text in a local database.
Specifically, the message text to be sent may be generated in the service of the present system, or may be sent by a third party system, where the present system is responsible for forwarding, etc., and the present application is not limited herein.
203, judging whether the message text is allowed to be sent;
judging whether the message types of the message text to be sent received in the step 202 do not belong to the value in the allowances_types in the first configuration parameters, if yes, executing a step 216;
it can be understood that if the message type (disallowed_type) that is set in the first configuration parameter is not allowed to be sent, the judgment conditions are all belonging.
Initializing a token bucket 204;
the number of tokens corresponding to the allowances_type_number is generated in the non-relational database.
Specifically, the non-relational database may be redis, mongoDB, cassandra or the like, and is not limited thereto.
The embodiment of the application recommends using the non-relational database redis based on memory storage as a tool for token management, supports distributed service to acquire tokens simultaneously, improves the rate of token issuing and greatly reduces access to a database server.
Starting a first thread;
206, inquiring the data to be sent;
the data to be transmitted is queried from the database, and the data quantity of the data to be transmitted in each response does not exceed the value of the first transmission quantity send_number.
207, judging whether data to be transmitted exist or not;
whether the number of data to be transmitted is greater than 0 is determined, if so, step 208 is executed, and if 0 is executed, step 216 is executed.
208, setting an optimistic lock;
an optimistic lock is set for each data to be transmitted.
It should be noted that setting the optimistic lock indicates that the version number is read out together with the read data, and then the version number is incremented by one with the update. At this time, comparing the version data of the submitted data with the current version information recorded corresponding to the database table, if the version number of the submitted data is greater than the current version number of the database table, updating, otherwise, considering the data as the outdated data.
The primary purpose of the optimistic lock is to solve the problem of concurrency of transactions, which can be skipped when it is confirmed that no other traffic is competing.
209, judging whether the setting is successful;
if the setup is successful, step 210 is performed, and if the setup is failed, step 216 is performed.
210, assembling a sending message;
the queried data to be transmitted is assembled into a data format which can be transmitted, such as coding, compiling text format and the like.
211, applying for a token;
and applying a token to the redis for each transmittable data, and applying the token according to the message type of the data.
212, judging whether the application is successful;
whether the application of the token is successful is judged, if the application is successful, the message sending module is called up, the step 213 is executed, and if one application fails, the step 216 is executed.
Sending a message;
and inputting the transmittable data into a message transmitting module for message transmission, and obtaining a transmission result.
The sending result includes successful sending, failed sending, overtime connection and the like.
214, counting the sending result;
and counting each sending result to generate a counting result. For example, the total number of transmissions, the number of consecutive transmission failures, and the total number of transmission failures are counted.
215, judging whether the transmission result exceeds a threshold value;
when any of the statistical results exceeds the threshold, step 216 is executed, and if none of the statistical results exceeds the threshold, step 206 is executed again.
216, the first task is ended.
And when the judgment result of any judgment node meets the preset condition, ending the first task and generating corresponding error information.
The embodiment of the application sets a plurality of judging nodes in consideration of various special conditions, and when any judging node triggers to stop the first task immediately, the first task can also be adjusted by modifying parameter configuration, deleting tokens in a non-relational database and other modes, thereby ensuring the reliability of application service and preventing a large number of errors from being reported by a system.
And by using one entry to receive parameter configuration, multiple message types can be processed simultaneously, so that the workload of subsequent repeated development is reduced.
The embodiment of the application also provides a data transmission device, referring to fig. 3, which is a schematic diagram of the data transmission device provided by the embodiment of the application, where the device includes:
the setting module 301 is configured to set a first configuration parameter, where the first configuration parameter includes a first transmission frequency and a first transmission number, and the first configuration parameter is used to configure a first task, where the first task is a timing task;
a creating module 302, configured to respond to the first task, and create a first thread according to the first configuration parameter, where the first thread is configured to send the target message of the first sending number at the first sending frequency;
and the execution module 303 is configured to execute the first thread, where the first thread includes at least one judgment node, and end the first task whenever a judgment result of any one of the judgment nodes meets a preset condition.
Correspondingly, the embodiment of the application also provides a computer, which is shown in fig. 4, and can include:
a processor 401, a memory 402, an input device 403 and an output device 404. The number of processors 401 in the browser server may be one or more, one processor being exemplified in fig. 4. In some embodiments of the application, the processor 401, memory 402, input device 403, and output device 404 may be connected by a bus or other means, with the bus connection being exemplified in FIG. 4.
Memory 402 may be used to store software programs and modules that processor 401 may execute by running the software programs and modules stored in memory 502. The memory 402 may mainly include a storage program area that may store an operating system, application programs required for at least one function, and the like, and a storage data area. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The input device 403 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the browser server.
In particular, in this embodiment, the processor 401 loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions:
setting a first configuration parameter, wherein the first configuration parameter comprises a first transmission frequency and a first transmission quantity, and the first configuration parameter is used for configuring a first task, and the first task is a timing task;
in response to the first task, creating a first thread according to the first configuration parameter, the first thread being configured to send the first number of target messages at the first sending frequency;
executing the first thread, wherein the first thread comprises at least one judging node, and ending the first task every time the judging result of any judging node meets the preset condition.
It should be noted that the data processing method and the related device provided by the application can be used in the field of network security or finance. The foregoing is merely exemplary, and is not intended to limit the application of the data processing method and related apparatus provided by the present application.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
It will be clearly understood by those skilled in the art that, for convenience and brevity, explanation and beneficial effects of the relevant content in any of the above-mentioned communication devices may refer to the corresponding method embodiments provided above, and are not repeated here.
In an embodiment of the present application, the terminal device or the access network device may include a hardware layer, an operating system layer running above the hardware layer, and an application layer running above the operating system layer. The hardware layer may include a central processing unit (central processing unit, CPU), a memory management unit (memory management unit, MMU), and a memory (also referred to as a main memory). The operating system of the operating system layer may be any one or more computer operating systems that implement business processing through processes (processes), for example, a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or windows operating system, etc. The application layer may include applications such as a browser, address book, word processor, instant messaging software, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, a substantial portion of the technical solution of the present application, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or an access network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.

Claims (10)

1. A data transmission method, comprising:
setting a first configuration parameter, wherein the first configuration parameter comprises a first transmission frequency and a first transmission quantity, and the first configuration parameter is used for configuring a first task, and the first task is a timing task;
in response to the first task, creating a first thread according to the first configuration parameter, the first thread being configured to send the first number of target messages at the first sending frequency;
executing the first thread, wherein the first thread comprises at least one judging node, and ending the first task every time the judging result of any judging node meets the preset condition.
2. The method of claim 1, wherein prior to the creating the first thread, the method further comprises:
and starting the first task according to the first configuration parameters.
3. The method of claim 2, wherein the first configuration parameter further comprises a first message type, the method further comprising:
receiving a message text to be sent, and storing the message text to be sent into a target database, wherein the message types of the message text to be sent are various;
and if all the message types of the message text to be sent do not belong to the first message type, executing a first operation, wherein the first operation is used for ending the first task.
4. A method according to claim 3, wherein the first configuration parameter further comprises a second number of transmissions for a different message type, the method further comprising:
initializing a token bucket according to the first configuration parameters, wherein the initializing the token bucket comprises generating first tokens for the different message types, and the number of the first tokens of each message type is the same as the second transmission number.
5. The method of claim 4, wherein the executing the first thread comprises:
acquiring first data to be sent, wherein the first data to be sent is query data of the target database in response to a first query request, and the number of the first data to be sent is the first sending number;
if the number of the first data to be sent is zero, executing the first operation;
setting an optimistic lock for each of the first data to be transmitted;
if the setting fails, executing the first operation;
generating second data to be transmitted for each piece of first data to be transmitted, wherein the second data to be transmitted is obtained after being assembled based on the corresponding first data to be transmitted;
applying for the first token from the token bucket for each second data to be sent;
if the application fails, recording the transmission failure, and executing the first operation;
if the application is successful, the second data to be sent is sent, and the sending result is recorded in a first statistical record;
judging whether the first statistical record exceeds a target threshold value;
if yes, executing the first operation;
and if the first thread does not exceed the first thread, repeatedly executing the first thread.
6. The method of claim 5, wherein the first statistical record includes a transmitted data amount, a number of consecutive transmission failures, and a total number of transmission failures, and wherein determining whether the first statistical record exceeds a target threshold comprises:
judging whether the transmitted data volume is the total data volume to be transmitted or not, or judging whether the continuous transmission failure times exceed a first threshold or judging whether the total transmission failure times exceed a second threshold.
7. The method according to any one of claims 2-6, further comprising:
performing a second operation, wherein the second operation is used for ending the first task;
setting a second configuration parameter, wherein the second configuration parameter is used for configuring a second timing task strategy, and the second configuration parameter comprises a second sending frequency, a third sending quantity, a fourth sending quantity aiming at different message types and a second message type.
8. A data transmission apparatus, comprising:
the device comprises a setting module, a setting module and a processing module, wherein the setting module is used for setting a first configuration parameter, the first configuration parameter comprises a first thread parameter, the first thread parameter comprises a first transmission frequency and a first transmission quantity, the first configuration parameter is used for configuring a first task, and the first task is a timing task;
a creating module, configured to create, in response to the first task, a first thread according to the first thread parameter, where the first thread is configured to send the target message of the first sending number at the first sending frequency;
and the execution module is used for executing the first thread, the first thread comprises at least one judgment node, and the first task is ended every time the judgment result of any judgment node meets the preset condition.
9. A data transmission device comprising at least one processor coupled to a memory;
the memory is used for storing programs or instructions;
the at least one processor is configured to execute the program or instructions to cause the apparatus to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 7.
CN202311136917.XA 2023-09-05 2023-09-05 Data transmission method and related device Pending CN117041324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311136917.XA CN117041324A (en) 2023-09-05 2023-09-05 Data transmission method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311136917.XA CN117041324A (en) 2023-09-05 2023-09-05 Data transmission method and related device

Publications (1)

Publication Number Publication Date
CN117041324A true CN117041324A (en) 2023-11-10

Family

ID=88639250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311136917.XA Pending CN117041324A (en) 2023-09-05 2023-09-05 Data transmission method and related device

Country Status (1)

Country Link
CN (1) CN117041324A (en)

Similar Documents

Publication Publication Date Title
TWI695318B (en) Method, device and electronic equipment for updating application program on user terminal
JP4993905B2 (en) Server queuing system and method
CN108334545B (en) Method and device for realizing asynchronous service
CN110825420A (en) Configuration parameter updating method, device, equipment and storage medium for distributed cluster
CN111277639B (en) Method and device for maintaining data consistency
CN109697112B (en) Distributed intensive one-stop operating system and implementation method
CN108512930B (en) Shared file management method, device, server and storage medium
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN113179304B (en) Message issuing method, system, device and storage medium
CN110333916B (en) Request message processing method, device, computer system and readable storage medium
CN112559461A (en) File transmission method and device, storage medium and electronic equipment
WO2020238860A1 (en) Distributed file batch processing method and apparatus, and readable storage medium
CN111049913B (en) Data file transmission method and device, storage medium and electronic equipment
CN113946427A (en) Task processing method, processor and storage medium for multi-operating system
CN112468980B (en) Short message reminding fusing processing method and system based on distributed memory database
CN110716943A (en) Missing data additional recording method and device, computer equipment and storage medium
CN117041324A (en) Data transmission method and related device
CN112860746B (en) Cache reduction-based method, equipment and system
KR20170130911A (en) Method for Performing Real-Time Changed Data Publish Service of DDS-DBMS Integration Tool
CN115983991A (en) Flow adjusting method, device, equipment and medium
CN114003203B (en) Maintenance method, device and equipment for activity counting variable and readable medium
CN106844156B (en) WCF communication message interception method in intelligent building integrated management platform system
CN111679899B (en) Task scheduling method, device, platform equipment and storage medium
CN113656374A (en) Method and device for processing service message with attachment
CN110378554B (en) Operation and maintenance management system, method, medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination