-
Hi,
Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Drive.exists() is slow with S3 because in there you have a lot of network latency. When you deploy your server next to AWS S3 bucket server it will be relatively fast (some ms or some tens of ms), but the further you get the slower it will be. You can store file existance in Redis, or local RAM or DB, wherever is more fitting for you. Perhaps even "cache" the image to server local after first load from S3 or something? 🤔 |
Beta Was this translation helpful? Give feedback.
Drive.exists() is slow with S3 because in there you have a lot of network latency. When you deploy your server next to AWS S3 bucket server it will be relatively fast (some ms or some tens of ms), but the further you get the slower it will be.
You can store file existance in Redis, or local RAM or DB, wherever is more fitting for you. Perhaps even "cache" the image to server local after first load from S3 or something? 🤔