Main Menu

Friday, June 25, 2010

Asynchronous refers to processes that do not depend on each others outcome, and can therefore occur on different threads simultaneously. Hence asynchronous processes process a request in parallel.Synchronous processes on the other hand wait for invoked process to complete before continuing with further processing. Hence synchronous processes process a request in sequential.

You can create synchronous process if you need a request-reply pattern wherein you need the output of the invoked process to continue processing of the invoking process, and if the invoked process can reply immediately to the requests. Otherwise create asynchronous process