Situation is this.  Have an architecture with multiple coldfusion
servers geographically separated.   Trying to find a way for a user to
determine which server would be the best for them to use based on
speed.

Was thinking of something along the lines of this.  Although the speed
here is based on the time it is processed on the server rather than
the time it actually hits the client.

Sure this is something dumb, it just isn't clicking right now.  Any
help would be appreciated.

<cfset sites="Server1, Server2, Server3">
<cfloop list="#sites#" delimeters="," index="i">
  <cfset st = getTickCount()>
  <cfhttp url="http://#i#/speedcheck.html";>
  <cfset et = getTickCount()>
  <cfset tottime = et - st>
  Time to site (#i#) is : #tottime# ms
</cfloop>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322948
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to