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

A method and system for real-time transmission and processing of large files based on redis

A technology of real-time transmission and processing methods, applied in the computer field, can solve problems such as low security, inability to resume transmission from breakpoints, and low processing timeliness, so as to achieve the effect of transmission efficiency

Active Publication Date: 2022-06-07
SOUTHWEST CHINA RES INST OF ELECTRONICS EQUIP
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] There are two traditional cross-network file processing methods: 1. Use the shared network method to directly write large files into the shared directory, and both the sender and the sender can access through the shared method, but this method is low in security; 2. Use the FTP method , upload large files to the FTP server through FTP, and the receiving end judges whether there are new files by periodically checking the FTP directory, and checks whether the file is uploaded. Only when the upload is completed can the processing be started
This method is more secure than method 1, but the processing timeliness is relatively low, especially when the file is very large (tens of hundreds of gigabytes or even larger), it will take a long time to wait until the entire file is uploaded, which is very difficult for real-time processing systems Obviously it can't meet the demand, and when the regular FTP upload encounters a network interruption, it cannot resume the upload from the breakpoint

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
  • A method and system for real-time transmission and processing of large files based on redis
  • A method and system for real-time transmission and processing of large files based on redis
  • A method and system for real-time transmission and processing of large files based on redis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The present invention will be further described below with reference to the accompanying drawings.

[0041] like figure 1 As shown, an embodiment of the present invention provides a method for realizing real-time transmission and processing of large files based on redis, including the steps of uploading large files, detecting redis data updates, data sorting and processing, and monitoring file transmission status. details as follows:

[0042] Step 1, uploading large files: the sending unit detects the list of files to be transmitted in the local directory, and after detecting the files, virtual paging the files, wherein the paging size is determined according to the actual network bandwidth;

[0043] The sending unit reads the content of the specified page in a memory offset manner through multi-threading + multi-process and sends it to the redis server for storage, so as to maximize the transmission efficiency;

[0044] The sending unit allocates resource usage betwe...

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 invention relates to the field of computer technology, and discloses a method and system for real-time transmission and processing of large files based on redis. The method in the present invention mainly includes: the sending unit detects the file list to be processed in the local directory, and when a large file is detected, the file is virtual-paged, the sending unit assigns each thread unit to upload tasks, and reads the content of the specified page and sends it to the redis server Store; the receiving unit detects whether there is an update in the first ordered set of the list of large file names in the redis server, and if there is an update, then detects the newly added page in the second ordered set as the content of each page of the large file, and puts the new The content of the added page is put into the cache queue; the data in the cache queue is obtained and processed in real time until the data in the cache queue is processed; the entire file transmission status is monitored, and if the transmission status is abnormal, retransmission is performed. The method and system provided by the invention can realize real-time transmission of large files and real-time processing.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for realizing real-time transmission and processing of large files based on redis. Background technique [0002] There are two main methods of traditional cross-network file processing: First, use the shared network method, directly write large files into the shared directory, and both the sender and the receiver can access through the shared method, but this method has low security; Second, use the FTP method , upload the large file to the FTP server through FTP, and the receiving end determines whether there is a new file by periodically detecting the FTP directory, and detects whether the file is uploaded. The security of this method is better than that of the first method, but the processing time is relatively low, especially when the file is very large (tens of hundreds of gigabytes or even larger), it takes a long time to wait until the entire file upl...

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/06H04L67/1001H04L67/01
CPCH04L67/06H04L67/1001H04L67/01
Inventor 顾鹏王碧垚张瑞刘湘德杨玲
Owner SOUTHWEST CHINA RES INST OF ELECTRONICS EQUIP
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