# How is performance when using S3 bucket as primary or external storage?

**URL:** <https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518>\
**Category:** 🏷️ General\
**Tags:** external\_storage, s3\
**Created:** [August 11, 2020, 8:35pm UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518 "2020-08-11T20:35:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloudnextuser](https://help.nextcloud.com/letter_avatar/cloudnextuser/32/6_22734026db12803ebb3e059622ac3534.png) [@cloudnextuser](https://help.nextcloud.com/u/cloudnextuser)\
**Post date:** [August 11, 2020, 8:35pm UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518/1 "2020-08-11T20:35:02Z")

</div>

I’m curious how performance is for other people when using Amazon s3 as either primary or external storage? With or without encryption?

I set up external storage with an S3 bucket but it seems extremely slow to view files in Nextcloud and some image will not open (they only give the option to download). Some of this slowness is probably due to using server side encryption though.

---

<div class="post-metadata">

**Author:** ![Paradox551](https://help.nextcloud.com/user_avatar/help.nextcloud.com/paradox551/32/66929_2.png) [@Paradox551](https://help.nextcloud.com/u/Paradox551)\
**Post date:** [August 11, 2020, 9:01pm UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518/2 "2020-08-11T21:01:00Z")

</div>

Poor. With a in-house S3 as primary even on a internal 40Gbps LAN network it takes forever to load the initial pages. If you are using something like http caching then subsequent page loads can be fast.

Where S3 shines is if you have millions/billions of files. Indexless buckets are also a thing.

Whether nextcloud works properly on an indexless bucket is another matter.

---

<div class="post-metadata">

**Author:** ![matthieu1](https://help.nextcloud.com/letter_avatar/matthieu1/32/6_22734026db12803ebb3e059622ac3534.png) [@matthieu1](https://help.nextcloud.com/u/matthieu1)\
**Post date:** [August 11, 2020, 9:15pm UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518/3 "2020-08-11T21:15:58Z")

</div>

I’m using Wasabi with my server stored on an external VPS and it definitely exceeds any of my download or upload speed. If you are used to local Ethernet Gigabit connections I suppose it must be frustrating.

---

<div class="post-metadata">

**Author:** ![cloudnextuser](https://help.nextcloud.com/letter_avatar/cloudnextuser/32/6_22734026db12803ebb3e059622ac3534.png) [@cloudnextuser](https://help.nextcloud.com/u/cloudnextuser)\
**Post date:** [August 11, 2020, 11:19pm UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518/4 "2020-08-11T23:19:20Z")

</div>

Yeah I have my Next Cloud on a digitial ocean droplet and Amazon s3 as external storage, I understand there will be some latency but it really slow in its current state.

Are you using server side encryption? Obviously that adds a lot of overhead on the CPU decrypting the files.

---

<div class="post-metadata">

**Author:** ![matthieu1](https://help.nextcloud.com/letter_avatar/matthieu1/32/6_22734026db12803ebb3e059622ac3534.png) [@matthieu1](https://help.nextcloud.com/u/matthieu1)\
**Post date:** [August 12, 2020, 8:23am UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518/5 "2020-08-12T08:23:09Z")

</div>

> [@cloudnextuser](#):
>
> adds

No I don’t use encryption, but then if server encryption is making it slow, the problem isn’t wasabi seeing as the encryption is happening on the machine. Apart if your issue is latency to wasabi not bandwidth

---

<div class="post-metadata">

**Author:** ![Reiner\_Nippes](https://help.nextcloud.com/user_avatar/help.nextcloud.com/reiner_nippes/32/9479_2.png) [@Reiner\_Nippes](https://help.nextcloud.com/u/Reiner_Nippes)\
**Post date:** [August 12, 2020, 10:44am UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518/6 "2020-08-12T10:44:19Z")

</div>

for those who didn’t see this discussion:

> [@High AWS S3 costs due to Nextcloud requests](https://help.nextcloud.com/t/high-aws-s3-costs-due-to-nextcloud-requests/68687):
>
> Hi! We started running Nextcloud App as a prebuilt-docker image in Univention Corporate Server. External (not primary) Storage for everything is AWS S3 and we have about 180 GB in our buckets. There are only less than 10 users, all using the Windows client or the web login. Files are not changed in the buckets externally, only by Nextcloud. We received the AWS bill for last month and it says: “Amazon Simple Storage Service EUC1-Requests-Tier1” ($0.0054 per 1,000 PUT, COPY, POST, or LIST requ…

---

<div class="post-metadata">

**Author:** ![cloudnextuser](https://help.nextcloud.com/letter_avatar/cloudnextuser/32/6_22734026db12803ebb3e059622ac3534.png) [@cloudnextuser](https://help.nextcloud.com/u/cloudnextuser)\
**Post date:** [August 12, 2020, 12:03pm UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518/7 "2020-08-12T12:03:40Z")

</div>

Oh wow… I did go through the 20,000 free requests in one day but I figured some of that was copying all of the files up.

---

<div class="post-metadata">

**Author:** ![cloudnextuser](https://help.nextcloud.com/letter_avatar/cloudnextuser/32/6_22734026db12803ebb3e059622ac3534.png) [@cloudnextuser](https://help.nextcloud.com/u/cloudnextuser)\
**Post date:** [August 12, 2020, 12:06pm UTC](https://help.nextcloud.com/t/how-is-performance-when-using-s3-bucket-as-primary-or-external-storage/89518/8 "2020-08-12T12:06:12Z")

</div>

Well I meant latency due to the fact that whenever you try to access a file on your next cloud that is stored on s3, your NextCloud server has to request it from s3 before it can return it to your client.
