Question

Performance issue with Spaces secure urls

Greetings,

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.

alexdo
Site Moderator
Site Moderator badge
January 18, 2024

Heya,

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?

https://github.com/aws-amplify/aws-sdk-ios/issues/1691

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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

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.