Best way to make multiple asyn calls from a REST Service to external soap webservices RRS feed

  • Question

  • I have a WCF Service which inturn call 4 soap webservices (total response time for 4 services are more than a minute) for a single transaction and finally it will log the transaction status in the SQL 2008 database. I have first used Background worker and it  was working fine till 30 calls , if we increase the volume more than 30 calls then Backgroundworker process is getting cancelled . Now i am thinking of using Multi threads. Can some one advice which is the best asnyc method for my situtation.

    I am using Thread Lock statement when i log into db for inserting transaction status to avoid deadlock. Is there anything else i need to consider when i am applying a async method.

    Thanks a lot for your help in advance ! - Live a Happy & Balanced Life

    Friday, May 10, 2013 9:45 PM