473,396 Members | 1,967 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,396 software developers and data experts.

Asynchronous Call

I am working with ASP.NEt application and need to create something like
notification module. Application passes a event information and module
decides how to handle this event - who to notify and what information to
send.

The main issue is I don't want slow done main application because of this
module. Main application doesn't need to know if module succeeded. SO I was
thinking that the best way is to go asynchronous.
I know that Web Services support asynch. calls. I am not sure if this is the
only way to go. I have some issues with Web Servises - security, speed.

I just wanted to know if there are more options to accomplish my task.
Thanks,
Shimon.
Nov 19 '05 #1
4 1142
Although asynchronous calls that have been triggered from one http Request
would run simultaneously, the response to the browser would not complete
until all threads have finished processing. However, if you want the web
response to come back to the browser before the notification module have
ended you might examine using the MessageQueue class to send a message from
your web application and on the receiving end you might write a Windows
service that would receive those messages and execute the notification logic
that you wanted.
----
http://www.webswapp.com/
"Shimon Sim" <sh**********@community.nospam> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
I am working with ASP.NEt application and need to create something like
notification module. Application passes a event information and module
decides how to handle this event - who to notify and what information to
send.

The main issue is I don't want slow done main application because of this
module. Main application doesn't need to know if module succeeded. SO I was thinking that the best way is to go asynchronous.
I know that Web Services support asynch. calls. I am not sure if this is the only way to go. I have some issues with Web Servises - security, speed.

I just wanted to know if there are more options to accomplish my task.
Thanks,
Shimon.

Nov 19 '05 #2
Thanks for Societopia's informative input,

Hi Shimon,

In addition to the things Societopia has mentioned, for a certain
notification service used in asp.net we can also consider using a
background thread in the asp.net's appdomain which do the constant task and
other working threads can fire event or perform querying from that
background thread's status. Anyway, this all depend on the actual scenario.
If there're any other ideas, please feel free to post here.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3
Thanks to everybody.
But I am using ASP.NET host provider and everything that is out of ASP.NET
is not available.
Where can I see some code on creating additional threads for asp.net
appdomain?
Shimon.
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:Ko**************@TK2MSFTNGXA01.phx.gbl...
Thanks for Societopia's informative input,

Hi Shimon,

In addition to the things Societopia has mentioned, for a certain
notification service used in asp.net we can also consider using a
background thread in the asp.net's appdomain which do the constant task
and
other working threads can fire event or perform querying from that
background thread's status. Anyway, this all depend on the actual
scenario.
If there're any other ideas, please feel free to post here.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #4
Hi Shimon,

As for using managed background thread to process background schedule task
in ASP.NET, here are two good tech articles I've found on the web:

#Creating Custom ASP.NET Jobs For Background Processing On Single or
MultipleThreads
http://www.kdkeys.net/forums/4526/ShowPost.aspx

#Background Processing, and Processing E-mails from ASP.NET
http://pubs.logicalexpressions.com/P...cle.asp?ID=442

The basic concept is just we create a background thread in
Application_Start or other custom startup time and then hold reference to
that background thread so as to montior or adjust it.

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #5

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

Similar topics

1
by: Natalia DeBow | last post by:
Hi, I am working on a Windows-based client-server application. I am involved in the development of the remote client modules. I am using asynchronous delegates to obtain information from...
4
by: bernardpace | last post by:
Hi, I am trying to get more familiar with asynchronous programming. I was reading through the document found on the page: ...
1
by: Alexander Kaplunov | last post by:
I have two different scenarios: 1. I have an application that calls a web service and passes an object. Web Service takes that object and does some stuff with it, which could take...
3
by: usenetaccount | last post by:
In a newly created test app, to maximize client performance I tried to make two SOAP method calls in tandem (the soap methods execute some specified query), as each call includes a large amount of...
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...
4
by: 6954 | last post by:
Hi! i need to implement some asynchronous call to my com+ component, but i need it to return some values (e.g. results of sql select statement). obviously queued components and MSMQ are out of...
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...
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...
5
by: Ryan Liu | last post by:
Hi, I read Microsoft SDK, ms-help://MS.NETFrameworkSDKv1.1/cpguidenf/html/cpovrasynchronousprogramming overview.htm there are 4 ways to call EndInvoke: The code in this topic demonstrates...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.