I have a web application that allows users to upload files. My application does processing on these files (parsing, modifying metadata, etc). What approach should I follow?
- Should I save the files locally in the web server until they are processed and finally upload them to S3 and delete them from local webserver?
- Or should I upload the files to S3 from the very beginning and read the file from S3 (for processing), copy it locally (for modifying metadata), overwriting it on S3, and deleting it locally again?