By Bungol
I have a real estate app and I need to build a storage system for listing photos.
These listing photos will be relatively small. Either full-size (50-70 kb) or thumbnails (10-25 kb).
I’m a big fan of DigitalOcean and I would like to use Spaces. However my research is telling me that Spaces is not equipped to deal with a situation like mine?
Reading the docs, it seems that Spaces should be used for file sizes between 20MB - 200MB, not the 50kb photos I will be serving.
Reading this post, some users are noticing 20 second GET times for small files? That will be very bad for user experience if users had to wait 20 seconds to get a small photo.
Does my situation mean I should not use Spaces, or I should not use object storage in general?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
One of the links got updated and it will forward to a 404 page so I’ll link the substitute link on case someone wants to check it
https://docs.digitalocean.com/products/spaces/concepts/best-practices/
We recommend to avoid small files and use Multi-Part uploads for large files. Spaces is designed for storing and serving moderate to large files. Files 20 MB to 200 MB in size will give the best performance for both writes and reads. Additionally, combining small files into one larger file will greatly reduce the overall number of requests to your Space compared to handling many small files individually.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.