Do not hide exceptions inside fire-and-forget tasks

If work can fail, give it ownership, logging, cancellation, and a lifecycle.

July 5, 2026 · 2 min · Lukas Walter

Expose a Python FastAPI AI tool as an Aspire service

Keep Python AI code behind an HTTP boundary and let Aspire wire it into the local system.

July 5, 2026 · 1 min · Lukas Walter

Keep model name and deployment name in config

Do not hard-code model routing decisions into application logic.

July 5, 2026 · 2 min · Lukas Walter

Keep vector search filters separate from semantic ranking

Use filters for eligibility and ranking for relevance instead of blending both concerns.

July 5, 2026 · 2 min · Lukas Walter

Measure before you optimize

Use traces, counters, profiles, and focused benchmarks before changing code for performance.

July 5, 2026 · 2 min · Lukas Walter

Middleware order is important

Place ASP.NET Core middleware in the order that matches routing, security, and endpoint behavior.

July 5, 2026 · 2 min · Lukas Walter

Nullable warnings are design feedback, not noise

Treat nullable warnings as pressure to make object state and API contracts clearer.

July 5, 2026 · 2 min · Lukas Walter

Pass CancellationToken through real boundaries

Thread cancellation through every expensive operation instead of dropping it mid-chain.

July 5, 2026 · 2 min · Lukas Walter

Prefer health checks that test dependencies deliberately

Health checks should say something useful about readiness without turning every probe into production load.

July 5, 2026 · 2 min · Lukas Walter

Prefer keyset pagination for deep lists

Use seek-based pagination when users move through large ordered result sets.

July 5, 2026 · 2 min · Lukas Walter