Performance issue with Spaces secure urls


We are currently using DigitalOcean spaces to provide secure access to files for our customers using presigned urls

This works well, however we have cases where we need to generate hundreds of these URLs. The process of generating all of these URLs using amazon S3 SDK is computationally slow so we need to find a way to speed it up. In case it is helpful, it may be worth understanding that all the files will be in the same bucket, and we need to grant access to all of the files.

My understanding is that Amazon addresses this need with a couple of approaches: Signed url via custom policy, as well as signed cookies.

Are there any suggestions for how to do this in a performant way using digital ocean spaces?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
January 18, 2024


Looking at the performance optimisations, I can see that caching credentials was mentioned as possible solution to speed up the process. Also in which region is the bucket located? Have you tried using bucket in different location?

Hope that this helps!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel