| 1. Angular & TypeScript (Domain: Presentation & Client State) | |
| Fine-Grained Reactivity (Signals + RxJS Interop) | Uses signal()/computed() for synchronous UI state bypassing Zone.js, bridged with RxJS (toSignal(), takeUntilDestroyed()) for async streams and leak prevention[cite: 1]. |
| Smart / Presentational Component Split | Isolates API orchestration and routing in container components while keeping UI components pure via OnPush, input(), and output() signals. |
| Standalone Architecture & Lazy Boundaries | Organizes features as module-less standalone components using loadComponent and loadChildren for granular route-level code splitting[cite: 1]. |
| Functional HTTP Interceptors & Strict Contracts | Chains HttpInterceptorFn handlers for JWT injection and error mapping, backed by strict TypeScript interfaces generated from OpenAPI schemas[cite: 1, 4]. |
| 2. C# / .NET 8+ (Domain: Core Runtime & Application Logic) | |
| Low-Allocation Hot Paths | Leverages Span<T>, ReadOnlySpan<T>, ArrayPool<T>, and System.Text.Json source generators to minimize Gen 0 GC pressure and reflection overhead[cite: 1]. |
| Async All the Way Down & Bounded Concurrency | Eliminates thread-pool starvation by avoiding .Result/.Wait(), throttling I/O with SemaphoreSlim.WaitAsync(), and propagating CancellationToken[cite: 2, 5]. |
| Primary Constructors & Immutable Records | Models DTOs, commands, and domain events as record or readonly record struct types to enforce value equality and thread safety. |
| Dependency Injection Lifetime Discipline | Prevents captive dependencies by resolving Scoped services (e.g., DbContext) inside Singleton or IHostedService workers via IServiceScopeFactory[cite: 1]. |
| 3. ASP.NET Core & REST APIs (Domain: Edge Ingress & Service Interfaces) | |
| Vertical Slice or Clean Architecture | Structures endpoints either as self-contained feature slices or concentric layers enforcing the Dependency Inversion Principle[cite: 1]. |
| Contract-First OpenAPI & Versioning | Defines API schemas upfront via OpenAPI/Swagger, enforces explicit versioning, and standardizes error responses using RFC 9457 ProblemDetails[cite: 4, 5]. |
Resilience Pipelines (Http.Resilience) | Wraps outbound HTTP calls in Polly-backed handlers (exponential backoff with jitter, circuit breakers, and hedging) to prevent cascading failures. |
| Rate Limiting & Output Caching | Protects API endpoints using built-in AddRateLimiter policies and tag-based OutputCache invalidation. |
| 4. Entity Framework Core (Domain: Object-Relational Persistence) | |
Read/Write Separation (AsNoTracking) | Applies .AsNoTracking() on read-only queries to bypass change-tracker snapshot allocations and reduce memory overhead[cite: 1]. |
| N+1 & Cartesian Explosion Prevention | Prevents N+1 leaks via .Include() or .Select() DTO projections, and uses .AsSplitQuery() to avoid Cartesian product bloat across multi-collection joins[cite: 1]. |
| Bulk Operations & Compiled Queries | Executes set-based mutations via .ExecuteUpdateAsync()/.ExecuteDeleteAsync() without loading entities, and pre-compiles hot queries with EF.CompileAsyncQuery(). |
| Optimistic Concurrency & Interceptors | Protects concurrent writes with [Timestamp]/rowversion tokens and automates audit fields or domain event dispatching via SaveChangesInterceptor. |
| 5. Azure (Functions, Service Bus, Key Vault, Storage) (Domain: Cloud-Native Messaging & Serverless) | |
| Isolated Worker Model (Azure Functions) | Runs Functions out-of-process (dotnet-isolated) for full control over middleware, DI, and package versions while keeping executions stateless and idempotent[cite: 1, 6]. |
| Compensating Consumers, Peek-Lock & DLQ | Processes Service Bus messages via PeekLock with idempotency keys for deduplication and dedicated Dead-Letter Queue (DLQ) handlers for poison messages[cite: 1]. |
| Secretless Zero-Trust Access (Managed Identity) | Eliminates static connection strings by authenticating services to Key Vault, Service Bus, Storage, and SQL using Microsoft Entra Managed Identities[cite: 1, 2]. |
| Claim Check Pattern (Azure Storage) | Offloads oversized payloads to Azure Blob Storage and passes only lightweight blob URI metadata pointers inside Service Bus messages. |
| 6. SQL Server / Azure SQL (Domain: Relational Data Engine & Query Optimization) | |
| Covering Indexes & SARGable Queries | Uses composite indexes with INCLUDE columns to satisfy reads via index seeks and keeps WHERE predicates SARGable without function wrapping. |
| Parameter Sniffing Mitigation | Prevents suboptimal cached query plans on skewed data using OPTION (RECOMPILE), local variable masking, or Parameter Sensitive Plan (PSP) optimization[cite: 1]. |
Native JSON Streaming (FOR JSON PATH) | Formats hierarchical JSON directly inside SQL stored procedures and streams raw responses through ASP.NET Core to bypass ORM serialization overhead[cite: 5]. |
| Connection Resiliency | Configures EnableRetryOnFailure() execution strategies to automatically recover from transient Azure SQL failovers or throttling. |
| 7. CI/CD & Azure DevOps (Domain: Automated Delivery & Platform Governance) | |
| Multi-Stage YAML Pipelines with Templates | Modularizes build, infrastructure, and deployment workflows into reusable YAML templates across Dev $\rightarrow$ QA/UAT $\rightarrow$ Prod with approval gates[cite: 2, 9]. |
| OIDC / Workload Identity Federation | Authenticates Azure DevOps pipelines to Azure using short-lived OIDC federated tokens rather than expiring service principal secrets[cite: 9]. |
| Shift-Left Quality & Policy Gates | Halts builds early on test regressions, static analysis, dependency vulnerability scans, and IaC policy violations (Checkov, tfsec, OPA) prior to deployment[cite: 1, 5, 9]. |
| Zero-Downtime Slot Swaps & Drift Detection | Deploys web apps to staging slots with warmup health checks before production swaps, and runs scheduled IaC plan checks to catch configuration drift[cite: 1, 9]. |
| 8. Microservices & Event-Driven Architecture (Domain: Distributed Systems & Bounded Contexts) | |
| Strangler Fig & Anti-Corruption Layer (ACL) | Incrementally replaces legacy monoliths via an API Gateway facade while shielding new microservices from legacy schemas using an Anti-Corruption Layer[cite: 1]. |
| Transactional Outbox Pattern | Ensures atomic consistency between database state updates and event publishing by writing both in one local SQL transaction before relaying to Service Bus. |
| Choreography vs. Orchestration (Saga Pattern) | Uses Service Bus pub/sub choreography for decoupled reactions and stateful orchestration (Azure Durable Functions) when multi-step workflows need rollback compensation[cite: 1, 6]. |
| CQRS (Command Query Responsibility Segregation) | Separates normalized transactional write stores (Azure SQL) from denormalized read projections (Cosmos DB, Redis) to scale reads and writes independently[cite: 1, 4]. |