在 ASP.NET 中利用 async/await 提升性能
hackerone.com | 博客 | #performance | #asp-net | #concurrency | #web-development | #dotnet | #async-await | #csharp | #deadlock
摘要
本文介绍在 ASP.NET 中正确使用 async/await:优先用于数据库调用、文件读写等 I/O 密集操作以提升吞吐,避免 .Result、.Wait() 造成的死锁并在类库中用 ConfigureAwait(false),CPU 密集任务则不宜滥用异步。
- 发布时间
- 收录时间
Skip to content