ASP.NET vs console web service clients

L

lyl209

Hi -

I have 1 console application and 1 web application. Both talk to a web
service and I also have some timing code in it. They have the same WSDL
and generate the same MyService.cs.

* Question 1:
For console application, I can see the first request takes 1.6 seconds
to get response, and after that it's about 0.1 or less per request.

But for web application, there is no first peak. Is it because asp.net
initializes anything??


* Question 2:
I then try to do the request async. With asp.net it's not too hard.

For console application it's a bit faster then to do it sync.

But for web application, do it async is significant faster!!
Does anyone know why? Why the same code behaves differently between
console and web apps?


Thanks!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top