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
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2022-06-07
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
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...
Examples
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...