we have family plans!
Making uploads faster
May 28, 2022

We have shipped an improvement to make your uploads faster ⚡️

How uploads happened before

When uploading a file, we fetched a list of URLs from the server to PUT files to. Then, the encrypted files / file parts were uploaded to those URLs, that are hosted on storage servers located in Europe.

We noticed that this could be improved by proxying data through Cloudflare Workers that are deployed across the world, there by ensuring proximity to our customers. There was also the added advantage of Cloudflare's great network speeds.

How uploads happen now

Now, we upload the same encrypted file / file parts to the Cloudflare Worker rather than directly uploading to our servers in Europe. The Worker then uploads these to our servers.

Even though this has increased the complexity of uploads on the backend, this has made our uploads faster due to the Workers being closer and having greater network speeds. This gain is even more pronounced for large multi-part uploads.

We got the following results from a sample test using the same set of files:

File SizeBeforeAfterImprovement
2.60 MB5.379 seconds4.119 seconds23.42%
2.75 MB4.345 seconds5.6 seconds28.88%
3.38 MB8.136 seconds8.174 seconds0.46%
23.60 MB23.159 seconds21.168 seconds8.60%
141.70 MB119.21 seconds82.018 seconds31.20%
354.40 MB306.75 seconds217.76 seconds29.01%

This change is currently live on our web and desktop apps and we will be bringing it to our mobile apps soon. We hope you'll be happy to see faster uploads! 😊


If you'd like to hear more about our performance challenges, follow us on Twitter.

Or if you'd like to hang out with a bunch of engineers building an e2ee photo storage service, come say hello on Discord.

ente - web-app link