R Pidugu

Advantages & Disadvantages of Synchronous / Asynchronous Communications?


Asynchronous Communication

  • Requests need not be targeted to specific server.
  • Service need not be available when request is made.
  • No blocking, so resources could be freed. 
  • Could use connectionless protocol
  • Response times are unpredictable.
  • Error handling usually more complex. 
  • Usually requires connection-oriented protocol. 
  • Harder to design apps

Synchronous Communication

  • Easy to program
  • Outcome is known immediately 
  • Error recovery easier (usually) 
  • Better real-time response (usually)

  • Service must be up and ready.
  • Requestor blocks, held resources are “tied up”. 
  • Usually requires connection-oriented protocol

Subscribe to this Blog via Email :