Key Terms
| Term | In one line |
|---|---|
| AI-native | Architecture that absorbs non-deterministic, latency-variable, cost-variable workloads by design |
| Managed identity / IRSA / Workload Identity | Cloud-issued identity for workloads — eliminates stored secrets |
| PTU / provisioned throughput | Reserved model capacity for predictable latency instead of shared quota |
| Cold start | The latency penalty on a scaled-to-zero function’s first invocation |
| Pilot light / warm standby / active-active | The DR ladder, cheapest to most expensive |
| FinOps | Cost as an engineering signal — tagging, showback, budget alerts, rightsizing |
| AWS ↔ Azure ↔ GCP | Bedrock ↔ Azure OpenAI ↔ Vertex; SageMaker ↔ Azure ML ↔ Vertex AI; Lambda ↔ Functions ↔ Cloud Functions |
Numbers That Matter
| Figure | Value | Where it bites |
|---|---|---|
| LLM call variance | 300 ms to 30 s | The architecture has to absorb this — timeouts, streaming, queues |
| Lambda cold start | 100 ms – several seconds | Disqualifying for synchronous user-facing paths with tight SLAs |
| Aurora storage | Auto-grows in 10 GB increments | Up to 128 TB, no manual provisioning |
| Cosmos DB | Sub-10 ms global reads, multi-region writes | The reason to pick it over Azure SQL |
| Budget alerts | 80% / 100% | On tagged, attributable spend |
Decision Rules
- The 12-factor app needs reinterpretation for AI: config now includes prompts and model versions; “stateless processes” fights context and KV-cache; disposability collides with 60–300s model load times; and cost per request stops being roughly constant.
- Avoid serverless when cold start is unacceptable on a user-facing path, execution exceeds the runtime limit, you need GPU, or sustained high throughput makes always-on cheaper. Use it for event-driven, spiky, stateless work.
- Azure SQL vs Cosmos DB: Cosmos for global multi-region writes, per-record schema variance, massive scale, sub-10ms global reads, or document/hierarchical shape. Azure SQL for relational integrity, complex joins, and reporting.
- Container Apps (or equivalent managed container platform) is the sensible default — managed Kubernetes underneath, scale-to-zero, KEDA autoscaling — with raw AKS/EKS reserved for when you need what it exposes.
- Managed identity everywhere; no connection strings with secrets in config. A stored secret is a rotation obligation and a breach waiting to be reported.
- Cost hierarchy: eliminate waste → rightsize → buy commitment (reserved/savings plans) → optimize architecture. Do them in that order; buying reservations for oversized instances locks in the mistake.
- A 40% bill jump from a GenAI feature is investigated by attribution first: tag by feature, break down token usage per query category, then check for a context-length regression, a retry storm, or a routing change — before touching the model.
Say This Out Loud
“AI-native is a distinct discipline mostly because of two properties. First, the workload is non-deterministic and latency-variable — the same call can take three hundred milliseconds or thirty seconds depending on token count, model load and provider throttling — so timeouts, streaming, and queueing have to be first-class rather than bolted on. Second, cost scales with usage in a way traditional compute doesn’t, which means cost has to be a monitored production signal with alerts, not a monthly finance report.”
“I like serverless for event-driven, spiky, stateless work and I avoid it in four cases: when cold start is unacceptable on a synchronous user path, when execution exceeds the runtime limit, when I need GPU, and when throughput is sustained and high enough that always-on compute is simply cheaper. Cold starts range from about a hundred milliseconds to several seconds, and ‘several seconds’ inside a checkout flow is a product decision, not an infrastructure one.”
“For a forty percent bill jump I’d start with attribution, not optimization. Tag spend by feature so I can confirm it really is the GenAI feature, then break token usage down by query category. In my experience it’s usually one of three things: someone increased the context window and every request got more expensive, a retry loop is silently multiplying calls, or a routing change sent traffic that used to go to a cheap model to an expensive one. All three are cheap to fix and invisible without attribution.”