T
TomR
We are having problems with synchronus web request calls
blocking our ASP.NET performance. Here is the setup: We
have a php script running on Apache at Site A on the
internet. This script does nothing more than wait 15
seconds before serving a page. (You can try it if you
want. www.337skymaster.com/mypost.php) Using this page,
we can open four IE browsers on the same machine and start
each browser at the same time, and have all four complete
in less than 20 seconds.
If we use an aspx script on Site B with a synchronus
HttpWebRequest call to access Site A (simulating accessing
a bank credit card payyment gateway) and open four
browsers, only two pages get served at a time. The first
two take 15 seconds, the second two take 30 seconds. We
thought maybe this was due to make the reqests from the
same IP address, but we tried the same thing on four
machines with four different IP addresses as clients, and
got the same results (first two transactions take 15
seconds, second two take 30 seconds).
We are trying to build an e-commerce site that might be
processing 50 of these transactions simultaneously. What
might we be doing wrong in our code to cause this behavior?
blocking our ASP.NET performance. Here is the setup: We
have a php script running on Apache at Site A on the
internet. This script does nothing more than wait 15
seconds before serving a page. (You can try it if you
want. www.337skymaster.com/mypost.php) Using this page,
we can open four IE browsers on the same machine and start
each browser at the same time, and have all four complete
in less than 20 seconds.
If we use an aspx script on Site B with a synchronus
HttpWebRequest call to access Site A (simulating accessing
a bank credit card payyment gateway) and open four
browsers, only two pages get served at a time. The first
two take 15 seconds, the second two take 30 seconds. We
thought maybe this was due to make the reqests from the
same IP address, but we tried the same thing on four
machines with four different IP addresses as clients, and
got the same results (first two transactions take 15
seconds, second two take 30 seconds).
We are trying to build an e-commerce site that might be
processing 50 of these transactions simultaneously. What
might we be doing wrong in our code to cause this behavior?