i have using multer to upload file in s3 and i have tried three methods to upload a file to s3
- memoryStorage(default)
- *custom S3stroage engine(by directly straming the file from request and uploading to s3)
- Diskstroage(default)
in my case the second approach is good in perfomance wise but i think its not scalable that much.but second method saves lots of time(instead of writing to disk and then streaming from there its much more stright forward).but i dont know what will the cons of this approach.can any one suggest me a good approach.
from good practice to upload file to s3 using nodejs scalability and perfomance should be considered
No comments:
Post a Comment