473,769 Members | 6,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Synchronous web request performance

We are having problems with synchronus web request calls
blocking our ASP.NET performance. Here is the setup:
We have an aspx script on Site B with a synchronous
HttpWebRequest call to access Site A (simulating accessing
a bank credit card payment gateway). The page on Site A
currently does nothing more than wait 15 seconds before
serving a page, again simulating the potential lengthy
response from such a site.

When we open four browsers on the aspx page on Site B
"simultaneously " (which in turn causes the lengthy wait
accessing Site A), 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
eequests 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 tried several different things including asynchronous
web requests and it seemed to make no difference. Only two
requests ever got processed at one time.

We are anticipating having to process perhaps 50 of these
transactions simultaneously, and if only two are being
processed at any given moment response time would be
horrible. I'm sure we aren't the only ones trying to do
such a thing. What might we doing wrong to cause this
behavior?

Thanks,
TomR.

11648409

Nov 17 '05 #1
3 2104
Right, and that is why we brought up four browsers on
four different machines the second time. Yet, we still
saw only two requests being serviced at any one time.

TomR
-----Original Message-----
Part of the HTTP1.0 spec was that you can only have 2 connections to aserver in one outbound connection..

"TomR" <to******@yahoo .com> wrote in message
news:0e******* *************** ******@phx.gbl. ..
We are having problems with synchronus web request calls
blocking our ASP.NET performance. Here is the setup:
We have an aspx script on Site B with a synchronous
HttpWebRequest call to access Site A (simulating accessing a bank credit card payment gateway). The page on Site A
currently does nothing more than wait 15 seconds before
serving a page, again simulating the potential lengthy
response from such a site.

When we open four browsers on the aspx page on Site B
"simultaneously " (which in turn causes the lengthy wait
accessing Site A), 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
eequests 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 tried several different things including asynchronous
web requests and it seemed to make no difference. Only two requests ever got processed at one time.

We are anticipating having to process perhaps 50 of these transactions simultaneously, and if only two are being
processed at any given moment response time would be
horrible. I'm sure we aren't the only ones trying to do
such a thing. What might we doing wrong to cause this
behavior?

Thanks,
TomR.

11648409

.

Nov 17 '05 #2
Hello

Try to check in machine.config
<httpRuntime> check the value for the minFreeThreads and
minFreeLocalReq uestFreeThreads attributes
<processModel > maxWorkerThread s attribute

Best Regards

"TomR" <to******@yahoo .com> wrote in message
news:0e******** *************** *****@phx.gbl.. .
We are having problems with synchronus web request calls
blocking our ASP.NET performance. Here is the setup:
We have an aspx script on Site B with a synchronous
HttpWebRequest call to access Site A (simulating accessing
a bank credit card payment gateway). The page on Site A
currently does nothing more than wait 15 seconds before
serving a page, again simulating the potential lengthy
response from such a site.

When we open four browsers on the aspx page on Site B
"simultaneously " (which in turn causes the lengthy wait
accessing Site A), 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
eequests 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 tried several different things including asynchronous
web requests and it seemed to make no difference. Only two
requests ever got processed at one time.

We are anticipating having to process perhaps 50 of these
transactions simultaneously, and if only two are being
processed at any given moment response time would be
horrible. I'm sure we aren't the only ones trying to do
such a thing. What might we doing wrong to cause this
behavior?

Thanks,
TomR.

11648409

Nov 17 '05 #3
Thanks for replying. Perhaps you could explain a little
more about how to set up multiple connection objects? Or,
reference to documentation would be helpful too.

TomR.
-----Original Message-----
lol - no I mean your web server can only have 2 requests for each connectionto that web service... normally, web service calls are quick, but in thiscase - they are going to hog those 2 connections.. so you should probablysetup multiple connection objects and establish a queue for however manyconnections you'd like to have open at a time..

"TomR" <to******@yahoo .com> wrote in message
news:00******* *************** ******@phx.gbl. ..
Right, and that is why we brought up four browsers on
four different machines the second time. Yet, we still
saw only two requests being serviced at any one time.

TomR
>-----Original Message-----
>Part of the HTTP1.0 spec was that you can only have 2

connections to a
>server in one outbound connection..
>
>"TomR" <to******@yahoo .com> wrote in message
>news:0e******* *************** ******@phx.gbl. ..
>> We are having problems with synchronus web request calls >> blocking our ASP.NET performance. Here is the setup:
>> We have an aspx script on Site B with a synchronous
>> HttpWebRequest call to access Site A (simulating

accessing
>> a bank credit card payment gateway). The page on Site A >> currently does nothing more than wait 15 seconds before >> serving a page, again simulating the potential lengthy >> response from such a site.
>>
>> When we open four browsers on the aspx page on Site B
>> "simultaneously " (which in turn causes the lengthy wait >> accessing Site A), 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
>> eequests 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 tried several different things including
asynchronous >> web requests and it seemed to make no difference. Only two
>> requests ever got processed at one time.
>>
>> We are anticipating having to process perhaps 50 of

these
>> transactions simultaneously, and if only two are

being >> processed at any given moment response time would be
>> horrible. I'm sure we aren't the only ones trying to do >> such a thing. What might we doing wrong to cause this
>> behavior?
>>
>> Thanks,
>> TomR.
>>
>> 11648409
>>
>
>
>.
>

.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3419
by: Chris | last post by:
Hi. I have a ibrary I'm trying to use via javascript within IE. This library uses an asynchronous model where I call into a function and pass it a callback function as one of its arguments. My method returns immediately, and the callback function is called shortly thereafter... virtually immediately. I want to find a way to simplify my code by finding a way to simulate synchronous behavior for those functions. It's a little awkward...
9
17996
by: David | last post by:
Hello I'm testing the XMLHttpRequest object in Firefox and IE. The code below works well in IE and Firefox. It shows "1" when the string is a number and "0" when not. The page aspxTest.aspx only write "0" or "1" with a "response.write" method. The problem that I have is when I try this example with Synchronous mode. If I change the function sendNum with: xmlhttp.open("GET",url,false);
5
9849
by: Jeff Weber | last post by:
First, my question: Should I use Write or BeginWrite (sync or async) to stream data to my clients over a TCPClient connection. Details: On the server I have a custom circular data buffer that receives byte array data representing data structures at a rate of 30ms. On a thread seperate from that which Enqueues data to the buffer I have a high performance timer that Dequeues data from the custom buffer and sends it via a tcpClient...
5
383
by: TomR | last post by:
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...
4
3304
by: Ryan Liu | last post by:
TcpClient has a method called GetworkStream GetStream(); So in other words, there is only one stream associate with it for input and output, right? So while it is receiving, it can not send, and vise visa, right? So will it be a problem both server and client can initiative a sending action? TcpClient only supports synchronous operation. What does "Synchronous" mean? Means while it is reading or waiting for data to arrive from the...
2
6300
by: Prasad | last post by:
Hi all! I am trying to access a page through Synchronous Ajax request in mozilla firefox I could not get the response .. After the requset is sent , "onreadystatechange" function is not being called .. (it does mean that State is not changing ..) <script> var req = new XMLHttpRequest(); req.open('GET', '_temp_delete.html', false);
5
15510
by: HugeBob | last post by:
Hi All, I've got a question about Asynchronous vs Synchronous mode with the XMLHttpRequest object. What are the ramifications of using one mode vs the other? If the script uses Asynchronous mode, it sounds as if a thread retrieves the data from the supplied URL and the JS function that called the open() and send() methods continues on. Where as using Synchronous mode the method that called open() and send() waits until the data from...
3
1449
by: Haroldp | last post by:
Because I need to be sure that an Http Request is finished before other requests can be done I am using a synchronous XML Http Request. I want to show the text "loading..." on the page before the http-request starts. The strange thing here is that this "loading..." text is not visible on the page, but its method is performed though. If I place an "alert('something')" in between I do see the "loading..." on the page before the alert is...
6
8635
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have tried, including my conclusions/assumptions (which i'll happily be corrected on if it solves my problem!): The requirement not to use a proxy means I can't use the synchronous
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.