G
Guest
I developed a Web Application that has a Web Service component. I also
created a direct API to the second layer of the Web Service without going
through the Http connection to the Web Service. I noticed that if I make the
calls through the direct API (getting about 4KB of data from disk), it will
take between 100-200 ms. However, if I make the calls via the normal
[WebMethod] Http interface, the same calls takes between 500-700 ms. That
seems excessive since the url is localhost.
Since I am using localhost in the url, I would think that the performance
shouldn't be greatly affected by line speed or is the transfer speed limited
by the line speed even though it is internal? Any ideas why there would be
such a great difference in performance between the direct API call and the
http call?
created a direct API to the second layer of the Web Service without going
through the Http connection to the Web Service. I noticed that if I make the
calls through the direct API (getting about 4KB of data from disk), it will
take between 100-200 ms. However, if I make the calls via the normal
[WebMethod] Http interface, the same calls takes between 500-700 ms. That
seems excessive since the url is localhost.
Since I am using localhost in the url, I would think that the performance
shouldn't be greatly affected by line speed or is the transfer speed limited
by the line speed even though it is internal? Any ideas why there would be
such a great difference in performance between the direct API call and the
http call?