Feb 5, 2025 · 31m · latent-space
Why every AI Engineer needs an AI Gateway (ft Portkey.ai CEO)
gold bands on the timeline = statements, start to end. Hover to read, click to jump. CC turns on captions
Portkey.ai CEO Rohit Agarwal joins hosts Swix and Alessio to discuss the critical role of AI gateways in managing model routing, production guardrails, OpenTelemetry observability, and multi-step agentic workflows.
How this conversation actually went
Every chapter scored 0–10 on four independent dynamics. Hover any point for the reasoning behind the score. How this is scored →
speaking balance: gold is the hosts, purple is the guest (3 minute bins)
Swix directly challenges Portkey's custom status code retry mechanism, arguing that dumb retries fail without the application's unique prompt context and tools.
Hardest push from the hosts ▶ 28:06 Challenging the novelty of MCPSwix pushes back on the hype around MCP, questioning why it is revolutionary rather than just a minor variation of the existing OpenAPI specification.
Biggest teaching moment ▶ 29:07 Two-way communication in MCP specRohit explains the bidirectional RPC and SSE capabilities of MCP, prompting Swix to openly admit he had missed that entire capability despite browsing the specification.
The host holds their own ▶ 2:12 Reasoning model latency driving routing needsAlessio demonstrates industry authority by bringing fresh findings from a Fortune 500 enterprise council to illustrate exactly where routing is becoming critical due to reasoning model latency.
the scores for every segment, with the reasoning behind each
| Chapter | Topic | The hosts as informed peer | Guest teaching | Guest disagreement | The hosts pushing back | Why |
|---|---|---|---|---|---|---|
| Model Routing for Reasoning LLMs and Agentic Systems | 7 | 1 | 1 | 4 | Alessio demonstrates strong domain knowledge by challenging the necessity of routing in single-model setups and sharing concrete insights from a Fortune 500 AI council regarding reasoning model latencies. Rohit readily validates Alessio's framing and builds on it with recent DeepSeek data. | |
| Decoupling Gateway Architecture from Application SDKs | 6 | 4 | 1 | 3 | Swix expresses strong architectural opinions against putting LLM abstractions in application code while raising valid concerns about proxy latency and downtime. Rohit clarifies his architecture by explaining their 21MB JSON transformer engine, which Swix clarifies isn't an LLM transformer. | |
| Core Gateway Capabilities: Observability, Limits, and Governance | 4 | 3 | 0 | 1 | Rohit provides a structured overview of core gateway functions including rate limits, budget enforcement, guardrails, and enterprise chargebacks. The hosts act primarily as facilitators guiding the categorization. | |
| Production Guardrail Implementation and Error Orchestration | 7 | 2 | 2 | 6 | Alessio opens with historical context on guardrail evolution, and Rohit explains practical regex versus demo PII guardrails and custom status code 246. Swix directly pushes back on gateway-level dumb retries, arguing that retry prompts require application-level context and tool awareness. | |
| AI Observability and the Evolution of OpenTelemetry Standards | 6 | 2 | 1 | 4 | Swix probes Portkey's positioning against traditional observability vendors and standard bodies like OpenLLMetry. Both Swix and Rohit note that standardization efforts often lag behind rapidly shifting API paradigms. | |
| Observability and Debugging in Multi-Step Agent Architectures | 6 | 2 | 2 | 5 | Rohit details the debugging requirements and routing opportunities in multi-step agents. Swix counters with skepticism regarding multi-LLM setups, arguing that switching models complicates prompts and accumulates endpoint downtime risks. | |
| Real-Time Production Evals and Aligning Human Feedback | 5 | 3 | 1 | 2 | Swix candidly admits that developers and end users rarely provide manual human feedback. Rohit agrees and shares successful alternative patterns where implicit business metrics (like video download rates) serve as positive feedback signals. | |
| Defining Traces and Sessions in Ambient and Continuous AI | 7 | 3 | 1 | 3 | Rohit explains the OpenTelemetry model of traces versus sessions, but Swix challenges the paradigm by introducing continuous wearable audio streams and ambient agents where clear session boundaries do not exist. | |
| Model Context Protocol (MCP) and Gateway Tool Integration | 5 | 7 | 2 | 5 | Swix questions why MCP is seen as revolutionary compared to OpenAPI specs. Rohit educates Swix on two-way communication capabilities and RPC mechanisms, leading Swix to acknowledge he did not realize two-way agent functionality existed in the spec. |