Should I use CloudFlare Load Balancer or DigitalOcean Load Balancer?

May 21, 2018 254 views
Load Balancing
calza
By:
calza

Is it better for the load balancer to be next to droplets in DigitalOcean or to CloudFlare (which manages the DNS of my domain)?

2 Answers
ryanpq MOD May 21, 2018
Accepted Answer

These two products provide some differing features:

DO Load Balancer:

  • Allows you to balance requests between multiple droplets
  • All traffic between the load balancer and your droplets is done over the private network where traffic is unmetered
  • Provides a fixed $20/month cost
  • Built in SSL (LetsEncrypt)
  • Does not include a CDN (site is available from a single region)

CloudFlare:

  • Provides a CDN (site is available from multiple regions)
  • Balances load between servers over the public network
  • Built in SSL
  • Bills separately from your droplets based on features and # of DNS requests.

Both services provide good features for their price points so you will want to decide which way to go based on which features are most important for your use case.

  • Interesting @ryanpq

    In my use case, I really need a CDN. My audience is in Brazil and DigitalOcean has no servers around here yet.

    If I choose DigitalOcean Load Balancer, can I still use the CloudFlare CDN? In this case, maybe I need to disable built in SSL (LetsEncrypt) to use CloudFlare as CDN, is it possible here in DO?

    • Any luck with your last question @calza ?
      Really looking for an answer to this as well... I'm trying to connect Cloudflare to DO load balancer and it doesn't work. CloudFlare gives bad gateway 502.

      Any thoughts?

You may also want to consider AWS Load Balancers. They have a free tier. (http://aws.amazon.com)

Have another answer? Share your knowledge.