Keep public API DTOs separate from domain entities

Use explicit request and response contracts so persistence fields and domain state do not become part of the public API accidentally.

July 24, 2026 · 3 min · Lukas Walter

Use Aspire service discovery instead of hardcoded ports

Let Aspire pass service discovery information so application code can use logical service names instead of local port numbers.

July 19, 2026 · 2 min · Lukas Walter

When an AI Request Should Become a Background Job

How to decide when a .NET AI request should stay synchronous, stream its response, or move to a durable background job with HTTP 202 and a status resource.

July 19, 2026 · 14 min · Lukas Walter

Keep agent tools narrow and boring

Expose only the small, specific capabilities the agent needs for the current workflow.

July 9, 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

Separate prompts from authorization

Do not let prompt instructions decide what data or actions a user is allowed to access.

July 5, 2026 · 2 min · Lukas Walter

Use OpenTelemetry before you need production debugging

Add traces, metrics, and logs while the system is still easy to reason about.

July 5, 2026 · 2 min · Lukas Walter