Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for efficiently reading large number of small files in ftp service scene

A technology of ftp server and small files, which is applied in the field of cross-network service exchange, can solve problems such as incompatibility with various ftp services, no way to obtain time stamps, untimely file processing, etc., and achieve high real-time performance and strong real-time performance , the effect of improving efficiency

Pending Publication Date: 2021-04-30
GUANGZHOU KINGYEA SOFTWARE TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The first method: through the ftp protocol, use the MLST command to poll to obtain the file list information. The information includes a file modification time in standard UTC format. The application can use this time to judge whether the time interval before and after the time is the same to judge whether the file is written (write can be judged as complete), the reason for the inefficiency of this method is that it needs to judge the time before and after multiple times
And the MLST command is not supported by all ftp services, and the commonly used vsftp in the industry does not support it
[0004] The second method: through the ftp protocol, use the LIST command to poll to obtain the file list information. Since the timestamp attribute of the returned file is based on the time zone of the server, it makes many differences when FTP synchronizes directories and files, because there is no way to obtain The timestamp of the current file on the server, so it can only be used to record the size of the file within a period of time, and judge the integrity of the file based on the fact that it will not change within a period of time. This method is inefficient
[0005] However, at present, the ftp protocol + polling method is used to judge, and the ftp protocol will cause a lot of network interaction, which is affected by network factors and has a large performance loss.
Use the polling method to discover files and judge files, causing most files to be processed untimely
There are limitations in using the MLST command, this method is not well compatible with various ftp services

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 for efficiently reading large number of small files in ftp service scene

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0021] In the embodiment of the present invention, a method for efficiently reading a large number of small files in an ftp service scenario is implemented using the java programming language, and the implementation process is as follows:

[0022] The first step is interactive localization. Without changing the parameters input by the front end, the input parameter obtained by the method is the url of the ftp protocol. The strategy pattern in the applicable de...

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 discloses a method for efficiently reading a large number of small files in an ftp service scene, which comprises interaction localization and local file monitoring, and is characterized in that under the condition that parameters input by a front end are not changed, an input parameter obtained by the method is url of an ftp protocol, and the method is suitable for adapting strategy modes in a design mode to various ftp servers; the method aims at improving the monitoring logic efficiency of a large number of small files which are frequently created and improving the performance of cross-network service exchange.

Description

technical field [0001] The invention relates to the field of cross-network service exchange, in particular to a method for efficiently reading a large number of small files in an ftp service scene. Background technique [0002] The inter-network service exchange scenario needs to generate a large number of small files, which are exchanged to the peer network with the help of the file ferry function of the one-way optical gate, and then processed. At present, software applications mostly adopt two methods for file monitoring. [0003] The first method: through the ftp protocol, use the MLST command to poll to obtain the file list information. The information includes a file modification time in standard UTC format. The application can use this time to judge whether the time interval before and after the time is the same to judge whether the file is written (write can be judged as complete), the reason for the low efficiency of this method is that it needs to judge the time b...

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
IPC IPC(8): G06F16/17G06F16/13H04L29/06
CPCG06F16/1734G06F16/13H04L69/22
Inventor 张天际李继征陈康先陈伟健
Owner GUANGZHOU KINGYEA SOFTWARE TECH CO LTD