---
title: "Comment by Ahmet Özel on \"Building an AI Gateway in .NET\" | Hashnode"
description: "A gateway becomes much more valuable once it owns observability and policy, not just provider routing. I would record model/prompt version, token and latency bu"
url: "https://hashnode.com/posts/building-an-ai-gateway-in-net/6a527d71a7a8fb34334b9feb/comment/6a52fd4fd4edccbbe2c63bea"
---

[Discussion](https://hashnode.com/posts/building-an-ai-gateway-in-net/6a527d71a7a8fb34334b9feb)

Comment [Building an AI Gateway in .NET](https://hashnode.com/posts/building-an-ai-gateway-in-net/6a527d71a7a8fb34334b9feb)

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Jul 12](https://hashnode.com/posts/building-an-ai-gateway-in-net/6a527d71a7a8fb34334b9feb/comment/6a52fd4fd4edccbbe2c63bea)

A gateway becomes much more valuable once it owns observability and policy, not just provider routing. I would record model/prompt version, token and latency budgets, retry reason, cache hit, and structured-output validation result per request. Then retries can be limited by an end-to-end deadline instead of multiplying timeouts across layers. For safety, idempotency keys and per-operation policies also help prevent a state-changing tool call from being repeated after a transient model or network failure.

[Patrick Kearns](https://hashnode.com/@fullstackcity)

[Jul 12](https://hashnode.com/posts/building-an-ai-gateway-in-net/6a527d71a7a8fb34334b9feb/comment/6a52fd4fd4edccbbe2c63bea#reply-6a5355dc4082d2579493a89d)

Absolutely. The post is intentionally a high-level architectural overview not a complete production blueprint.

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 4](https://hashnode.com/posts/building-an-ai-gateway-in-net/6a527d71a7a8fb34334b9feb/comment/6a52fd4fd4edccbbe2c63bea#reply-6ac29a64c53a302552cf1fa7)

That is a fair scope correction: an architectural overview does not need to become a complete operational checklist. I would keep my additions as a possible follow-up rather than imply the overview is incomplete.

The one boundary worth carrying into that follow-up is ownership of the end-to-end deadline. If the feature and the gateway each retry independently, individually reasonable settings can exceed the caller's budget. A small request timeline showing which layer owns cancellation and remaining time would explain the issue without turning the gateway into an agent framework.
