IConfiguration vs IOptions NET
Synchronous and Asynchronous in .NET Core
Model Binding and Validation in ASP.NET Core
ControllerBase vs Controller in ASP.NET Core
ConfigureServices and Configure methods
IHostedService interface in .NET Core
ASP.NET Core request processing
| Global Exception Handling in ASP.NET Core | Kestrel In .NET Core | |
REST vs GraphQL - Simple Guide |
Style: Architectural style for designing networked applications.
Style: Query language + runtime for APIs, created by Facebook.
| Feature | REST | GraphQL |
|---|---|---|
| Endpoints | Multiple (per resource) | Single |
| Data Fetching | Fixed response shape | Client-defined shape |
| Over/Under Fetching | Common | Rare |
| Versioning | Often via /v1, /v2 | Usually avoided — schema evolves |
| Caching | Easy with HTTP caching | Needs custom caching logic |
| Learning Curve | Lower | Higher |
| Best For | Simple, resource-oriented APIs | Complex, data-rich UIs needing flexibility |
Some teams mix both: REST for simple, cache-friendly endpoints (e.g., public product listings) and GraphQL for complex, interactive data (e.g., dashboards, user profiles).
| Global Exception Handling in ASP.NET Core | Kestrel In .NET Core | |