Bartvandee
Bartvandee

Reputation: 289

On IIS vm use localhost or public domain name

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

Answers (1)

Jalpa Panchal
Jalpa Panchal

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

Related Questions