mkrieger
By:
mkrieger

Can I use the DO load balancer solution to route based on region?

April 17, 2017 294 views
Load Balancing

Right now, I'm using nginx to route calls to my API servers based on the region. So, if I have someone calling the API from the EU, it routes the request to the EU servers and if someone calls from the US, it routes to our US servers.

Is there a way to do this with the DO LB solution? I'd sure like to get away from managing our nginx server, if possible.

-Mark

2 Answers

@mkrieger

The DigitalOcean Load Balancers are very basic (as of this response) and only handle the basics, such as Round Robin, Least Connections, and Sticky Sessions (via a Cookie).

They are not yet configurable in a way that routes based on location using GeoIP or similar and there isn't a way to configure them granularly as you would a custom instance.

This may change in the future since they are still relatively new. In the mean time, I'd recommend that you add the suggestion to the box by submitting a post to the feedback community.

That being said, from looking over the community, one of the biggest requests thus far is enabling support for HTTP/2 on the Load Balancers as they are still, from what I can see, using 1/1.1. That's also something you can gain from a custom instance, such as what you've got and will lose if you switch (for now).

https://digitalocean.uservoice.com/forums/136585-digitalocean/suggestions/18267991-support-http-2-on-load-balancers

I would have loved the same. But as you're after it I figured I'd point you to CloudFlare's load balancer which is as they say 'around the corner' and supports this + a lot more:
https://www.cloudflare.com/load-balancing/

Have another answer? Share your knowledge.