Report this

What is the reason for this report?

Serving lots of small photos (50kb or smaller). Should I use Spaces?

Posted on November 3, 2018

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.