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.
Use explicit request and response contracts so persistence fields and domain state do not become part of the public API accidentally.
Let Aspire pass service discovery information so application code can use logical service names instead of local port numbers.
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.
Expose only the small, specific capabilities the agent needs for the current workflow.
Place ASP.NET Core middleware in the order that matches routing, security, and endpoint behavior.
Do not let prompt instructions decide what data or actions a user is allowed to access.
Add traces, metrics, and logs while the system is still easy to reason about.