This article is part of the series: “Cloud Storage Providers, which one to choose?”.
You can check out the rest of the articles here:
DigitalOcean is one of the last providers that decided to offer a Storage service in the Cloud. However, in contrast with traditional companies like Amazon, Google or Microsoft, they chose to use a completely different approach: You pay for packages of resources and not for the amount of space you use. This new way of pricing set them apart pretty quickly. Let’s see if it’s as compelling as it sounds.
Disclaimer: Prices and features change all the time. Please let me know if there are any mistakes :)
- Excellent documentation. If you are familiar with DigitalOcean, you probably know that the tutorials in the “Community” section are one of the best in the industry
- It’s as “developer-friendly” as Amazon S3. It uses an S3-compatible object storage API, meaning that you can use any Amazon S3 SDK with DigitalOcean Spaces!
- Predictable prices. 5 USD per month for 250 GB of storage and 1TB of outbound transfer each month. Making some calculations, that means 0,020 USD per GB/month, without counting the included outbound transfer. To compare, in AWS you would pay 0,023 USD per GB/month in storage, and 0,09 USD per GB transferred out each month. Meaning that you would have to pay around 90 USD extra just for the 1TB of outbound transfer that it’s included in the DigitalOcean spaces plan each month!
- Simplicity. Only one storage class. That’s it
- Easy to use UI. You can drag-and-drop items to upload them to your space
- Easy to integrate with other DigitalOcean services like Droplets
- As part of the free layer, new users can try the service two months for free
- As far as I know, there’s no paid support in DigitalOcean. This detail might be a bit worrying for big customers who have critical data there and need strict SLAs
- You spend the same amount of money even if you haven’t uploaded any data. Therefore, if you don’t know how much data you want to store or you intend to use just a fraction of the space at your disposal, maybe DigitalOcean Spaces is not the most convenient option for you
- They don’t have as many regions as more sophisticated services like AWS, Google Cloud Storage, and Microsoft Azure. Currently, they only offer the following regions: NYC3 (New York), AMS3 (Amsterdam), SGP1 (Singapore)
Nice, but why should I use it over the competition?
- If you are a developer and already use DigitalOcean for your projects
- If you have code using the Amazon S3 SDK. You can re-use 99% of it!
- If you would like simplified pricing and don’t mind much the lack of paid support
- If you download your data often, then DigitalOcean Spaces is for you. The first TB of outbound data each month is included in the price.
- How to install the library:
npm install aws-sdk
2. How to Authenticate:
3. How to create a Bucket:
4. How to delete a Bucket:
5. How to upload a file:
6. How to download a file:
7. How to delete a file:
8. How to list all files in a Bucket:
I hope this article is enough to get you up to speed with DigitalOcean Spaces. Let me know if you miss out anything on it!
If you would like to sign up for DigitalOcean and support me at the same time, you can use this link.
Have a nice day!