Always-on File Transfers
Edge-Initiated or Server-Initiated Upload
As shown in the illustration, while setting up File Transfer (step no. 4 in the image), the following activities are performed:
• Notify Edge about start of transfer.
• Get Edge transfer settings.
• Get file information.
• Get checksum information from Edge including supported algorithms.
Server-Initiated Download
As shown in the illustration, while setting up File Transfer (step no. 4 in the image), the following activities are performed:
• Notify start of file transfer.
• Fetch transfer settings.
• Fetch file information.
• Fetch checksum algorithms details.
Best Practices
• File Repository Considerations—The ThingWorx Platform supports concurrent reading and writing of files in File Repositories. To prevent data corruption and ensure consistency, the Platform has to acquire locks on files and directories for the duration of read/write operations. Avoiding writing to the same directory, or files concurrently, allows more concurrency and increases the throughput of file operations.