locked
Calling web/wcf service parallelly or async (best approach) RRS feed

  • Question

  • Hi experts,

    I have more than 10 different web/wcf third party service.

    I need to get response from each web service and then sum up the response and filter the record.

    Currently I am using async/callback methodology for process request. Is it the best approach?

    I have read about parallel computing , can parallel computing increase the performance. Any example will be highly appreciated.

    Tuesday, August 26, 2014 9:19 AM

All replies

  • What happens if one doesn't respond?

    http://pauliom.wordpress.com

    Tuesday, August 26, 2014 12:15 PM
  • we skip it.
    Tuesday, August 26, 2014 1:52 PM
  • Is that on a timeout?

    http://pauliom.wordpress.com

    Tuesday, August 26, 2014 2:34 PM
  • yes.
    Tuesday, August 26, 2014 2:55 PM
  • For just 10 then I'd probably just use async/await Tasks

    http://pauliom.wordpress.com

    Tuesday, August 26, 2014 10:08 PM
  • Parallel programming supports the performance boost in client side. but, you can make a service call also parallel, 

    In you case, You are waiting for the response of the all the service calls and then you will trigger the other operations. 

    For this scenario,

    Use task/Await to intiate the operations of all service calls in client side. at the same time the service should support async/ callback operations. 

    you already build the service in the way of supporting async/callback. so, just add other part of task/await in client side then, you can do the operations at very fast.

    Ensure that, the client and serive layers are not blocked by any proxies. because if it blocked with proxies then, Async/Callback would be blocked.



    prabakaran.M

    • Proposed as answer by Prabakaran.M Thursday, August 28, 2014 5:09 AM
    Wednesday, August 27, 2014 5:36 AM
  • Thanks prabakaran, will try that.
    Wednesday, August 27, 2014 1:08 PM