-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can Task.Run be considered good on ASP.NET? #30
Comments
Generally, there's no performance benefit to using This comment really hits the nail on the head:
|
For fire and forget, I'd choose any option on this page over |
How does that improve the situation? This is all about understanding tradeoffs. The higher is that each requests is conceptually already running inside of a Task.Run (not quite but roughly speaking) so any other work that takes longer than anyone one request could be a bottleneck given the right set of load. |
The hosting environment can make some guarantees about work it's managing. It can make nothing about |
Yes, you can write it such that the background task is aware of the host lifetime, that's about it. |
IT might be less bad, but good???
The text was updated successfully, but these errors were encountered: