Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for file fragmentation breakpoint transmission based on message queue

A technology of message queue and transmission method, which is applied in the field of message queue-based file fragmentation breakpoint transmission method and device, which can solve the problems of low transmission efficiency and achieve the effect of complete and efficient transmission

Active Publication Date: 2022-05-20
GUANGDONG XUANYUAN NETWORK & TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a message queue-based method and device for file fragmentation breakpoint transmission, which is used to solve the existing technical problem of low transmission efficiency when using a micro-service architecture to transmit large files

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for file fragmentation breakpoint transmission based on message queue
  • Method and device for file fragmentation breakpoint transmission based on message queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] figure 1 It is a flow chart of the steps of the message queue-based file fragmentation breakpoint transmission method described in the embodiment of the present invention, figure 2 It is a flow frame diagram of the message queue-based method for transmitting file fragment breakpoints according to the embodiment of the present invention.

[0041] Such as figure 1 with figure 2 As shown, the embodiment of the present invention provides a method for transmitting file fragmentation breakpoints based on message queues, comprising the following steps:

[0042] S10. The sender obtains the file to be sent, and transmits the information of the file to be sent to the service bus.

[0043] It should be noted that, in step S10, the main task is to obtain the file to be sent to be transmitted, and transmit the information of the file to be sent to the service bus. In this embodiment, after the sender obtains the file to be sent, it compresses it and caches it locally, and then t...

Embodiment 2

[0082] The embodiment of the present invention also provides a message queue-based file fragmentation breakpoint transmission device, including a file acquisition module, a file processing module, an execution thread establishment module, a task splitting module, a task sending module, and a task verification module;

[0083] The file obtaining module is used for the sender to obtain the file to be sent, and transmit the information of the file to be sent to the service bus;

[0084] The file processing module is used for the service bus to generate a sending task through the file size of the file to be sent and the preset transmission file block size and add the sending task to the waiting queue of the service bus;

[0085] The execution thread establishment module is used to establish the execution thread corresponding to the sending task according to the sending task existing in the queue to be executed, and the supervisory thread of the service bus;

[0086] The task split...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to the technical field of data transmission, and in particular to a message queue-based method and device for transmitting file fragmentation points. The bus can receive the service information of the sender and the receiver, and the multi-threading of the service bus can be used to quickly realize the block transmission of the sending task, and the service bus is used to supervise the entire file transfer process, and a multi-line supervision transmission thread of the sending task is established. In order to ensure the complete and efficient transmission of files, it solves the technical problem of low transmission efficiency in the existing micro-service architecture to transmit large files.

Description

technical field [0001] The invention relates to the technical field of data transmission, in particular to a message queue-based method and device for transmitting file fragmentation breakpoints. Background technique [0002] Microservice architecture is a new technology for deploying applications and services in the cloud. Most of the debate around microservices has centered on whether containers or other technologies are a good way to implement microservices. Microservices can run "in their own program" and communicate with HTTP-type APIs through "lightweight devices". In service exposure, many services can be limited by internal independent processes. If any of the services needs to add some kind of function, then the scope of the process must be reduced; in the microservice architecture, only in a specific service Add desired functionality without affecting the architecture of the overall process. [0003] The communication between services in the existing microservic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/06H04L9/32H04L12/40H04L9/40
CPCH04L67/06H04L63/0428H04L63/123H04L12/40H04L9/3239Y02D30/50
Inventor 王铁黄永健张青会陈统
Owner GUANGDONG XUANYUAN NETWORK & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products