8.26.2012

Difference between Synchronous and Asynchronous HTTP Handlers

Difference between Synchronous and Asynchronous HTTP Handlers
S.No Synchronous HTTP Handlers Asynchronous HTTP Handlers
1
Meaning:
A synchronous handler does not return until it finishes processing the HTTP request for which it is called.
Meaning:
An asynchronous handler runs a process independently of sending a response to the user.
2
Which Interface to implement?
IHttpHandler interface has to be implemented in oder to create a synchronous handler.
Which Interface to implement:
IHttpAsyncHandler interface has to be implemented in order to create an asynchronous handler.
3
Whent to use?
Synchronous handlers are useful when we must start an application process that might not be lengthy and the user has to wait until it finishes before receiving a response from the server.
When to use?
Asynchronous handlers are useful when we must start an application process that might be lengthy and the user does not have to wait until it finishes before receiving a response from the server.

1 comment: