DEV Community

Cover image for Choosing between Netlify, Vercel and Digital Ocean
Zell Liew 🤗
Zell Liew 🤗

Posted on

Choosing between Netlify, Vercel and Digital Ocean

A while back, I jumped onto the hype train and tried to host Learn JavaScript's marketing page on Netlify — I wanted to join the cool kids. After getting charged for it, I switched to Vercel and I got charged for it (again). I finally went back to good old Digital Ocean.

In this article I want to detail the differences between hosting on Netlify, Vercel, and Digital Ocean, along with what I experienced in the process.

What is Netlify, Vercel, and Digital Ocean?

Netlify and Vercel are serverless platforms. They let you put websites up onto the web without having to fiddle with servers. You can read more about serverless if you're curious about what it is.

Vercel and Netlify have practically no differences between them (as far as I can tell). They're just competitors providing the same thing.

Digital Ocean is a dedicated server. It's harder to set up a site with Digital Ocean compared to Vercel/Netlify since you need more knowledge about Linux and Nginx.

Choosing between these platforms

There are two main factors to consider when choosing between these platforms:

  • Ease of use
  • Pricing.

Ease of Use

Vercel and Netlify are easier for frontend-only projects. You can link to a Github repository and you'll have your website up and ready.

If you need server functionality, you can still use serverless functions via Netlify and Vercel. You have to learn how serverless functions work, but they're still pretty simple compared to Digital Ocean.

Digital Ocean lets you set up a server. It's harder to use because you need to know:

  • A server language (Node, PHP, Ruby, Python, etc)
  • A bit of Linux (Operating system)
  • A bit of Nginx (Server language)
  • How to setup HTTPS

Although Digital Ocean is harder to set up, the rewards can be worth it. (See the pricing section below).

Pricing

Netlify Pricing

Netlify prices according to the amount of bandwidth you use. For example, you get 100GB for free with Netlify.

netlify pricing

100GB seems like a lot, doesn't it?

I thought so too, so I put the Learn JavaScript's marketing site onto Netlify for a test run. This site averaged 5,101 visitors in the month I did the test.

website visitor chart

About a week (or maybe two) later, I suddenly received a $20 bill for exceeding the bandwidth. Another week (or two) later, I got a second $20 bill.

So 100GB is very little after all, since 200 GB only supports approximately 2,700 visitors.

netlify bill

I pulled the plug on Netlify at this point, as I'm paying too much for it. I only pay $10 on Digital Ocean for way more visitors!

Vercel Pricing

Vercel seems to be free forever at first glance. There aren't any limits shown on the pricing page.

vercel pricing

I was skeptical — it seemed too good to be true. But I took my chances and hosted Learn JavaScript's marketing site on Vercel after Netlify.

Some time later, I received an email saying I breached the fair use policy.

vercel email fair usage

I was shocked — I breached a policy?! I always try to abide by the rules and act in good faith. Being told I breached feels VERY uncomfortable.

After asking further, I discovered that Vercel's free tier has a cap at 100GB Bandwidth too. This information is hidden inside a Fair-Use Policy page (not on the pricing page).

At this point, I gave up on serverless architecture completely and went back to good old Digital Ocean.

Digital Ocean Pricing

Digital Ocean's pricing seems complicated at first glance because there are many factors involved.

digital ocean pricing

But it isn't.

For Digital Ocean, you can imagine you're renting a computer and the factors stated are the specs of each computer.

You don't need a super fast computer for servers. The $5 or $10 plan is going to be good enough most of the time.

For example, I'm running the following two sites on one $10 plan, and I don't see any problems with it so far.

  • This website — 103,112 visitors per month
  • Learn JavaScript's marketing site — 5,101 visitors per month

I don't know how much bandwidth I'm using, but that doesn't matter since Digital Ocean doesn't charge according to bandwidth.

Verdict

If you have a small project: Go with netlify.

If you have a larger project: Use Digital Ocean.

I wouldn't choose Vercel anymore because of that dark pattern pricing strategy.

By the way, Use this link to get a free $100 credit if you want to try out Digital Ocean. Happy server(less)-ing!

Update

Jason Lengstorf reached out to me and mentioned he only used 7GB for 32,000 visitors on learnwithjason. We talked a little and we suspect the high amount of bandwidth usage is due to two things:

  1. Learn JavaScript is an extremely asset-heavy site. The main cause may be GIFs on the home page.
  2. I didn't include lazy-loading on the site yet — so this causes unnecessary downloads for people who haven't scrolled down yet.

I'm willing to give Netlify another try now, but I'm still frustrated about the lack of transparency in "bandwidth" and how I wasn't able to debug it on a per page or per resource basis. Jason said he'll raise it internally with the team so that really helps!

I look forward to trying out Netlify again when there's more transparency with bandwidth.


Thanks for reading. This article was originally posted on my blog. Sign up for my newsletter if you want more articles to help you become a better frontend developer.

Top comments (10)

Collapse
 
benbao profile image
Benjamin Bromberg

I think vercels issue is that you're using a hobby account for commercial activity rather than the bandwidth.

If you look at their email it becomes apparent from the question on whether you sell your course.

Tbh I think that's pretty fair that they can't in fact give free resources to for profit enterprises.

Collapse
 
rcoundon profile image
Ross Coundon

There's a very real cost of maintaining a server, patching, securing, ensuring availability if the OS and of nginx, and your own time that is likely to stretch to a lot more in real terms than the cost of Netlify.

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

I've moved all my React frontends to Vercel a couple of months back. It's fast, stable and very easy to use.

100GB free tier is a very generous offer, so I do recommend it for all new projects.

Collapse
 
allanshady profile image
Allan Camilo

I'll always recommend use of CDN like netlify and vercel, since it easy to setup and it is guaranteed that the site will always be available in multiple copies. And each user/visitor will be served the one that is close where is requesting.
As always, unless use the alternatives hosting if you have a strong reason.

Collapse
 
pharod profile image
Igor Romanov

Great article, a summary on the top would make it even better - I had to read through the whole soul searching story to find out Vercel has hidden bandwidth cap :)
I was just about to start using it but changed mind towards DO after reading this - thanks !

Collapse
 
rangercoder99 profile image
RangerCoder99

DigitalOcean is the best option, hosting all my sites there big and small! You can host multiple smaller projects on the same instance! And really this unclear prices on vercels and that email are reasons too never use that service, so sneaky and also feel insulting to boot!

Collapse
 
bayuangora profile image
Bayu Angora

You can host heavy sources externally (CDN) to avoid bloated bandwidth use.

Collapse
 
zedlabs profile image
zohaib

What about cloudflare pages, they seem to have unlimited b/w in the free plan.

Collapse
 
pankajpatel profile image
Pankaj Patel

@zellwk I really liked your style of this article to get the best out of research article, inherent traffic for "learn JS" course and DO.

Good luck

Collapse
 
yoursunny profile image
Junxiao Shi

If you have managing servers anyway, you can get cheaper servers than Digital Ocean.
Nexus Bytes (aff) is $6.40/month for 2GB RAM and 2TB traffic.