WebFaction
Community site: login faq

We are a small bootstrapped startup, very low on budget, about to launch a global product: a photo sharing app.

We are thinking now about load balancing and scaling. We are particular about giving best experience, should be low on latency, nearest server is reached for every request.

I'm looking to make a small infrastructure like setup within webfaction, buying multiple accounts in multiple regions for managing load balancing and delivering static content. We will run our DB servers on dedicated boxes but multiple app servers with webfaction.

My concern:

  • Is it possible to run multiple instances of my app, in multiple regions( Singapore, US and Europe) within webfaction?
  • Does the DNS based load balancing work fine with webfaction for the above case?

Thanks.

asked 04 Apr '13, 05:22

Prajwal
10622130
accept rate: 33%


Is it possible to run multiple instances of my app, in multiple regions( Singapore, US and Europe) within webfaction?

Yes, see Using Multiple Servers in our documentation for some basic info on this subject.

Does the DNS based load balancing work fine with webfaction for the above case?

The round-robin DNS that our setup provides will not get you geographically-based balancing. To do that, you'll need to build your own proxy that geolocates your visitors and sends them to the correct server. There's an example of how to do this with Nginx here: NginX: Load Balancing, Failover, and Geo Location (Part 3)

If they fit your use case, a couple of simpler options might be:

  • Use a CDN like CloudFlare to cache your site and serve it from geographically-close servers.
  • Simply have your visitors specify their region, and direct them to a geographically-specific subdomain, eg us.domain.com, eu.domain.com, etc.

Hope that helps!

permanent link

answered 04 Apr '13, 10:21

seanf
12.2k42136
accept rate: 37%

Thanks. I will get back, if I need more clarity.

(10 Apr '13, 07:39) Prajwal
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×125
×113
×6

question asked: 04 Apr '13, 05:22

question was seen: 3,927 times

last updated: 10 Apr '13, 07:39

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM