What's the "right way" to use HttpClient synchronously?
I used quote marks around "right way" because I'm already well aware that the right way to use an asynchronous API is to simply let the asynchronous behavior propagate throughout the entire call chain. That's not an option here. I'm dealing with a very large and complicated system designed specifically to do batch processing synchronously in a loop. The reason why suddenly I'm using HttpClient is because prior to now all data for the batch processing was gathered from a SQL database, and now we're adding a Web API call to the mix. Yes, we're calling a Web API in a synchronously executing loop.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.