Hacker GitHub

← All repos

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

Mentions per year 18 mentions · busiest year 2023 (9)
20082026
  1. ▲ 2
    Common Pitfalls writing scalable services in ASP.NET Core
    story by colonCapitalDee · 2025-02-12 · 0 comments
  2. …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
  3. 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#
  4. ▲ 104
    Asynchronous Programming in C#
    story by dtquad · 2024-04-30 · 140 comments
  5. …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
  6. This one? https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
    comment by throwaway2037 · 2023-09-17 · in Java 21 makes me like Java again
  7. 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
  8. …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
  9. …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…
  10. …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...
  11. …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...
  12. ▲ 2
    Dotnet Async Guidance
    story by cebert · 2023-05-08 · 0 comments
  13. …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#
  14. FYI, if you plan to do this in ASP netcore, combine with AsyncLazy for the most optimal results https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
  15. 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…
  16. …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#
  17. ▲ 298
    Asynchronous Programming in C#
    story by keewee7 · 2021-09-24 · 176 comments
  18. …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