When is it useful to use FTP?
Before the invention of SFTP.
Editing address (e.g. a wider question in this question)
It all comes down to the intended use. Look at your situation and determine
- What data am I moving?
- What format is it generated initially? (PDF on disk, text output from web server scripts, etc.)
- How is the data used?
- When is the data consumed? (Instantly, scheduled batch jobs?)
- What communication medium connects the data generator and the data consumer?
For example:
The process creates PDF documents by writing them to a local RAID array. You have another PC designed to print all the PDF files created on many servers connected to the local Gigabit LAN through the cron job, which is scheduled to run at midnight.
Given that the data is likely to be too large for everyone to sit in RAM on the print server, it makes sense to use SFTP to transfer PDF files so that they can be captured from disk as they are printed. A.
Another example:
The machine must capture a large number of small files from the machine in a special way, analyze them and save the results in a database. In this case, using SFTP to move them from disk to another disk, which you need to immediately read and insert into the database, is simply stupid. There is no reason that smaller files do not fit into RAM until they are parsed and run into the database, and therefore SFTP is probably not the best solution.
Dan mcgrath
source share