© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
20 replies
pip

Concurrent REST requests best practices if any? [Answered]

Reading a lot online on if running REST requests with something like a Task.WhenAll is actually a good practice. I've gotten mixed responses so far. I'm aware that if you use HttpClient directly and some requests fail, you'll exhaust all of your ports over time. There's some methodology to prevent this(like using an alternate request queue instead of relying on HttpClient), but I guess my question boils down to -> is running REST requests concurrently bad practice? If it isn't, can you provide links/info for best practices?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Best pratice for REST-api [Answered]
C#CC# / help
4y ago
✅ rest requests help
C#CC# / help
4y ago
Inline if statement best practices in C#
C#CC# / help
13mo ago