# davidfowl/aspnetcorediagnosticscenarios

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/davidfowl-aspnetcorediagnosticscenarios).**

8,508 stars · 778 forks · C#

## Links

- GitHub: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios
- awesome-repositories: https://awesome-repositories.com/repository/davidfowl-aspnetcorediagnosticscenarios.md

## Description

AspNetCoreDiagnosticScenarios is a collection of anti-pattern galleries and architectural examples for ASP.NET Core and C#. It provides a series of broken code samples and case studies designed to illustrate common pitfalls, scalability bottlenecks, and reliability problems within the .NET web ecosystem.

The project focuses on identifying problematic application patterns through the use of comparative implementation pairs, where broken scenarios are matched with corrected versions. These examples specifically cover dependency injection misconfigurations, middleware pipeline ordering, and the simulation of resource constraints.

The repository provides a framework for backend architecture learning and application performance debugging. It includes integrated test-case validation to prove the existence of bugs in broken scenarios and their subsequent resolution in the fixes.

## Tags

### Web Development

- [Troubleshooting Guides](https://awesome-repositories.com/f/web-development/asp-net-core-application-frameworks/backend-architectures/troubleshooting-guides.md) — Focuses on finding and fixing common architectural mistakes and broken patterns in ASP.NET Core applications.
- [Anti-Pattern Galleries](https://awesome-repositories.com/f/web-development/asp-net-core-application-frameworks/backend-architectures/anti-pattern-galleries.md) — Curates a collection of broken code examples and common pitfalls within the ASP.NET Core ecosystem.
- [High-Performance Web Services](https://awesome-repositories.com/f/web-development/high-performance-web-services.md) — Illustrates how to identify and resolve bottlenecks to ensure high-performance and scalable web services.
- [Pipeline Behavior Simulations](https://awesome-repositories.com/f/web-development/middleware-pipelines/pipeline-behavior-simulations.md) — Models request processing sequences to demonstrate how improper middleware ordering causes unexpected application behavior.

### Education & Learning Resources

- [Anti-Pattern Demonstrations](https://awesome-repositories.com/f/education-learning-resources/interactive-demonstrations/technical-demonstrations/anti-pattern-demonstrations.md) — Features sample projects that demonstrate maintainability failures and problematic coding patterns. ([source](https://github.com/davidfowl/aspnetcorediagnosticscenarios#readme))
- [Performance Debugging Case Studies](https://awesome-repositories.com/f/education-learning-resources/performance-debugging-case-studies.md) — Analyzes broken code scenarios to teach the diagnosis and repair of reliability issues in production.
- [Architectural Case Studies](https://awesome-repositories.com/f/education-learning-resources/architectural-case-studies.md) — Presents real-world case studies of scalability bottlenecks and reliability problems in .NET web APIs.
- [Scalability Guides](https://awesome-repositories.com/f/education-learning-resources/scalability-guides.md) — Offers guided walkthroughs of real-world scenarios to resolve scalability bottlenecks and performance issues. ([source](https://github.com/davidfowl/aspnetcorediagnosticscenarios#readme))

### Software Engineering & Architecture

- [Architectural Anti-patterns](https://awesome-repositories.com/f/software-engineering-architecture/architectural-anti-patterns.md) — Provides a gallery of common architectural anti-patterns and design mistakes to avoid in web services. ([source](https://github.com/davidfowl/aspnetcorediagnosticscenarios#readme))
- [Architectural Patterns](https://awesome-repositories.com/f/software-engineering-architecture/architectural-patterns.md) — Provides C# sample projects that illustrate problematic architectural patterns and their professional resolutions.
- [Architecture Learning Resources](https://awesome-repositories.com/f/software-engineering-architecture/architecture-learning-resources.md) — Provides learning resources based on real-world problematic coding patterns to teach software design principles.
- [Comparative Implementation Examples](https://awesome-repositories.com/f/software-engineering-architecture/comparative-implementation-examples.md) — Provides pairs of broken and fixed code samples to illustrate critical structural changes for architectural improvement.
- [Misconfiguration Examples](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/dependency-injection/misconfiguration-examples.md) — Demonstrates how incorrect service lifetimes in dependency injection lead to state corruption.

### System Administration & Monitoring

- [Failure Simulations](https://awesome-repositories.com/f/system-administration-monitoring/resource-constraints/failure-simulations.md) — Simulates external system failures and timeouts to demonstrate the impact of improper error handling.

### Testing & Quality Assurance

- [Bug Validation Tests](https://awesome-repositories.com/f/testing-quality-assurance/software-testing/testing-frameworks/test-frameworks/assertions-and-validation/test-case-definitions/bug-validation-tests.md) — Uses automated test cases to prove the existence of bugs in broken scenarios and validate their fixes.

### Part of an Awesome List

- [Developer Utilities](https://awesome-repositories.com/f/awesome-lists/devtools/developer-utilities.md) — Collection of problematic async patterns and solutions.
