469,140 Members | 1,170 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,140 developers. It's quick & easy.

Is there event-based asynchronous web method?

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 server side
asynchronous web service. So, we can only implement asynchronous
webmethod with BeginXXX/EndXXX pattern, right?

I don't why ASP.NET 2.0 don't provide event-based server side pattern.

Aug 4 '07 #1
4 3835
Morgan Cheng <mo************@gmail.comwrote in
news:11*********************@i38g2000prf.googlegro ups.com:
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 server side
asynchronous web service. So, we can only implement asynchronous
webmethod with BeginXXX/EndXXX pattern, right?

I don't why ASP.NET 2.0 don't provide event-based server side pattern.
Do you mean allowing the server to push information to the client?

You can't because web services are 1 way.

Or do you mean asynchronous processing on the server side? You don't really
need to because IIS will process each request in it's own thread context.
You only need to spawn additional thread if you have multiple tasks to
complete.

Aug 4 '07 #2
On Aug 5, 12:19 am, Spam Catcher <spamhoney...@rogers.comwrote:
Morgan Cheng <morgan.chen...@gmail.comwrote innews:11*********************@i38g2000prf.googleg roups.com:
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 server side
asynchronous web service. So, we can only implement asynchronous
webmethod with BeginXXX/EndXXX pattern, right?
I don't why ASP.NET 2.0 don't provide event-based server side pattern.

Do you mean allowing the server to push information to the client?

You can't because web services are 1 way.
No, i don't mean allow the server to callback client, but let
asynchronous operation in server side.
That is, IIS arrange one thread to initialize operation of incoming
request, but the thread has no need to escort the whole processing of
the request. Because WebService may involves I/O operation,
synchronous web method will make the thread block on I/O. This is not
good, since by default there is 25 worker threads per CPU.

>
Or do you mean asynchronous processing on the server side? You don't really
need to because IIS will process each request in it's own thread context.
You only need to spawn additional thread if you have multiple tasks to
complete.
Though worker thread number in TheadPool can be configured, it is not
suggested.
Better way is to make I/O operation performed in I/O thread in
asynchronous way.

Aug 5 '07 #3
Morgan Cheng <mo************@gmail.comwrote in
news:11**********************@q3g2000prf.googlegro ups.com:
Though worker thread number in TheadPool can be configured, it is not
suggested.
Better way is to make I/O operation performed in I/O thread in
Submit your request to a Windows Service?
Aug 5 '07 #4
On Aug 6, 5:09 am, Spam Catcher <spamhoney...@rogers.comwrote:
Morgan Cheng <morgan.chen...@gmail.comwrote innews:11**********************@q3g2000prf.googleg roups.com:
Though worker thread number in TheadPool can be configured, it is not
suggested.
Better way is to make I/O operation performed in I/O thread in

Submit your request to a Windows Service?
What I mean is something described in this URL
http://msdn2.microsoft.com/en-us/library/aa480516.aspx
Since ASP.NET 2.0, client side has event-based pattern, but I don't
know why server-side is still using IAsyncResult(BeginXXX/EndXXX)
pattern.
Aug 6 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by VK | last post: by
6 posts views Thread by rich_poppleton | last post: by
12 posts views Thread by Jack Russell | last post: by
15 posts views Thread by prabhdeep | last post: by
reply views Thread by Kamilche | last post: by
9 posts views Thread by jeff | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.