AI ARCHITECTURE FOR BACKEND ENGINEERS

Calling an LLM takes 3 lines.
Controlling its output takes architecture.

Patterns and reference implementations to ship LLM features without hallucinations, regressions, or unaudited decisions.

AI ARCHITECTURE SERIES

The Books

Two volumes. Book 1 defines the problem and the architectural response. Book 2 builds it — every contract, every gate, every line of code.

BOOK 1 — DESIGN

System Design for the AI Era

A stage-by-stage framework for designing systems where AI is a component — not the architecture itself.

✓ 8-stage architectural framework
✓ SupportBot running example throughout
✓ Language & stack agnostic
✓ Covers contracts, gates, and observability

BOOK 2 — IMPLEMENTATION

Contracts, Gates, and Control Planes

Java 21 + Spring Boot implementation of every concept from Book 1. Contracts, gates, deterministic tests, and a working LLM integration.

✓ 6-stage pipeline with real code
✓ FakeModel for deterministic testing
✓ Control Plane / Execution Plane split
✓ Real LLM integration in final sections