CN116546097A - Resource transmission control method and device and computer equipment - Google Patents

Resource transmission control method and device and computer equipment Download PDF

Info

Publication number
CN116546097A
CN116546097A CN202310626539.7A CN202310626539A CN116546097A CN 116546097 A CN116546097 A CN 116546097A CN 202310626539 A CN202310626539 A CN 202310626539A CN 116546097 A CN116546097 A CN 116546097A
Authority
CN
China
Prior art keywords
resource
uploaded
throughput
resources
transmission system
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
CN202310626539.7A
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.)
Industrial Bank Co Ltd
CIB Fintech Services Shanghai Co Ltd
Original Assignee
Industrial Bank Co Ltd
CIB Fintech Services Shanghai Co 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 Industrial Bank Co Ltd, CIB Fintech Services Shanghai Co Ltd filed Critical Industrial Bank Co Ltd
Priority to CN202310626539.7A priority Critical patent/CN116546097A/en
Publication of CN116546097A publication Critical patent/CN116546097A/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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a resource transmission control method. The method comprises the following steps: receiving a resource uploading request, and storing the resource uploading request to a first cache pool in response to the request amount of the resource uploading request being greater than a request processing upper limit threshold, wherein the resource uploading request comprises a resource to be uploaded; asynchronously calling a resource uploading request in the first cache pool to carry out resource transmission processing; in the resource transmission processing process, if the total amount of the resources to be uploaded is larger than the upper limit throughput of the file transmission system, continuously receiving the resources to be uploaded, and storing the resources to be uploaded exceeding the upper limit throughput into a second cache pool; and in response to the total amount of resources to be uploaded by the file transmission system is smaller than the upper limit throughput, rewriting the resources to be uploaded in the second cache pool back to the file transmission system for resource transmission processing. The method can improve the resource transmission efficiency.

Description

Resource transmission control method and device and computer equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for controlling resource transmission, and a computer device.
Background
When the communication equipment is used, resources such as files, pictures and the like sometimes need to be uploaded, and an uploading function can be realized through an uploading interface provided by a server. As the number of users using the device increases, the number of uploaded resources increases, the amount of requests in a short time may be above the current limit threshold of the interface.
In the related art, a current limit condition of the interface may be set, and when the current limit condition is reached, all access requests are denied. Existing downgrade strategies fail to refine the traffic restrictions.
Disclosure of Invention
Based on this, it is necessary to provide a resource transmission control method, before receiving a resource upload request, if the request amount of the resource upload request is greater than the request processing upper limit threshold, storing the resource upload request in the first buffer pool, and if the total amount of resources to be uploaded is greater than the upper limit throughput of the file transmission system in the process of the resource transmission processing, storing the resources to be uploaded in the second buffer pool. The resource transmission work can be continued under the condition that the quantity of the resources to be uploaded exceeds the threshold value, and the resource transmission efficiency is improved.
In a first aspect, the present application provides a resource transmission control method. The method comprises the following steps:
receiving a resource uploading request, and storing the resource uploading request to a first cache pool in response to the request amount of the resource uploading request being greater than a request processing upper limit threshold, wherein the resource uploading request comprises a resource to be uploaded;
asynchronously calling a resource uploading request in the first cache pool to carry out resource transmission processing;
in the resource transmission processing process, if the total amount of the resources to be uploaded is larger than the upper limit throughput of the file transmission system, continuously receiving the resources to be uploaded, and storing the resources to be uploaded exceeding the upper limit throughput into a second cache pool;
and in response to the total amount of resources to be uploaded by the file transmission system is smaller than the upper limit throughput, rewriting the resources to be uploaded in the second cache pool back to the file transmission system for resource transmission processing.
In one embodiment, the responding to the total amount of resources to be uploaded by the file transfer system being less than the upper throughput comprises:
and acquiring the data throughput of the file transmission system according to the preset interval time, and rewriting the data to be uploaded in the second buffer pool back to the file transmission system for resource transmission processing when the upper throughput of the file transmission system is reduced to a preset throughput threshold.
In one embodiment, the determining of the upper limit throughput of the file transfer system includes:
acquiring the transmission resource size and transmission time of each file transmission system, and counting the throughput of each file transmission system;
and selecting the minimum throughput in all file transmission systems as the upper limit throughput.
In one embodiment, the method further comprises:
and when the resources to be uploaded are stored in the second cache pool, acquiring the resources to be uploaded in the second cache pool, and executing the downloading operation.
In a second aspect, the present application further provides a resource transmission control apparatus, where the apparatus includes:
the receiving module is used for receiving a resource uploading request, responding to the fact that the request quantity of the resource uploading request is larger than the request processing upper limit threshold value, and storing the resource uploading request into the first cache pool, wherein the resource uploading request comprises resources to be uploaded;
the calling module is used for asynchronously calling the resource uploading request in the first cache pool to carry out resource transmission processing;
the transmission module is used for continuously receiving the resources to be uploaded and storing the resources to be uploaded exceeding the upper limit throughput to a second cache pool if the total amount of the resources to be uploaded is larger than the upper limit throughput of the file transmission system in the resource transmission processing process;
and the transfer module is used for rewriting the resources to be uploaded in the second cache pool back to the file transmission system for resource transmission processing in response to the total amount of the resources to be uploaded in the file transmission system being smaller than the upper limit throughput.
In one embodiment, the responding to the total amount of resources to be uploaded by the file transfer system being less than the upper throughput comprises:
and acquiring the data throughput of the file transmission system according to the preset interval time, and rewriting the data to be uploaded in the second buffer pool back to the file transmission system for resource transmission processing when the upper throughput of the file transmission system is reduced to a preset throughput threshold.
In one embodiment, the determining of the upper limit throughput of the file transfer system includes:
acquiring the transmission resource size and transmission time of each file transmission system, and counting the throughput of each file transmission system;
and selecting the minimum throughput in all file transmission systems as the upper limit throughput.
In one embodiment, the apparatus further comprises:
and when the resources to be uploaded are stored in the second cache pool, acquiring the resources to be uploaded in the second cache pool, and executing the downloading operation.
In a third aspect, the present disclosure also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the resource transmission control method when executing the computer program.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of a resource transmission control method.
In a fifth aspect, the present disclosure also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the resource transmission control method.
The resource transmission control method at least comprises the following beneficial effects:
when the request quantity of the resource uploading request is larger than the request processing upper limit threshold, the resource uploading request can be stored in the first cache pool, the interface is prevented from directly rejecting the resource uploading request, and the resource uploading efficiency is improved. And in the process of resource transmission processing, if the total amount of the resources to be transmitted is larger than the upper throughput of the file transmission system, storing the resources to be uploaded into a second buffer pool, and when the total amount of the resources to be uploaded of the file transmission system is smaller than the upper throughput, re-writing the resources to be uploaded in the second buffer pool back into the file transmission system for resource transmission processing, thereby improving the resource transmission efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments or the conventional techniques of the present disclosure, the drawings required for the descriptions of the embodiments or the conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to the drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is an application environment diagram of a resource transmission control method in one embodiment;
FIG. 2 is a flow chart of a method of controlling resource transmission in one embodiment;
FIG. 3 is a block diagram of a resource transfer control device in one embodiment;
FIG. 4 is an internal block diagram of a computer device in one embodiment;
fig. 5 is an internal structural diagram of a server in one embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element. For example, if first, second, etc. words are used to indicate a name, but not any particular order.
The embodiment of the disclosure provides a resource transmission control method, which can be applied to an application environment as shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In some embodiments of the present disclosure, as shown in fig. 2, a resource transmission control method is provided, and the method is applied to the server in fig. 1 to process the resource to be transmitted for illustration. It will be appreciated that the method may be applied to a server, and may also be applied to a system comprising a terminal and a server, and implemented by interaction of the terminal and the server. In a specific embodiment, the method may include the steps of:
s202: receiving a resource uploading request, and storing the resource uploading request to a first cache pool in response to the request quantity of the resource uploading request being greater than a request processing upper limit threshold; the resource upload request contains the resource to be uploaded.
The resources to be uploaded can include pictures, files and the like, and the resource uploading request can include terminal resources to be uploaded, specified interface addresses and the like, and the terminal needs to upload the resources to be uploaded to the server.
The request upper processing threshold may refer to a parameter reflecting the resource usage of the interface, and may include, but is not limited to, a value of average usage time of the cpu per unit time, an average value of memory usage size per unit time, and an average value of network bandwidth consumption per unit time. The request processing upper threshold may also refer to a parameter reflecting the capability of the interface, and may include, but is not limited to, the following values, average processing time per unit time, interface reference response time, and number of invocations per unit time.
When the request quantity of the resource uploading request is larger than the request processing upper limit threshold, the interface does not directly return an uploading failure message, the resource uploading request can be stored in a first buffer pool, the resource to be uploaded can be obtained again from the first buffer pool later, the interface is prevented from directly rejecting the resource uploading request, and the resource uploading efficiency is improved. The first cache pool can alleviate the problem that the request amount of the resource uploading request is more in a short time.
S204: and asynchronously calling the resource uploading request in the first cache pool to carry out resource transmission processing.
When the request quantity of the resource uploading requests is larger than the request processing upper limit threshold value, when the resource uploading requests are stored in a first buffer pool, the resource uploading requests in the first buffer pool are asynchronously called to carry out resource transmission processing. The resource transmission processing may include acquiring an upload interface according to an interface address in the resource upload request, and transmitting the resource to be uploaded to the file transmission system through the interface.
S206: and in the resource transmission processing process, if the total amount of the resources to be uploaded is larger than the upper limit throughput of the file transmission system, continuously receiving the resources to be uploaded, and storing the resources to be uploaded exceeding the upper limit throughput into a second cache pool.
Multiple file transfer systems may be included, each having a different throughput, and the lowest throughput of all of the file transfer systems may be selected as the upper throughput. The throughput may include a number of transactions processed per second, a time for processing the number of transactions, and the like, and when the total amount of resources to be transmitted is greater than an upper limit throughput of the file transmission system, the file transmission system may still continue to receive the resource upload request, and the file transmission system may store the resources to be transmitted exceeding the upper limit throughput to the second buffer pool while processing the resource upload request, where the second buffer pool may be used to temporarily store the resource upload request.
S208: and in response to the total amount of resources to be uploaded by the file transmission system is smaller than the upper limit throughput, rewriting the resources to be uploaded in the second cache pool back to the file transmission system for resource transmission processing.
After the file transmission system processes the resource uploading request for a period of time, the total amount of resources to be uploaded by the file transmission system may be smaller than the upper limit throughput, and the resources to be uploaded temporarily stored in the second buffer pool may be rewritten back into the file transmission system for resource transmission processing.
In the resource transmission control method, when the request quantity of the resource uploading request is larger than the request processing upper limit threshold, the resource uploading request can be stored in the first buffer pool, so that the interface is prevented from directly rejecting the resource uploading request, and the resource uploading efficiency is improved. And in the process of resource transmission processing, if the total amount of the resources to be transmitted is larger than the upper throughput of the file transmission system, storing the resources to be uploaded into a second buffer pool, and re-writing the resources to be uploaded in the second buffer pool back into the file transmission system for resource transmission processing when the total amount of the resources to be uploaded of the file transmission system is smaller than the upper throughput. And the resource transmission efficiency is improved.
In some embodiments of the present disclosure, the responding to the total amount of resources to be uploaded by the file transfer system being less than the upper throughput comprises:
and acquiring the data throughput of the file transmission system according to the preset interval time, and rewriting the data to be uploaded in the second buffer pool back to the file transmission system for resource transmission processing when the upper throughput of the file transmission system is reduced to a preset throughput threshold.
The timing task or the threshold trigger task can be set in the file transmission system, the data throughput of the file transmission system is acquired at fixed time and is used for being compared with the preset throughput threshold, or the preset throughput threshold is set in the file transmission system, and when the data throughput of the file transmission system reaches the preset throughput threshold, the resource to be uploaded in the second buffer pool can be operated. The system can comprise a plurality of file transmission systems, the throughput of each file transmission system is different, and the upper throughput threshold of the file transmission system currently processed can be selected as the preset throughput.
In some embodiments of the present disclosure, the determining of the upper bound throughput of the file transfer system includes:
acquiring the transmission resource size and transmission time of each file transmission system, and counting the throughput of each file transmission system;
and selecting the minimum throughput in all file transmission systems as the upper limit throughput.
The throughput may include the number of transactions processed per second, the time for processing the number of transactions, etc., and may be determined by the transmission resource size and transmission time of each file transmission system, and in the resource transmission process, a plurality of file transmission systems may be included, and the minimum throughput in all the file transmission systems is selected as the upper throughput.
In some embodiments of the present disclosure, the method further comprises:
and when the resources to be uploaded are stored in the second cache pool, acquiring the resources to be uploaded in the second cache pool, and executing the downloading operation.
If the total amount of the resources to be uploaded is smaller than the upper limit throughput of the file transmission system, the resources to be uploaded are transmitted to the file transmission system, and the resources to be uploaded in the file transmission system are obtained, so that a downloading function is realized; and if the total amount of the resources to be uploaded is larger than the upper limit throughput of the file transmission system, storing the resources to be uploaded into a second cache pool, acquiring the resources to be uploaded in the second cache pool, and executing the downloading operation.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiments of the present disclosure further provide a resource transmission control apparatus for implementing the above-mentioned method for controlling resource transmission. The implementation scheme of the device for solving the problem is similar to that described in the above method, so the specific limitation in the embodiments of the resource transmission control device provided below may refer to the limitation of the resource transmission control method hereinabove, and will not be repeated here.
The apparatus may comprise a system (including a distributed system), software (applications), modules, components, servers, clients, etc. that employ the methods described in the embodiments of the present specification in combination with the necessary apparatus to implement the hardware. Based on the same innovative concepts, embodiments of the present disclosure provide for devices in one or more embodiments as described in the following examples. Because the implementation scheme and the method for solving the problem by the device are similar, the implementation of the device in the embodiment of the present disclosure may refer to the implementation of the foregoing method, and the repetition is not repeated. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
In one embodiment, as shown in fig. 3, a resource transmission control apparatus 300 is provided, which may be the aforementioned server, or a module, component, device, unit, etc. integrated with the server.
The apparatus 300 may include:
a receiving module 302, configured to receive a resource upload request, and store the resource upload request to a first cache pool in response to a request amount of the resource upload request being greater than a request processing upper limit threshold, where the resource upload request includes a resource to be uploaded;
a calling module 304, configured to asynchronously call a resource uploading request in the first cache pool to perform resource transmission processing;
a transmission module 306, configured to continuously receive the resources to be uploaded if the total amount of the resources to be uploaded is greater than the upper limit throughput of the file transmission system in the process of the resource transmission processing, and store the resources to be uploaded exceeding the upper limit throughput into a second buffer pool;
and a transfer module 308, configured to, in response to the total amount of resources to be uploaded by the file transfer system being less than the upper limit throughput, rewrite the resources to be uploaded in the second buffer pool back to the file transfer system for performing resource transfer processing.
In one embodiment, the responding to the total amount of resources to be uploaded by the file transfer system being less than the upper throughput comprises:
and acquiring the data throughput of the file transmission system according to the preset interval time, and rewriting the data to be uploaded in the second buffer pool back to the file transmission system for resource transmission processing when the upper throughput of the file transmission system is reduced to a preset throughput threshold.
In one embodiment, the determining of the upper limit throughput of the file transfer system includes:
acquiring the transmission resource size and transmission time of each file transmission system, and counting the throughput of each file transmission system;
and selecting the minimum throughput in all file transmission systems as the upper limit throughput.
In one embodiment, the apparatus further comprises:
and when the resources to be uploaded are stored in the second cache pool, acquiring the resources to be uploaded in the second cache pool, and executing the downloading operation.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The above-described respective modules in the resource transmission control apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing resources to be uploaded. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a resource transmission control method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a resource transfer control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the structures shown in fig. 4 and 5 are block diagrams of only portions of structures associated with the disclosed aspects and are not limiting of the computer apparatus on which the disclosed aspects may be implemented, and that a particular computer apparatus may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, implements the method of any of the embodiments of the present disclosure.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method described in any of the embodiments of the present disclosure.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided by the present disclosure may include at least one of non-volatile and volatile memory, among others. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided by the present disclosure may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors involved in the embodiments provided by the present disclosure may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic, quantum computing-based data processing logic, etc., without limitation thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples have expressed only a few embodiments of the present disclosure, which are described in more detail and detail, but are not to be construed as limiting the scope of the present disclosure. It should be noted that variations and modifications can be made by those skilled in the art without departing from the spirit of the disclosure, which are within the scope of the disclosure. Accordingly, the scope of the present disclosure should be determined from the following claims.

Claims (11)

1. A method for controlling resource transmission, the method comprising:
receiving a resource uploading request, and storing the resource uploading request to a first cache pool in response to the request amount of the resource uploading request being greater than a request processing upper limit threshold, wherein the resource uploading request comprises a resource to be uploaded;
asynchronously calling a resource uploading request in the first cache pool to carry out resource transmission processing;
in the resource transmission processing process, if the total amount of the resources to be uploaded is larger than the upper limit throughput of the file transmission system, continuously receiving the resources to be uploaded, and storing the resources to be uploaded exceeding the upper limit throughput into a second cache pool;
and in response to the total amount of resources to be uploaded by the file transmission system is smaller than the upper limit throughput, rewriting the resources to be uploaded in the second cache pool back to the file transmission system for resource transmission processing.
2. The method of claim 1, wherein the responding to the total amount of resources to be uploaded by the file transfer system being less than the upper throughput comprises:
and acquiring the data throughput of the file transmission system according to the preset interval time, and rewriting the data to be uploaded in the second buffer pool back to the file transmission system for resource transmission processing when the upper throughput of the file transmission system is reduced to a preset throughput threshold.
3. The method of claim 1, wherein the determining of the upper throughput limit of the file transfer system comprises:
acquiring the transmission resource size and transmission time of each file transmission system, and counting the throughput of each file transmission system;
and selecting the minimum throughput in all file transmission systems as the upper limit throughput.
4. The method according to claim 1, wherein the method further comprises:
and when the resources to be uploaded are stored in the second cache pool, acquiring the resources to be uploaded in the second cache pool, and executing the downloading operation.
5. A resource transmission control apparatus, the apparatus comprising:
the receiving module is used for receiving a resource uploading request, responding to the fact that the request quantity of the resource uploading request is larger than the request processing upper limit threshold value, and storing the resource uploading request into the first cache pool, wherein the resource uploading request comprises resources to be uploaded;
the calling module is used for asynchronously calling the resource uploading request in the first cache pool to carry out resource transmission processing;
the transmission module is used for continuously receiving the resources to be uploaded and storing the resources to be uploaded exceeding the upper limit throughput to a second cache pool if the total amount of the resources to be uploaded is larger than the upper limit throughput of the file transmission system in the resource transmission processing process;
and the transfer module is used for rewriting the resources to be uploaded in the second cache pool back to the file transmission system for resource transmission processing in response to the total amount of the resources to be uploaded in the file transmission system being smaller than the upper limit throughput.
6. The apparatus of claim 5, wherein the responding to the total amount of resources to be uploaded by the file transfer system being less than the upper throughput comprises:
and acquiring the data throughput of the file transmission system according to the preset interval time, and rewriting the data to be uploaded in the second buffer pool back to the file transmission system for resource transmission processing when the upper throughput of the file transmission system is reduced to a preset throughput threshold.
7. The apparatus of claim 5, wherein the determination of the upper throughput limit of the file transfer system comprises:
acquiring the transmission resource size and transmission time of each file transmission system, and counting the throughput of each file transmission system;
and selecting the minimum throughput in all file transmission systems as the upper limit throughput.
8. The apparatus of claim 5, wherein the apparatus further comprises:
and when the resources to be uploaded are stored in the second cache pool, acquiring the resources to be uploaded in the second cache pool, and executing the downloading operation.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
11. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202310626539.7A 2023-05-30 2023-05-30 Resource transmission control method and device and computer equipment Pending CN116546097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310626539.7A CN116546097A (en) 2023-05-30 2023-05-30 Resource transmission control method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310626539.7A CN116546097A (en) 2023-05-30 2023-05-30 Resource transmission control method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN116546097A true CN116546097A (en) 2023-08-04

Family

ID=87443512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310626539.7A Pending CN116546097A (en) 2023-05-30 2023-05-30 Resource transmission control method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN116546097A (en)

Similar Documents

Publication Publication Date Title
CN104102693A (en) Object processing method and device
TW202008763A (en) Data processing method and apparatus, and client
CN114089921A (en) Power system data storage method and device, computer equipment and storage medium
CN116991800A (en) File acquisition system, method, device, computer equipment and storage medium
CN116546097A (en) Resource transmission control method and device and computer equipment
CN115344183A (en) Page sliding method, live broadcast page sliding method, device, equipment and medium
CN114253481A (en) Data storage method and device, computer equipment and storage medium
CN116708245A (en) Interface control method, device and computer equipment
CN115604267A (en) Load balancing method, device, equipment and storage medium for message middleware
CN117455501A (en) Request processing method, apparatus, computer device and storage medium
CN117453759B (en) Service data processing method, device, computer equipment and storage medium
CN117331625A (en) Page resource loading method and device, computer equipment and storage medium
CN115529288B (en) Message pushing method, device and computer equipment
CN116489089A (en) Flow control method and device and computer equipment
CN117349559A (en) Page display method and device, computer equipment and storage medium
CN117082143A (en) Resource scheduling method, device, computer equipment and storage medium
CN115756750A (en) Resource scaling method, device, computer equipment, storage medium and program product
CN117908825A (en) Chip data sequential processing method, device, computer equipment and storage medium
CN115604277A (en) Load balancing method, device, equipment and storage medium for message middleware
CN116880961A (en) Service request processing method, device, computer equipment and storage medium
CN117435129A (en) Storage cluster expansion method and device, computer equipment and storage medium
CN117216009A (en) File processing method, apparatus, device, storage medium and computer program product
CN117041161A (en) Service request processing method, device, computer equipment and storage medium
CN114416214A (en) Cross-network system integration method and device, computer equipment and storage medium
CN116755934A (en) Snapshot starting method, device, equipment, storage medium and program product

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