davidfowl/AspNetCoreDiagnosticScenarios
View on GitHub ↗ ★ 8,505 C#
This repository has examples of broken patterns in ASP.NET Core applications
18 mentions on Hacker News by 13 people: 4 stories, 14 comments · first 2021-08-20 · latest 2025-02-12
20082026
-
…model is complex enough to warrant a FAQ, https://devblogs.microsoft.com/dotnet/configureawait-faq https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
comment by pjmlp · 2024-07-17 · in Java Virtual Threads: A Case Study -
Important: following #prefer-asyncawait-over-directly-returning-task from https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... is not correct. The concerns raised are niche and edge case and task must always be forwarded as is…
comment by neonsunset · 2024-04-30 · in Asynchronous Programming in C# -
…by the .NET architects, and there was a research project to add Go/Java co-routines as well. https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... https://twitter.com/davidfowl/status/1532880744732758018?lan...…
comment by pjmlp · 2023-09-25 · in The State of Async Rust: Runtimes -
This one? https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
comment by throwaway2037 · 2023-09-17 · in Java 21 makes me like Java again -
Here, https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... https://github.com/dotnet/runtimelab/issues/2398
comment by pjmlp · 2023-09-17 · in Java 21 makes me like Java again -
…fine in C#, there is a reason why one of ASP.NET architects has written a guide of best practices. https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... Ironically, C++'s design is heavily related to C#, as the initial proposal…
comment by pjmlp · 2023-08-13 · in The Downsides of C++ Coroutines -
…into Task.Run() or similar. There is a best practices guideline from one of the ASP.NET architects, https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... During last year they researched adding Go/Java's approach to .NET, but now…
comment by pjmlp · 2023-07-31 · in Intent to approve PEP 703: making the GIL optional -
…This is the best practices of async/await in .NET as written by one of the ASP.NET architects, https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
comment by pjmlp · 2023-07-19 · in Local async executors and why they should be the default -
…of a completed Task in C#. To make this simple they introduced async Main[2] a few years ago. [1]: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... [2]: https://github.com/dotnet/csharplang/blob/main/proposals/csh...
comment by uncheckederror · 2023-05-21 · in How much memory do you need to run 1M concurrent tasks? -
…the hell is going on? Do you remember ConfigureAwait(false)? Years later such guidance compiled: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
comment by serguzest · 2023-03-18 · in How Async/Await Works in C# -
FYI, if you plan to do this in ASP netcore, combine with AsyncLazy for the most optimal results https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
comment by jtwigg · 2022-07-22 · in Ask HN: What are some cool but obscure data structures you know about? -
Unfortunately, there are problems with both of those approaches: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... I don't know if it extends to other language implementations, but C# does not seem to have a reliable…
comment by darklion · 2022-02-28 · in Ask HN: Why can't await be used from non-async functions? -
…it pays to avoid the async state machine. I'm curious if others could expand on this one. [1] https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
comment by cmpb · 2021-09-24 · in Asynchronous Programming in C# -
…being written eons ago. I'd recommend David Fowler's async guidance for a modern take: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... `.GetAwaiter().GetResult()` is generally considered the best way to do it if you must do…
comment by Hawxy · 2021-08-20 · in Performance Improvements in .NET 6