Skip to content
Discussion options

You must be logged in to vote

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? 🤔

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mathieuh
Comment options

Answer selected by mathieuh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants