Reducing Your Database Hosting Costs: DigitalOcean vs. AWS vs. Azure
Tags: mongodb, aws, azure, digitalocean
Published: 2020-04-28 19:12:53

---
title: Reducing Your Database Hosting Costs: DigitalOcean vs. AWS vs. Azure
published: true
description: Compare three of the most popular cloud providers, AWS vs. Azure vs DigitalOcean database hosting costs for your MongoDB® app - ScaleGrid blog
tags: MongoDB, AWS, Azure, DigitalOcean
---
<link rel="canonical" href="https://scalegrid.io/blog/reducing-your-database-hosting-costs-digitalocean-vs-aws-vs-azure/" />
<p style="text-align: justify;"><a href="https://scalegrid.io/blog/reducing-your-database-hosting-costs-digitalocean-vs-aws-vs-azure/"><img class="alignnone size-full wp-image-5273" src="https://scalegrid.io/blog/wp-content/uploads/2020/04/Reducing-Your-Database-Hosting-Costs-DigitalOcean-vs-AWS-vs-Azure-ScaleGrid-Blog.jpg" alt="Reducing Your Database Hosting Costs: DigitalOcean vs. AWS vs. Azure" width="100%" height="auto" /></a></p>

<p style="text-align: justify;">If you’re hosting your databases in the cloud, choosing the right cloud service provider is a significant decision to make for your long-term hosting costs. This is especially apparent in today's world where organizations are doing whatever they can to optimize and reduce their costs. Over the last few weeks, we have been inundated with requests from SMB customers looking to improve the ROI on their database hosting. In this article, we are going to compare three of the most popular cloud providers, <a style="color: #2da964;" href="https://scalegrid.io/blog/reducing-your-database-hosting-costs-digitalocean-vs-aws-vs-azure/" target="_blank">AWS vs. Azure vs. DigitalOcean</a> for their database hosting costs for <a style="color: #2da964;" href="https://scalegrid.io/mongodb.html" target="_blank">MongoDB® database</a> to help you decide which cloud is best for your business.</p>

<h2 style="padding-top: 15px;">Comparing Cloud Instance Costs</h2>
<p style="text-align: justify; padding-bottom: 10px;">So, which cloud provider provides the most cost-effective solution for database hosting? We compare AWS vs. Azure vs. DigitalOcean using the below instance types:</p>

<table style="background: #def5fe;" width="100%">
<tbody>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 20px 15px;"><b>AWS</b></td>
<td style="padding: 20px 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://aws.amazon.com/ec2/pricing/on-demand/" target="_blank" rel="nofollow">EC2 instances</a></td>
</tr>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 20px 15px;"><b>Azure</b></td>
<td style="padding: 20px 15px; ; border-left: 2px solid white;"><a style="color: #2da964;" href="https://azure.microsoft.com/en-us/pricing/details/virtual-machines/linux/" target="_blank" rel="nofollow">VM instances</a></td>
</tr>
<tr>
<td style="padding: 20px 15px;"><b>DigitalOcean</b></td>
<td style="padding: 20px 15px; ; border-left: 2px solid white;"><a style="color: #2da964;" href="https://www.digitalocean.com/pricing/" target="_blank" rel="nofollow">Droplets</a></td>
</tr>
</tbody>
</table>
&nbsp;
<p style="text-align: justify;">Since database hosting is more dependent on memory (RAM) than storage, we are going to compare various instance sizes ranging from just 1GB of RAM up to 64GB of RAM so you can see how costs vary across different application workloads.</p>
<p style="text-align: justify; padding-bottom: 10px;">Let’s take a look at the monthly cost (720 hours) of database hosting for standalone, on-demand, <a style="color: #2da964;" href="https://scalegrid.io/pricing.html#section_pricing_dedicated" target="_blank">dedicated instances</a> on AWS, Azure and DigitalOcean. As you can see from the graph below, DigitalOcean database hosting provides significant cost-savings over both AWS and Azure. Additionally, their Droplet pricing is extremely simple and easy to understand - $5/GB.</p>
<p style="text-align: justify;"><a href="https://scalegrid.io/blog/reducing-your-database-hosting-costs-digitalocean-vs-aws-vs-azure/#costs"><img class="alignnone size-full wp-image-5273" src="https://scalegrid.io/blog/wp-content/uploads/2020/04/Monthly-Database-Hosting-Costs-AWS-vs-Azure-vs-DigitalOcean.png" alt="Monthly Database Hosting Costs: AWS vs. Azure vs. DigitalOcean - ScaleGrid Blog" width="100%" height="auto" /></a></p>
<p style="text-align: justify;">As you can see from the above chart, on average, DigitalOcean instance costs are over 28% less expensive than AWS and over 26% less than Azure.</p>

<h2 style="padding-top: 15px;">Comparing ScaleGrid Database Hosting Costs: AWS vs. Azure vs. DigitalOcean</h2>
<p style="text-align: justify; padding-bottom: 10px;">As mentioned above, the reason we decided to write this article is because of a recent increase in questions from customers on how they can reduce their database hosting costs, so we wanted to make sure to compare the costs of our fully managed DBaaS solution across cloud providers as well. Here are the configurations for this comparison:</p>

<table style="background: #def5fe;" width="100%">
<tbody>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 20px 15px;"><b>Plan</b></td>
<td style="padding: 20px 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html#section_pricing_dedicated" target="_blank">Dedicated Hosting</a></td>
</tr>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 20px 15px;"><b>Database</b></td>
<td style="padding: 20px 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/mongodb.html" target="_blank">MongoDB® Database</a></td>
</tr>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 20px 15px;"><b>Replication Strategy</b></td>
<td style="padding: 20px 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_digital_ocean&amp;replica=deployment_mongodb_2+1&amp;instance=Micro#section_pricing_dedicated" target="_blank">2 Replicas + Arbiter</a></td>
</tr>
</tbody>
</table>
<p style="text-align: justify; padding-top: 10px;">Our Dedicated Hosting plans are all-inclusive, including all machine, disk, and network costs, as well as 24/7 support. These plans are fully managed for you across any of these cloud providers, and comes with a comprehensive console to automate all of your database management, monitoring and maintenance tasks in the cloud.</p>
<p style="text-align: justify; padding-bottom: 10px;">Let’s take a look at how ScaleGrid Dedicated Hosting pricing compares across AWS vs. Azure vs. DigitalOcean:</p>

<table style="background: #def5fe;" width="100%">
<tbody>
<tr style="border-bottom: 2px solid white;">
<th style="padding: 20px 15px;" width="40%"><b>ScaleGrid Dedicated Plans</b></th>
<th style="padding: 20px 15px; border-left: 2px solid white;" width="20%"><b>AWS</b></th>
<th style="padding: 20px 15px; border-left: 2px solid white;" width="20%"><b>Azure</b></th>
<th style="padding: 20px 15px; border-left: 2px solid white;" width="20%"><b>DigitalOcean</b></th>
</tr>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 15px;">2GB</td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_aws_standard&amp;replica=deployment_mongodb_2+1&amp;instance=Small#section_pricing_dedicated" target="_blank">$190</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_azure&amp;replica=deployment_mongodb_2+1&amp;instance=Small#section_pricing_dedicated" target="_blank">$187</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_digital_ocean&amp;replica=deployment_mongodb_2+1&amp;instance=Micro#section_pricing_dedicated" target="_blank">$104</a></td>
</tr>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 15px;">4GB</td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_aws_standard&amp;replica=deployment_mongodb_2+1&amp;instance=Medium#section_pricing_dedicated" target="_blank">$330</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_azure&amp;replica=deployment_mongodb_2+1&amp;instance=Medium#section_pricing_dedicated" target="_blank">$374</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_digital_ocean&amp;replica=deployment_mongodb_2+1&amp;instance=Small#section_pricing_dedicated" target="_blank">$140</a></td>
</tr>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 15px;">8GB</td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_aws_standard&amp;replica=deployment_mongodb_2+1&amp;instance=Large#section_pricing_dedicated" target="_blank">$657</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_azure&amp;replica=deployment_mongodb_2+1&amp;instance=Large#section_pricing_dedicated" target="_blank">$750</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_digital_ocean&amp;replica=deployment_mongodb_2+1&amp;instance=Medium#section_pricing_dedicated" target="_blank">$300</a></td>
</tr>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 15px;">16GB</td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_aws_standard&amp;replica=deployment_mongodb_2+1&amp;instance=XLarge#section_pricing_dedicated" target="_blank">$1,164</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_azure&amp;replica=deployment_mongodb_2+1&amp;instance=XLarge#section_pricing_dedicated" target="_blank">$1,250</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_digital_ocean&amp;replica=deployment_mongodb_2+1&amp;instance=Large#section_pricing_dedicated" target="_blank">$500</a></td>
</tr>
<tr style="border-bottom: 2px solid white;">
<td style="padding: 15px;">32GB</td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_aws_standard&amp;replica=deployment_mongodb_2+1&amp;instance=X2XLarge#section_pricing_dedicated" target="_blank">$1,912</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_azure&amp;replica=deployment_mongodb_2+1&amp;instance=X2XLarge#section_pricing_dedicated" target="_blank">$2,025</a></td>
<td style="padding: 15px; border-left: 2px solid white;"><a style="color: #2da964;" href="https://scalegrid.io/pricing.html?db=MONGODB&amp;cloud=cloud_digital_ocean&amp;replica=deployment_mongodb_2+1&amp;instance=XLarge#section_pricing_dedicated" target="_blank">$800</a></td>
</tr>
</tbody>
</table>
&nbsp;
<h3 style="padding-top: 15px;">How much can you save migrating to DigitalOcean?</h3>
<p style="text-align: justify; padding-bottom: 10px;">So, are you’re deploying MongoDB® database on <a style="color: #2da964;" href="https://scalegrid.io/mongodb/aws.html" target="_blank">AWS</a> or <a style="color: #2da964;" href="https://scalegrid.io/mongodb/azure.html" target="_blank">Azure</a>, and wondering how you can lower your database hosting costs? Let’s see how much you can save by migrating your hosting for <a style="color: #2da964;" href="https://scalegrid.io/mongodb/digitalocean.html" target="_blank">MongoDB® database to DigitalOcean</a>:</p>
<p style="text-align: justify;"><a href="https://scalegrid.io/blog/reducing-your-database-hosting-costs-digitalocean-vs-aws-vs-azure/#savings"><img class="alignnone size-full wp-image-5274" src="https://scalegrid.io/blog/wp-content/uploads/2020/04/DigitalOcean-Cost-Savings-vs-AWS-and-Azure-Database-Hosting-at-ScaleGrid.png" alt="DigitalOcean Savings Over AWS and Azure for Database Hosting at ScaleGrid" width="100%" height="auto" /></a></p>
<p style="text-align: justify;">ScaleGrid’s Dedicated Hosting service with 2 Replicas + Arbiter for MongoDB® database on DigitalOcean saves you on average 122% on your monthly AWS hosting costs, and 140% on your monthly Azure hosting costs. The above chart outlines the cost savings across different plans, and ranges from around 80% cost-savings for 2GB of RAM, up to 153% cost-savings in our 32GB of RAM plan size.</p>

<h2 style="padding-top: 15px;">DigitalOcean Advantages</h2>
<p style="text-align: justify;">DigitalOcean provides many advantages for database hosting, and you can learn more about them in our <a style="color: #2da964;" href="https://scalegrid.io/blog/the-best-way-to-host-mongodb-on-digitalocean/" target="_blank">The Best Way to Host MongoDB on DigitalOcean</a> blog post. Here’s a quick overview of the key advantages:</p>

<ul>
	<li>Developer-friendly</li>
	<li>Simple pricing</li>
	<li>SSD-based VMs</li>
	<li>High performance</li>
</ul>
<h2 style="padding-top: 15px;">DigitalOcean Hosting FAQs</h2>
<h3 style="padding-top: 15px;">Is my database cluster still highly available?</h3>
<p style="text-align: justify;">Yes. All of our high availability options are offered in DigitalOcean, including 2 Replicas + 1 Arbiter, 3 Replicas and custom replica set setups. DigitalOcean does not have the concept of availability zones (AZ), so we distribute the nodes across <a style="color: #2da964;" title="MongoDB DigitalOcean Regions - ScaleGrid" href="https://help.scalegrid.io/docs/mongodb-data-centers#digitalocean-data-centers" target="_blank">different regions</a>. For example, in the US, we distribute nodes across New York 3, New York 2 and New York 1.</p>

<h3 style="padding-top: 15px;">Does it affect latency?</h3>
<p style="text-align: justify;">Yes, you can see an increase in latency. Ideally, we would want to see both the application and the database in the same datacenter. So, if you're hosting your application in AWS or Azure and move your database to DigitalOcean, you will see an increase in latency. However, the average latencies between AWS US-East and the DigitalOcean New York datacenter locations are typically only 17.4 ms round trip time.</p>

<h3 style="padding-top: 15px;">How can I migrate?</h3>
<p style="text-align: justify; padding-bottom: 20px;">ScaleGrid provides an Import wizard to <a style="color: #2da964;" href="https://help.scalegrid.io/docs/mongodb-migrations-between-plans" target="_blank">migrate data from one cluster to another.</a> If you have any special needs for your migration, please contact <a style="color: #2da964;" href="mailto:support@scalegrid.io" target="_blank">support@scalegrid.io</a>.</p>