Why it takes so long time to access WcfPortal.svc when Silverlight app first time loaded?

Why it takes so long time to access WcfPortal.svc when Silverlight app first time loaded?

Old forum URL: forums.lhotka.net/forums/t/10143.aspx


ddredstar posted on Wednesday, March 09, 2011

It takes nearly 900ms to post WcfPortal.svc when Silverlight app first time laoded, is that normal? or i did something not correct?

RockfordLhotka replied on Wednesday, March 09, 2011

That is hard to answer, because there are many things that could be happening.

Is this the first time you have hit IIS on that server? ASP.NET or WCF on that server? This particular virtual root on that server? This WcfPortal.svc URL on this server?

Each of those has some "warm up" time. If the svc file is in a virtual root with web pages and other components, I've seen the warm up time take seconds, not just milliseconds.

Additionally, I have seen DNS issues cause startup lag. The client has to resolve the server address to an IP address, and mis-configured DNS servers can make this very slow.

And, of course, there's general network topology to consider. If the DNS or domain server is in India, and the app server is in the US, and the client is in China, it could take a long time to resolve all the addresses, establish network connections, establish authentication, etc.

Copyright (c) Marimer LLC