Part 7 6 chapters

Run in production

Run agent-facing APIs in production: observability, auditing AI-using code, identity and traffic guardrails, Kubernetes, and the final project.

Chapter 33

Observability for Agent Traffic

A model call leaves a trail you can cost and trace: a GenAI trace in Tempo, a nonzero token-usage metric in Prometheus, a durable per-call cost row in Postgres, and a log line in Loki, without hand-rolling a span.

20 minutesRead โ†’
Chapter 34

Auditing AI-Using Code

Every outbound call this code's own agent makes leaves an append-only audit record before it goes out, so the calls this code makes are as traceable as the calls made to it.

20 minutesRead โ†’
Chapter 35

Identity and Authorization Guardrails

A destructive tool checks how strongly a caller's credential was obtained, not only who is calling and what role it carries.

25 minutesRead โ†’
Chapter 36

Traffic and Resource Guardrails

An agent-facing ingest endpoint caps its call rate and rejects a payload that fails its registered schema, both enforced by the framework and the registry, never by convention.

20 minutesRead โ†’
Chapter 37

Running on Kubernetes with Strimzi

Stand up a self-serve Kubernetes platform and deploy a reused agent-facing service onto it unchanged, proving the cluster substrate with Strimzi Kafka, CloudNativePG Postgres and in-cluster Ollama.

40 minutesRead โ†’
Chapter 38

Final project: the focused multi-domain data mesh

Assemble three independently owned, agent-facing data products from already-built services onto the shared Kubernetes platform, and prove domain ownership, a self-serve platform and a live governance gate with one end-to-end scenario.

45 minutesRead โ†’