Resiliency¶
Rate limiting¶
Token-bucket rate limiting via middleware; configurable in RateLimiting section. Health and static asset paths are typically excluded.
Security headers¶
NetEscapades.AspNetCore.SecurityHeaders middleware applies production-oriented headers. Configure via middleware registration in Program.cs.
Error handling¶
Hellang.Middleware.ProblemDetails for consistent API error responses. Blazor error pages at /error and /error/404.
Health checks¶
| Endpoint | Role |
|---|---|
/health |
Aggregate health |
/health/ready |
Readiness probe |
/health/live |
Liveness probe |
/startup |
Startup/warmup status |
Configured via HealthChecks, MarketingSiteTemplateHealthCheckProbes, and ConnectSoft health check extensions.
Caching and compression¶
Response caching and compression middleware for static assets and eligible responses. Integration tests cover caching and compression behavior.
CORS¶
Cors options section with development localhost origins; production origins must be tightened per deployment.
API and middleware detail: repo Middleware/ folder and integration test suite.