Goran
Goran

Reputation: 6846

WCF Performance localhost vs domain address

I have a WCF service serving image per request. Accessing the service via localhost is fast but accessing through ip or domain address (as other clients will) is very slow. Images are approximately 1MB in size.

Any thoughts?

Upvotes: 0

Views: 718

Answers (2)

Goran
Goran

Reputation: 6846

Editing hosts file fixed the problem. The solution was to comment out ipv6 definition:

#   ::1             localhost

Upvotes: 1

Scott Fletcher
Scott Fletcher

Reputation: 1487

Data transfer rates at localhost will be crazy-fast compared to transfer rates over the internets. Have you timed the transfers and computed the expected duration per the bandwidth available? A 1MB file download at localhost will happen faster than you can blink, but it will take a few seconds from a low-bandwidth connection (if the endpoint from which you are getting the file is 500Kb/s up).

Here is a bandwidth/transfer time calculator - Hope this helps you narrow down the cause of the problem!

Upvotes: 1

Related Questions