AI Engineering Patterns Hands on Engineering Patterns for Building AI Systems

Sale price  $58.49 Regular price $64.99

AI Engineering Patterns Hands on Engineering Patterns for Building AI Systems

Sale price  $58.49 Regular price $64.99

Reliable shipping

Flexible returns

AI Engineering Patterns

Hands on Engineering Patterns for Building AI Systems

Urooj Siraj | Rob Murphy

Computers / Artificial Intelligence / General

Building AI features that work in demos is easy; building ones that survive real-world production is not. This book is a practical field guide for engineers navigating this gap. It distills hard-earned lessons into fifty actionable patterns that cover the full lifecycle of AI systems from early decision-making to production operations helping teams move from experimental prototypes to reliable, scalable deployments. 

The book begins with pre‑coding fundamentals, introducing frameworks such as the AI versus no‑AI decision model, the failure‑first mindset, and evaluation gates that ensure teams build the right solution from the start. It then treats prompts as production code, covering output contracts, versioning, and testing practices, before diving into context management and retrieval design to improve accuracy and efficiency. From there, the focus shifts to integration and production reliability streaming, retries, caching, and protocols like MCP and A2A that enable robust system composition. A significant portion is dedicated to security, addressing prompt injection, input defense, data protection, and trust propagation across multi-step agent workflows. The final sections cover evaluation, testing infrastructure, deployment strategies, observability, and incident response practices required to operate AI systems at scale. Two end-to-end examples, a support agent copilot and a customer-facing assistant evolve throughout the book, demonstrating how patterns apply in real systems. 

By the end, readers will be equipped to design, test, secure, and operate AI systems with production-grade discipline. This book provides a clear blueprint for building AI features that are not just functional, but reliable and resilient under real-world conditions. 

What you will learn: 

  • Design prompts as production code using contracts, validation, clear roles, tuning, and CI pipelines to prevent regressions. 
  • Build robust RAG systems with efficient chunking, hybrid search, reranking, and context control for consistent accuracy. 
  • Secure AI systems against injection, data leaks, and trust failures using proven patterns from real production incidents. 
  • Operate AI in production with eval‑driven metrics, regression gates, versioning, canary releases, drift checks, and incident playbooks. 

Who this book is for: 

The primary audience is mid-level to senior software engineers and AI/ML engineers building LLM-backed features in production. The book also speaks directly to security architects evaluating AI systems, ML platform engineers building shared infrastructure and engineering managers responsible for AI initiatives.

Urooj Siraj is a cybersecurity and AI leader with proven experience securing complex systems in highly regulated environments. She manages and leads AI and cyber programs across multiple lines of business, primarily at fintech companies, driving cybersecurity efforts across fraud detection, behavioral analytics, and platform engineering, embedding security into fast-paced, high-impact AI environments. She holds the AWS Certified Machine Learning Specialty and Artificial Intelligence Governance Professional (AIGP) certifications, and has filed five GenAI-enabled cybersecurity patents in threat detection, abuse case automation, and intelligent risk remediation. Urooj is a frequent speaker, mentor, and advocate for the next generation of cybersecurity leaders. She holds a Master of Science in Management and Information Technology from the University of Virginia and a Bachelor of Science in Software Engineering from Champlain College. 

Rob Murphy has spent more than two decades at the intersection of cybersecurity and emerging technology, primarily inside federal and defense environments where the consequences of failure are severe. He holds the Certified Information Systems Security Professional (CISSP) credential and the Artificial Intelligence Governance Professional (AIGP) certification. His current work focuses on orchestrating multi-agent AI platforms with a security-first mindset, designing systems where failure modes are visible, irreversible actions require human approval, and the boundary between what the model decides and what production code commits to is sharp enough to defend in an incident review. Rob is an author, public speaker and a graduate of the Naval Postgraduate School,  Master of Science in Information Technology Management. 


Publication Date: 01 May 2027
Publisher: Apress
Imprint: Apress
ISBN-13: 9798868835025
Format: Paperback softback

You may also like