473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Asynchronous Processing Web age

Hi,

I need to make a web page that wait for 3 asynchronous processes to finish.

So I am considering these options

1) Poll the status of the processes from the web page using the "REFRESH"
metatag in HTML.
2) Synchronously call a monitor function on the server that poll the status
of the processes, and returns when they are done.

Are there other options? Which of the two can you recommend?

- Thomas
Nov 18 '05 #1
3 1416
Off hand I'd lean towards option #1, as it tends to tie up fewer
resources on the server. ASP.NET will only process a certain number of
concurrent requests, and even though that number is configurable it is
hard to tie up threads and connections while waiting around for
"stuff" to finish up or possibly time out.

The disclaimer is, I don't know how many users you need to support, or
how long the 3 asynch processes need to complete, so #1 may not be THE
optimal solution for your web application, but it is a conservative
approach.

--
Scott
http://www.OdeToCode.com

On Sat, 10 Jul 2004 19:48:54 -0400, "Thomas Nielsen" <tn*@nc.rr.com>
wrote:
Hi,

I need to make a web page that wait for 3 asynchronous processes to finish.

So I am considering these options

1) Poll the status of the processes from the web page using the "REFRESH"
metatag in HTML.
2) Synchronously call a monitor function on the server that poll the status
of the processes, and returns when they are done.

Are there other options? Which of the two can you recommend?

- Thomas


Nov 18 '05 #2
Hi Scott,

We have a lot of concurrent users. I just thought of a hybrid solution,
where one page can be synchronous and another page can be asynchronous. This
is the scenario:

User submit a payment request
Payment request is rejected or accepted synchronously.
If the payment is accepted, asynchronous processes are started on the
servers and the confirmation is sent to the client.
On the payment confirmation page, there will be a link to
OrderProcessing.aspx.
OrderProcessing.aspx will start polling the asynchronous processes, and stop
polling if all are completed, or if time out.

- Thomas

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:9s********************************@4ax.com...
Off hand I'd lean towards option #1, as it tends to tie up fewer
resources on the server. ASP.NET will only process a certain number of
concurrent requests, and even though that number is configurable it is
hard to tie up threads and connections while waiting around for
"stuff" to finish up or possibly time out.

The disclaimer is, I don't know how many users you need to support, or
how long the 3 asynch processes need to complete, so #1 may not be THE
optimal solution for your web application, but it is a conservative
approach.

--
Scott
http://www.OdeToCode.com

On Sat, 10 Jul 2004 19:48:54 -0400, "Thomas Nielsen" <tn*@nc.rr.com>
wrote:
Hi,

I need to make a web page that wait for 3 asynchronous processes to finish.
So I am considering these options

1) Poll the status of the processes from the web page using the "REFRESH"
metatag in HTML.
2) Synchronously call a monitor function on the server that poll the statusof the processes, and returns when they are done.

Are there other options? Which of the two can you recommend?

- Thomas

Nov 18 '05 #3
Thomas:

I think your scenario sounds pretty good. It's simple and easy to
debug too.

--s

On Sun, 11 Jul 2004 00:51:33 -0400, "Thomas Nielsen" <tn*@nc.rr.com>
wrote:
Hi Scott,

We have a lot of concurrent users. I just thought of a hybrid solution,
where one page can be synchronous and another page can be asynchronous. This
is the scenario:

User submit a payment request
Payment request is rejected or accepted synchronously.
If the payment is accepted, asynchronous processes are started on the
servers and the confirmation is sent to the client.
On the payment confirmation page, there will be a link to
OrderProcessing.aspx.
OrderProcessing.aspx will start polling the asynchronous processes, and stop
polling if all are completed, or if time out.

- Thomas


Nov 18 '05 #4

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

Similar topics

6
by: ... | last post by:
Does anyone know a good tutorial on asynchronous programming in .net AsyncCallback And IASyncResult are driving me crazy. And the msdn documentation is not really helpful on this topic I...
1
by: hs | last post by:
H I am using the articles by Matt Powell about server side asynchronous web methods (as well as the client side article) However i dont see any improvements to the speed of my application. I'm...
9
by: Michael Lindsey | last post by:
I need to write a server app to send images to client GUIs that are outside of the server's domain. The client will have the file system path to the image but can not access the file system. I am...
1
by: MSDN | last post by:
Does anyone know how to do this with a readline statement or equivalent method? Thanks in advance. Chris
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
1
by: dba123 | last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method which does an insert but how can I do this Asyncronously so that it does not affect the load on our public production...
2
by: archana | last post by:
Hi all, I am processing asynchronous web request with setting timeout using RegisterWaitForSingleObject. On beginwebrequest i am sending address of one callback which i want to execute when...
0
by: Bishoy George | last post by:
Hi, I have a asp.net 2.0 web application. I want to implement the asynchronous model through http handler in web.config ...
4
by: Engineerik | last post by:
I am trying to create a socket server which will listen for connections from multiple clients and call subroutines in a Fortran DLL and pass the results back to the client. The asynchronous socket...
4
by: Morgan Cheng | last post by:
Since ASP.NET 2.0, asynchronous web service client can be implemented with event-based pattern, instead of original BeginXXX/EndXXX pattern. However, I didn't find any material about event-based...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.