I’m trying to do a home grown load balancing solution that needs to
determine which of the two data centers a visitor should be sent to.
I’d like to do some type of a network proximity calculation that
includes latency and number of hops which will allow me to redirect the
user to their “closest/fastest” server.
I know all about CDNs and Appliance Load Balancers (F5); I’m looking for
a custom software solution instead.
On Thu, Nov 20, 2008 at 11:00 PM, Grayson P. [email protected] wrote:
I’m trying to do a home grown load balancing solution that needs to
determine which of the two data centers a visitor should be sent to.
I’d like to do some type of a network proximity calculation that
includes latency and number of hops which will allow me to redirect the
user to their “closest/fastest” server.
I know all about CDNs and Appliance Load Balancers (F5); I’m looking for
a custom software solution instead.
Depending on how much time you can burn up front, one option may be to
query the user’s IP address via a geo-ip-location; perhaps cache the
result based on either the user’s full IP address or class C subnet to
reduce the external API calls. Maybe traceroute and/or ping from each
data center and geo-locate, caching all the results?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.