Reputation: 289
I have multiple applications running on a iis vm. These applications are publicly available through site.example.com and site2.example.com.
They also connect with each other through a webservice in .net.
Which is better to use Localhost to connect or using the public domain names? Especially looking in performance.
Upvotes: 1
Views: 158
Reputation: 12759
When you use the localhost, the request goes through DNS and using the public domain, the browser will looking for IP address from DNS first this is the main difference.
But talking about the performance improvement localhost will have batter performance compare to the public domain, but for maintenance purposes, it's better to use the public domain.
Upvotes: 1