latency when using domain name instead of IP

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
ChaseDoggy
Posts: 8
Joined: 20 Jun 2007, 16:11

latency when using domain name instead of IP

Post by ChaseDoggy »

Hey,

I looked through the forums and didn't find anything regarding this...

I plan on using multiple instances and servers with SF Pro 1.5.x and am finding that when I configure an instance with an IP in the config.xml and in my .html file it responds about 40 - 60 seconds faster than if I use a domain name eg. play.domainname.com . They both work, it's just that I find severe latency when using a domain name. Is there something that I'm missing or any suggestions?

I'm using Linux (CentOS 5)
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Is just depends on the DNS query response.
Each time a client application (a browser, the flash player etc...) needs to connect to a certain domain it can do it in 2 different ways: numeric IP or domain name.

If you use the former the OS will perform a DNS query to retrieve the IP address of the requested domain. This of course will add some lag as you send a request to the DNS and wait a response from it.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply