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!!
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!!